> ## 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 schema utils source url

> Upload a schema document based on a source URL. The server will download this URL and upload to object
storage automatically.




## OpenAPI

````yaml post /organisations/{organisationId}/schema-utils/{schemaType}/source-url
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}/schema-utils/{schemaType}/source-url:
    post:
      description: >
        Upload a schema document based on a source URL. The server will download
        this URL and upload to object

        storage automatically.
      operationId: UploadSchemaFromURL
      parameters:
        - name: organisationId
          in: path
          required: true
          schema:
            type: string
          example: '101'
        - $ref: '#/components/parameters/SchemaType'
      requestBody:
        $ref: '#/components/requestBodies/UploadSchemaFromURLRequest'
      responses:
        '200':
          $ref: '#/components/responses/UploadSchemaFromURLResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    SchemaType:
      name: schemaType
      description: >
        SchemaType is the type of schema which an App implements. The only
        supported values are currently "openapi", but

        is planned to be extended to include gRPC, GraphQL and SOAP.
      in: path
      required: true
      schema:
        type: string
  requestBodies:
    UploadSchemaFromURLRequest:
      description: >
        UploadSchemaFromURLRequest contains the necessary parameters to upload a
        schema object from a source URL.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UploadSchemaFromURLRequestBody'
  responses:
    UploadSchemaFromURLResponse:
      description: >
        UploadSchemaFromURLResponse contains a URL which can be used to download
        an uploaded schema from object storage.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UploadSchemaFromURLResponseBody'
    ErrorResponse:
      description: The default error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    UploadSchemaFromURLRequestBody:
      type: object
      properties:
        sourceURL:
          description: >
            SourceURL is the URL which can be used to download the original
            schema document.
          type: string
        additionalHeaders:
          type: array
          items:
            $ref: '#/components/schemas/UploadSchemaFromURLRequestBodyHeader'
          x-go-type-skip-optional-pointer: true
      required:
        - sourceURL
    UploadSchemaFromURLResponseBody:
      type: object
      properties:
        url:
          description: >
            The URL to identify the schema. This is not publicly accessible and
            is to be used when creating an App.
          type: string
      required:
        - url
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        extensions:
          type: object
      required:
        - code
        - message
    UploadSchemaFromURLRequestBodyHeader:
      type: object
      properties:
        name:
          type: string
        value:
          type: string
      required:
        - name
        - value
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization

````