Rename Workspace

Update the name of an existing workspace in Blue


Rename a Workspace

Updates the name and other properties of an existing workspace. When the name is changed, the workspace slug will be automatically regenerated based on the new name.

Basic Example

mutation RenameProject {
  editProject(input: {
    projectId: "project_abc123"
    name: "Q2 Marketing Campaign"
  }) {
    id
    name
    slug
  }
}

Advanced Example

mutation EditProjectAdvanced {
  editProject(input: {
    projectId: "project_abc123"
    name: "Q2 Marketing Campaign"
    description: "Campaign for Q2 product launch"
    color: "#3B82F6"
    icon: "campaign"
    category: MARKETING
    todoAlias: "Task"
    hideRecordCount: false
  }) {
    id
    name
    slug
    description
    color
    icon
    category
    todoAlias
    hideRecordCount
  }
}

Input Parameters

EditProjectInput

ParameterTypeRequiredDescription
projectIdString!✅ YesThe ID of the workspace to edit
nameStringNoThe new name for the workspace
slugStringNoCustom URL-friendly slug (auto-generated if not provided)
descriptionStringNoWorkspace description
colorStringNoHex color code for the workspace (e.g., #3B82F6)
iconStringNoIcon identifier for the workspace
categoryProjectCategoryNoWorkspace category
todoAliasStringNoCustom name for records in this workspace
hideRecordCountBooleanNoWhether to hide record counts in UI
showTimeSpentInTodoListBooleanNoDisplay time tracking in lists
showTimeSpentInProjectBooleanNoDisplay time tracking in workspace view
imageImageInputNoWorkspace image/cover
todoFields[TodoFieldInput]NoCustom field configurations
coverConfigTodoCoverConfigInputNoCover display configuration
features[ProjectFeatureInput]NoFeature toggles for the workspace
sequenceCustomFieldIdStringNoCustom field to use for record sequencing

ProjectCategory Values

ValueDescription
PERSONALPersonal workspaces
BUSINESSBusiness workspaces
MARKETINGMarketing campaigns
DEVELOPMENTDevelopment workspaces
DESIGNDesign workspaces
OPERATIONSOperational tasks
SALESSales activities
SUPPORTSupport tickets
FINANCEFinancial tracking
HRHuman resources
LEGALLegal matters
PROCUREMENTProcurement processes

Response Fields

Returns the updated Workspace object with all fields. Key fields include:

FieldTypeDescription
idString!Workspace ID
nameString!Workspace name
slugString!URL-friendly slug
descriptionStringWorkspace description
colorStringHex color code
iconStringIcon identifier
categoryProjectCategoryWorkspace category
todoAliasStringCustom record name
hideRecordCountBoolean!Record count visibility setting
createdAtDateTime!Creation timestamp
updatedAtDateTime!Last update timestamp

Required Permissions

RoleCan Edit Workspace
OWNER✅ Yes
ADMIN✅ Yes
MEMBER❌ No

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 edit this project",
    "extensions": {
      "code": "FORBIDDEN"
    }
  }]
}

Important Notes

  • Slug Generation: Workspace slugs are automatically generated when name changes. You can also provide a custom slug
  • Slug Conflicts: If a slug conflicts with existing organization slugs, the system will append numbers (e.g., my-workspace-1)
  • HTML Sanitization: HTML tags are automatically stripped from description fields for security
  • Partial Updates: All fields are optional except projectId - only provide fields you want to update
  • Categories: Use ProjectCategory enum values for the category field
  • Image Handling: Supports uploading, updating, or removing workspace images via ImageInput