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

# Update workspace



## OpenAPI

````yaml /openapi.yaml patch /workspaces/{id}
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /workspaces/{id}:
    patch:
      tags:
        - Workspace
      summary: Update workspace
      operationId: workspaces#update
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                name:
                  type: string
                currency:
                  type: string
                  description: >-
                    3-letter ISO 4217 code, case-insensitive — the default
                    currency of new projects and product items.
                logo:
                  type: string
                  format: binary
                  description: >-
                    Omit to leave unchanged, send empty to remove the existing
                    logo, or send a file to set a new one.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workspace'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
components:
  schemas:
    workspace:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        logo_url:
          type: string
          nullable: true
        currency:
          type: string
          nullable: true
          description: >-
            3-letter ISO 4217 code — the default currency of new projects and of
            product items; null = no currency (new workspaces start without
            one).
          example: USD
        primary_table_views:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/workspace_table_view'
        created_at:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - active
            - archived
            - creating
      required:
        - id
        - name
        - currency
        - primary_table_views
        - created_at
        - status
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    workspace_table_view:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        logic_type:
          type: string
          enum:
            - project_item
            - product_item
            - cross_project_item
        is_primary:
          type: boolean
        position:
          type: integer
        column_slugs:
          type: array
          items:
            type: string
        filter_config:
          type: object
        group_by_config:
          type: object
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - name
        - logic_type
        - is_primary
        - position
        - column_slugs
        - filter_config
        - group_by_config
        - created_at
        - updated_at
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.