> ## 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 a collaboration preset



## OpenAPI

````yaml /openapi.yaml patch /collaboration_presets/{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:
  /collaboration_presets/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
    patch:
      tags:
        - CollaborationPreset
      summary: Update a collaboration preset
      operationId: collaboration_presets#update
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyCollaborationPresetUpdate'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/collaboration_preset'
        '404':
          description: Not found
        '422':
          description: Unprocessable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyCollaborationPresetUpdate:
      type: object
      description: Only the keys sent change; request_type can't.
      properties:
        name:
          type: string
        message:
          type: string
          nullable: true
        expires_in_days:
          type: integer
          nullable: true
          minimum: 1
          maximum: 365
        is_default:
          type: boolean
        column_slugs:
          type: array
          items:
            type: string
        editable_column_slugs:
          type: array
          items:
            type: string
        header_fields:
          type: array
          items:
            type: string
        item_fields:
          type: array
          items:
            type: string
    collaboration_preset:
      type: object
      description: >-
        Predefined settings for new collaboration requests of one type. The
        type's settings are at the top level, under the keys a request takes
        them — project_items_edit has column_slugs and editable_column_slugs,
        purchase_order_edit has header_fields and item_fields.
      properties:
        id:
          type: integer
        request_type:
          type: string
          enum:
            - project_items_edit
            - purchase_order_edit
        name:
          type: string
        message:
          type: string
          nullable: true
        expires_in_days:
          type: integer
          nullable: true
          description: >-
            A new request expires this many days after it's created; null = no
            expiry.
        is_default:
          type: boolean
          description: Applied when the share dialog opens. At most one per type.
        column_slugs:
          type: array
          items:
            type: string
          description: project_items_edit only.
        editable_column_slugs:
          type: array
          items:
            type: string
          description: project_items_edit only.
        header_fields:
          type: array
          items:
            type: string
          description: purchase_order_edit only.
        item_fields:
          type: array
          items:
            type: string
          description: purchase_order_edit only.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
      required:
        - id
        - request_type
        - name
        - is_default
    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
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

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