Archive Workspace
How to archive and unarchive workspaces in Blue.
Archive a Workspace
Archiving workspaces is useful when you want to temporarily hide a workspace without permanently deleting it. Archived workspaces:
- Are hidden from active workspace lists
- Cannot be edited or modified
- Can still be viewed by workspace members
- Can be unarchived at any time
Basic Example
mutation {
archiveProject(id: "project-123")
}Using Workspace Context Header
# With header: x-bloo-project-id: project-123
mutation {
archiveProject
}With Variables
mutation ArchiveProject($projectId: String!) {
archiveProject(id: $projectId)
}Variables:
{
"projectId": "abc123-project-id"
}Unarchive a Workspace
To restore an archived workspace to active status:
mutation {
unarchiveProject(id: "project-123")
}Mutation Parameters
archiveProject
| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | No | The workspace ID to archive. If not provided, uses the workspace from context headers. |
unarchiveProject
| Parameter | Type | Required | Description |
|---|---|---|---|
id | String | No | The workspace ID to unarchive. If not provided, uses the workspace from context headers. |
Response
Both mutations return a Boolean indicating success:
| Field | Type | Description |
|---|---|---|
Boolean | Boolean! | Returns true when the operation is successful |
Required Permissions
| Workspace Role | Can Archive/Unarchive |
|---|---|
OWNER | ✅ Yes |
ADMIN | ✅ Yes |
MEMBER | ❌ No |
CLIENT | ❌ No |
COMMENT_ONLY | ❌ No |
VIEW_ONLY | ❌ No |
Workspace ID Resolution
The workspace ID can be specified in two ways:
As a parameter (recommended):
archiveProject(id: "project-123")Via HTTP header:
x-bloo-project-id: project-123(preferred)x-project-id: project-123(deprecated)
If both are provided, the parameter takes precedence.
Error Responses
Workspace Not Found
{
"errors": [{
"message": "Project was not found.",
"extensions": {
"code": "PROJECT_NOT_FOUND"
}
}]
}Insufficient Permissions
{
"errors": [{
"message": "You don't have permission to archive this project",
"extensions": {
"code": "UNAUTHORIZED"
}
}]
}What Happens When Archiving
When you archive a workspace:
- Workspace Status: The workspace is marked as archived
- Visibility: Hidden from active workspace lists
- Templates: If the workspace was a template, it loses template status
- Position: Moved to the end of user’s workspace list
- Folders: Removed from any workspace folders
- Activity Log: Archive action is recorded
- Real-time Updates: All connected users are notified
Important Notes
- Idempotent Operation: Archiving an already archived workspace returns
truewithout changes - Reversible: Use
unarchiveProjectto restore the workspace - View Access: Archived workspaces remain viewable by existing members
- No Data Loss: Archiving preserves all workspace data, unlike deletion
- Alternative to Deletion: Consider archiving instead of deleting for temporary removal