POST
/
organisations
/
{organisationId}
/
schemas

Authorizations

Authorization
string
header
required

Path Parameters

organisationId
string
required

Body

application/json

SchemaCreate is the request body for creating a new schema.

type
string
required

Type is the schema type being created. The only type currently supported is "openapi".

url
string
required

URL is the address where the schema file is hosted. This may be an externally accessible http(s):// URL, or a gs:// URL which Switchboard is granted access to.

async
boolean

Async is a flag to indicate whether the schema should be created asynchronously. This will result in a 201 Accepted response for which the response body will be different to the regular synchronous response.

Response

200 - application/json
createdAt
string
required
id
string
required
sourceUrl
string
required

URL is the private address for accessing the schema. This is not guaranteed to be publicly accessible and could be a non-HTTP protocol (i.e. gs:// or s3://)

type
string
required

Type denotes the type of schema the corresponding App is backed by. Currently the only supported value is "openapi", but other types such as "soap", "graphql" and "grpc" are on the roadmap.

updatedAt
string
required
version
string
required

Version denotes the version of the schema specification. This property is contextual based on the schema type, for example openapi schemas will contain the OpenAPI specification version (currently only 3.0.x is supported), but grpc APIs could be "proto2" or "proto3".

deletedAt
string