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

# Put organisations schemas components

> Update a schema component.




## OpenAPI

````yaml put /organisations/{organisationId}/schemas/{id}/components/{ref}
openapi: 3.0.3
info:
  title: Switchboard API
  description: >-
    The Switchboard API provides users the ability to manage their Apps,
    Integrations and Workflows
  version: 0.0.1-alpha.0
servers:
  - url: https://platform.versori.com/api/switchboard/v1alpha1/
    description: Production server
  - url: http://localhost:8080/v1alpha1/
    description: Localhost
security:
  - apiKey: []
paths:
  /organisations/{organisationId}/schemas/{id}/components/{ref}:
    put:
      tags:
        - schemas
      description: |
        Update a schema component.
      operationId: UpdateSchemaComponent
      parameters:
        - name: organisationId
          in: path
          required: true
          schema:
            type: string
          example: '101'
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: ref
          in: path
          required: true
          schema:
            type: string
      requestBody:
        $ref: '#/components/requestBodies/UpdateSchemaComponentRequest'
      responses:
        '200':
          $ref: '#/components/responses/UpdateSchemaComponentResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  requestBodies:
    UpdateSchemaComponentRequest:
      description: >-
        UpdateSchemaComponentRequest is the request body for updating a Schema
        Components.
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SchemaComponent'
  responses:
    UpdateSchemaComponentResponse:
      description: >
        UpdateSchemaComponentResponse is the response definition after updating
        a schema component.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SchemaComponent'
    ErrorResponse:
      description: The default error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    SchemaComponent:
      type: object
      properties:
        schemaId:
          type: string
          description: |
            The ID of the schema this object belongs to.
        ref:
          type: string
          description: >
            The ref of the schema object, for OpenAPI this will be how
            operations ref to this object with the ref field.
        definition:
          description: The definition of the schema object following OpenAPI specification.
          type: object
      required:
        - ref
        - definition
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        extensions:
          type: object
      required:
        - code
        - message
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````