PUT
/
organisations
/
{organisationId}
/
schemas
/
{id}
/
import
curl --request PUT \
  --url https://api.switchboard.svc.versori.io/v1alpha1/organisations/{organisationId}/schemas/{id}/import \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "title": "<string>",
  "availableServers": [
    {
      "name": "<string>",
      "url": "<string>"
    }
  ],
  "schemaMetadata": {
    "type": "<string>",
    "version": "<string>",
    "url": "<string>"
  },
  "supportedAuthConfigs": [
    {
      "type": "<string>",
      "isValid": true,
      "data": {
        "discoveryUrl": "<string>",
        "clientId": "<string>",
        "clientSecret": "<string>",
        "scopes": {}
      }
    }
  ]
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organisationId
string
required
id
string
required

Query Parameters

force
boolean
default: false

Response

200 - application/json
id
string

The ID of the Schema record if it is stored.

title
string

Title is calculated from the parsed schema. Not all schemas contain this information so may be null.

availableServers
object[]
required
schemaMetadata
object
required
supportedAuthConfigs
object[]
required

SupportedAuthConfigs is a list of authentication standards which can be used to connect a user's account to this app. At least one auth type needs to be valid for the App to be used by a user.