Skip to content

Docs

update_workspace

Change a workspace's name, slug, time zone (IANA, for example Europe/Istanbul; queue slots and the calendar follow it), how many days new review links work (`shareLinkExpiresDays`, null = never expire), and whether new content requires approval (`signoffDefault`; people only). Pass only what changes. Owners only.

Change a workspace's name, slug, time zone (IANA, for example Europe/Istanbul; queue slots and the calendar follow it), how many days new review links work (shareLinkExpiresDays, null = never expire), and whether new content requires approval (signoffDefault; people only). Pass only what changes. Owners only.

Access and cost

  • Kind: mutation
  • Scope: workspace
  • Actors: member, agent
  • Credits: Free
  • Requires confirmation: false
  • Accepts idempotency key: false

Input schema

{
  "properties": {
    "workspaceId": {
      "format": "uuid",
      "type": "string"
    },
    "name": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    },
    "slug": {
      "maxLength": 48,
      "minLength": 2,
      "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
      "type": "string"
    },
    "timeZone": {
      "maxLength": 64,
      "minLength": 1,
      "type": "string"
    },
    "shareLinkExpiresDays": {
      "anyOf": [
        {
          "maximum": 365,
          "minimum": 1,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "signoffDefault": {
      "type": "boolean"
    }
  },
  "required": [
    "workspaceId"
  ],
  "type": "object"
}

Output schema

{
  "additionalProperties": false,
  "properties": {
    "workspace": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "format": "uuid",
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "timeZone": {
          "type": "string"
        },
        "shareLinkExpiresDays": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "signoffDefault": {
          "type": "boolean"
        },
        "createdAt": {
          "format": "date-time",
          "type": "string"
        },
        "role": {
          "enum": [
            "owner",
            "editor",
            "viewer",
            "commenter",
            "approver"
          ],
          "type": "string"
        },
        "billingOwnerAccountId": {
          "anyOf": [
            {
              "format": "uuid",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "counts": {
          "additionalProperties": false,
          "properties": {
            "members": {
              "type": "integer"
            },
            "channelAccounts": {
              "type": "integer"
            },
            "pieces": {
              "type": "integer"
            }
          },
          "required": [
            "members",
            "channelAccounts",
            "pieces"
          ],
          "type": "object"
        },
        "publishing": {
          "additionalProperties": false,
          "properties": {
            "paused": {
              "type": "boolean"
            },
            "pausedAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pausedByAccountId": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "pausedPlatforms": {
              "items": {
                "enum": [
                  "x",
                  "linkedin",
                  "threads",
                  "bluesky",
                  "instagram",
                  "facebook",
                  "tiktok",
                  "youtube",
                  "sandbox"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "delayed": {
              "type": "boolean"
            }
          },
          "required": [
            "paused",
            "pausedAt",
            "pausedByAccountId",
            "pausedPlatforms",
            "delayed"
          ],
          "type": "object"
        }
      },
      "required": [
        "id",
        "name",
        "slug",
        "timeZone",
        "shareLinkExpiresDays",
        "signoffDefault",
        "createdAt",
        "role",
        "billingOwnerAccountId",
        "counts",
        "publishing"
      ],
      "type": "object"
    }
  },
  "required": [
    "workspace"
  ],
  "type": "object"
}

Errors

[
  "slug_taken"
]

Annotations

{
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": false,
  "readOnlyHint": false,
  "title": "Change workspace settings"
}