> ## 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.

# Post organisations schemas components

> Create a batch of schema components.



## OpenAPI

````yaml post /organisations/{organisationId}/schemas/{id}/components
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:
    post:
      tags:
        - schemas
      description: Create a batch of schema components.
      operationId: CreateSchemaComponents
      parameters:
        - name: organisationId
          in: path
          required: true
          schema:
            type: string
          examples:
            postman:
              summary: Use as a variable in a Postman request
              value: '{{organisationId}}'
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        $ref: '#/components/requestBodies/CreateSchemaComponentsRequest'
      responses:
        '200':
          $ref: '#/components/responses/CreateSchemaComponentsResponse'
components:
  requestBodies:
    CreateSchemaComponentsRequest:
      description: >-
        CreateSchemaComponentsRequest is the request body for creating a new
        batch of Schema Components.
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CreateSchemaComponentsRequestBody'
  responses:
    CreateSchemaComponentsResponse:
      description: >
        CreateSchemaComponentsResponse is the response definition after creating
        a batch of schema components.
      content:
        application/json:
          schema:
            properties:
              components:
                type: array
                items:
                  $ref: '#/components/schemas/SchemaComponent'
            required:
              - components
  schemas:
    CreateSchemaComponentsRequestBody:
      type: object
      properties:
        replaceExisting:
          type: boolean
        components:
          type: array
          items:
            $ref: '#/components/schemas/SchemaComponent'
      required:
        - components
    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
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````