> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doers.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Rename or re-address a workspace

> Renaming is the owner's; the address, the logo, the time zone and who may invite are an admin's too. A personal workspace keeps its owner's handle as its address and cannot be given another.



## OpenAPI

````yaml https://api.doers.sh/openapi.json patch /v2/workspaces/{workspaceId}
openapi: 3.1.0
info:
  title: Doers API
  version: 2.0.0
  description: >-
    The open API of Doers: tasks, projects, areas, prioritised context and the
    day's plan.


    ## Authentication


    Every route requires a bearer token, generated from **Settings > API & MCP**
    in the app:


    ```

    Authorization: Bearer pc_…

    ```


    ## Two date fields, not to be confused


    - `when` — the **schedule**: `today`, `anytime` (Later), `someday` (Future)
    or a date.

    - `deadline` — the **commitment**, independent of the schedule.


    ## Time zone


    The server reasons in UTC and does not know yours. Send the `X-PC-Today:
    YYYY-MM-DD` header

    (or the `day` argument where it exists) so dated operations use your local
    day.


    ## MCP server


    The same token gives access to the [Model Context
    Protocol](https://modelcontextprotocol.io)

    server at `POST https://doers.sh/mcp`, which exposes the same operations as
    tools for Claude,

    Cursor and other compatible clients.
servers:
  - url: https://api.doers.sh
    description: Production.
security:
  - bearerAuth: []
tags:
  - name: Tasks
  - name: Projects
  - name: Areas
  - name: Headings
  - name: Comments
  - name: Realtime
  - name: Devices
  - name: Context
  - name: Plan
  - name: Sessions
  - name: Rounds
  - name: Journal
  - name: Habits
  - name: Stats
  - name: Users
  - name: Profiles
  - name: Workspaces
  - name: Access
  - name: Activity
  - name: Tokens
  - name: Referrals
  - name: Files
  - name: Connections
  - name: Collaborators
  - name: Links
  - name: Packages
  - name: Installs
  - name: Billing
  - name: Calendar
  - name: Coach
  - name: Marketplace
paths:
  /v2/workspaces/{workspaceId}:
    patch:
      tags:
        - Workspaces
      summary: Rename or re-address a workspace
      description: >-
        Renaming is the owner's; the address, the logo, the time zone and who
        may invite are an admin's too. A personal workspace keeps its owner's
        handle as its address and cannot be given another.
      operationId: updateWorkspace
      parameters:
        - name: workspaceId
          in: path
          required: true
          description: Identifier of a row.
          schema:
            type: string
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                logo:
                  description: A square picture; `null` removes it.
                  anyOf:
                    - type: string
                      format: uri
                    - type: 'null'
                name:
                  type: string
                  minLength: 1
                  maxLength: 200
                newAreasShared:
                  type: boolean
                slug:
                  type: string
                  description: >-
                    The team's segment under the site's root. Handle rules; one
                    namespace with handles.
                timezone:
                  anyOf:
                    - type: string
                      description: An IANA time zone name, such as `Europe/Paris`.
                    - type: 'null'
                whoCanInvite:
                  type: string
                  enum:
                    - admins
                    - everyone
                  description: >-
                    Who may invite into the workspace: its admins, or everyone
                    in it.
              additionalProperties: false
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  workspace:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      address:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: >-
                          The segment under the site's root: the owner's handle
                          for a personal workspace, the team's own slug
                          otherwise. `null` while a personal workspace's owner
                          has no handle.
                      logo:
                        anyOf:
                          - type: string
                          - type: 'null'
                      timezone:
                        anyOf:
                          - type: string
                          - type: 'null'
                        description: IANA name; `null` means each person's own.
                      isPersonal:
                        type: boolean
                        description: >-
                          Minted at signup, named after the person, never handed
                          over.
                      role:
                        type: string
                        enum:
                          - owner
                          - admin
                          - member
                        description: >-
                          Ascending. `owner` is not grantable: it is what owning
                          the workspace means.
                      plan:
                        type: string
                        enum:
                          - free
                          - pro
                          - team
                        description: >-
                          The owner's plan, read when asked; it is what pays the
                          seats.
                      whoCanInvite:
                        type: string
                        enum:
                          - admins
                          - everyone
                        description: >-
                          Who may invite into the workspace: its admins, or
                          everyone in it.
                      newAreasShared:
                        type: boolean
                        description: New areas open to everyone in the workspace, at view.
                    required:
                      - id
                      - name
                      - address
                      - logo
                      - timezone
                      - isPersonal
                      - role
                      - plan
                      - whoCanInvite
                      - newAreasShared
                    additionalProperties: false
                required:
                  - workspace
                additionalProperties: false
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/TooManyRequests'
components:
  responses:
    BadRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        Invalid request — unreadable body, out-of-range field or unknown
        parameter.
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Token missing, unknown or revoked.
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Readable resource, but your role does not permit this action.
    NotFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        Resource does not exist **or** belongs to another account — the API
        never distinguishes the two.
    Conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Conflicts with the resource's current state.
    TooManyRequests:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: Too many requests. `Retry-After` says how many seconds to wait.
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine-readable code.
            message:
              type: string
              description: Human-readable message.
            details:
              type: array
              description: Per-field detail, present on validation errors.
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
                required:
                  - field
                  - message
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `pc_…` token generated from Settings > API & MCP.

````