POST
/
organisations
/
{organisationId}
/
schemas

Authorizations

Authorization
string
headerrequired

Path Parameters

organisationId
string
required

Body

application/json

SchemaCreate is the request body for creating a new schema.

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.

type
string
required

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

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
id
string
required
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.

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

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://)

createdAt
string
required
updatedAt
string
required
deletedAt
string