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

# Update a Workspace

> Renames or re-describes a Workspace. is_default cannot be changed. Enterprise Edition.



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml patch /workspaces/{id}
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /workspaces/{id}:
    patch:
      tags:
        - workspaces
      summary: Update a Workspace
      description: >-
        Renames or re-describes a Workspace. is_default cannot be changed.
        Enterprise Edition.
      parameters:
        - name: id
          in: path
          description: Workspace ID
          required: true
          schema:
            type: integer
      requestBody:
        description: Fields to change
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.WorkspaceInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  $ref: '#/components/schemas/api.WorkspaceResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authz.ErrorBody'
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authz.ErrorBody'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authz.ErrorBody'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/authz.ErrorBody'
      security:
        - BearerAuth: []
components:
  schemas:
    api.WorkspaceInput:
      type: object
      properties:
        description:
          type: string
        name:
          type: string
      description: Workspace create or update payload
    api.WorkspaceResponse:
      type: object
      properties:
        attributes:
          $ref: '#/components/schemas/api.WorkspaceAttributes'
        id:
          type: string
        type:
          type: string
      description: Workspace response model
    authz.ErrorBody:
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/authz.Error'
    api.WorkspaceAttributes:
      type: object
      properties:
        created_at:
          type: string
        description:
          type: string
        is_default:
          type: boolean
        name:
          type: string
        updated_at:
          type: string
      description: Workspace attributes
    authz.Error:
      type: object
      properties:
        code:
          type: string
        detail:
          type: string
        permission:
          type: string
        title:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````