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

# Update Workspace Name



## OpenAPI

````yaml patch /api/v1/workspaces/{workspace_id}
openapi: 3.1.0
info:
  title: AskUI Workspaces API
  version: 0.2.15
servers: []
security: []
paths:
  /api/v1/workspaces/{workspace_id}:
    patch:
      tags:
        - workspaces
      summary: Update Workspace Name
      operationId: update_workspace_name_api_v1_workspaces__workspace_id__patch
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid4
            title: Workspace Id
        - name: expand
          in: query
          required: false
          schema:
            anyOf:
              - const: workspaceMemberships
                type: string
              - type: 'null'
            title: Expand
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWorkspaceNameRequestDto'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateWorkspaceNameResponseDto'
        '404':
          description: Workspace not found
          content:
            application/json:
              example:
                detail:
                  - msg: Workspace not found
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - Bearer: []
        - Basic: []
components:
  schemas:
    UpdateWorkspaceNameRequestDto:
      properties:
        name:
          type: string
          maxLength: 128
          minLength: 1
          title: Name
      type: object
      required:
        - name
      title: UpdateWorkspaceNameRequestDto
    UpdateWorkspaceNameResponseDto:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        name:
          type: string
          title: Name
        memberships:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/workspaces__entrypoints__http__routers__workspaces__main__UpdateWorkspaceNameResponseDto__WorkspaceMembershipDto
              type: array
            - type: 'null'
          title: Memberships
      type: object
      required:
        - name
        - memberships
      title: UpdateWorkspaceNameResponseDto
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    workspaces__entrypoints__http__routers__workspaces__main__UpdateWorkspaceNameResponseDto__WorkspaceMembershipDto:
      properties:
        id:
          type: string
          format: uuid4
          title: Id
        createdAt:
          type: string
          format: date-time
          title: Createdat
        updatedAt:
          type: string
          format: date-time
          title: Updatedat
        userId:
          type: string
          title: Userid
        workspaceId:
          type: string
          format: uuid4
          title: Workspaceid
        privileges:
          items:
            $ref: '#/components/schemas/WorkspacePrivilege'
          type: array
          title: Privileges
      type: object
      required:
        - userId
        - workspaceId
        - privileges
      title: WorkspaceMembershipDto
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    WorkspacePrivilege:
      type: string
      enum:
        - ROLE_WORKSPACE_OWNER
        - ROLE_WORKSPACE_ADMIN
        - ROLE_WORKSPACE_MEMBER
      title: WorkspacePrivilege
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
    Basic:
      type: apiKey
      in: header
      name: Authorization

````