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

> Create a new operation for the Schema in the provided organisation




## OpenAPI

````yaml post /organisations/{organisationId}/schemas/{id}/operations
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}/operations:
    post:
      tags:
        - schemas
      description: |
        Create a new operation for the Schema in the provided organisation
      operationId: CreateSchemaOperation
      parameters:
        - name: organisationId
          in: path
          required: true
          schema:
            type: string
          example: '101'
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        $ref: '#/components/requestBodies/CreateSchemaOperationRequest'
      responses:
        '200':
          $ref: '#/components/responses/CreateSchemaOperationResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  requestBodies:
    CreateSchemaOperationRequest:
      description: >-
        CreateSchemaOperationRequest is the request body for creating a new
        Operation for a Schema.
      required: true
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/OperationSchema'
  responses:
    CreateSchemaOperationResponse:
      description: >
        CreateSchemaOperationResponse is the response definition containing the
        schema for a newly created Operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/OperationSchema'
    ErrorResponse:
      description: The default error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    OperationSchema:
      type: object
      properties:
        id:
          type: string
          description: >
            The ID of the operation, for OpenAPI this will be the `operationId`
            field if set, otherwise the request's

            type and path.
        method:
          description: The http method that the operation uses.
          type: string
          enum:
            - GET
            - PUT
            - POST
            - DELETE
            - OPTIONS
            - HEAD
            - PATCH
            - TRACE
            - SQL
        description:
          type: string
          description: A human-friendly description of what this operation does.
        name:
          type: string
          description: A human-friendly name based on the operation ID.
        schemaId:
          type: string
          description: |
            The ID of the schema this object belongs to.
        path:
          description: The path used to call the operation.
          type: string
        request:
          $ref: '#/components/schemas/OperationRequest'
        response:
          $ref: '#/components/schemas/OperationResponse'
        callbacks:
          $ref: '#/components/schemas/OperationCallbacks'
        components:
          type: object
          description: >-
            An optional map of components the operation refers to indexed by
            ref.
      required:
        - schemaId
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        extensions:
          type: object
      required:
        - code
        - message
    OperationRequest:
      type: object
      properties:
        parameters:
          type: array
          items:
            $ref: '#/components/schemas/OperationParameter'
        body:
          type: object
          description: The request body of the operation.
          properties: {}
    OperationResponse:
      type: object
      description: The response body of the operation.
      properties: {}
    OperationCallbacks:
      type: object
      description: The callbacks of the operation.
      properties: {}
    OperationParameter:
      type: object
      properties:
        name:
          type: string
          description: The name of the operation parameter.
        type:
          type: string
          description: The type of the operation parameter.
          enum:
            - string
            - integer
            - number
            - boolean
        location:
          type: string
          description: The location of the operation parameter.
          enum:
            - path
            - query
            - header
            - cookie
        required:
          type: boolean
          description: Whether the parameter is required.
      required:
        - name
        - type
        - location
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````