POST
/
organisations
/
{organisationId}
/
apps
curl --request POST \
  --url https://api.switchboard.svc.versori.io/v1alpha1/organisations/{organisationId}/apps \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "public": true,
  "server": {
    "name": "<string>",
    "url": "<string>"
  },
  "authConfigs": [
    {
      "type": "<string>",
      "data": {
        "discoveryUrl": "<string>",
        "clientId": "<string>",
        "clientSecret": "<string>",
        "scopes": {}
      }
    }
  ],
  "imageUrl": "<string>",
  "schemaId": "<string>"
}'
{
  "id": "<string>",
  "orgId": "<string>",
  "name": "<string>",
  "public": true,
  "server": {
    "name": "<string>",
    "url": "<string>"
  },
  "schemaMetadata": {
    "type": "<string>",
    "version": "<string>",
    "url": "<string>"
  },
  "supportedAuthConfigs": [
    {
      "type": "<string>",
      "isValid": true,
      "data": {
        "discoveryUrl": "<string>",
        "clientId": "<string>",
        "clientSecret": "<string>",
        "scopes": {}
      }
    }
  ],
  "imageUrl": "<string>",
  "schema": {
    "id": "<string>",
    "type": "<string>",
    "version": "<string>",
    "sourceUrl": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "deletedAt": "2023-11-07T05:31:56Z"
  },
  "schemaId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

organisationId
string
required

Body

application/json
name
string
required
public
boolean
required
server
object
required
authConfigs
object[]
required

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

imageUrl
string
schemaId
string
required

The ID of the Schema instance.

Response

200 - application/json
id
string
required
orgId
string
required
name
string
required
public
boolean
required
server
object
required
schemaMetadata
object
required
supportedAuthConfigs
object[]

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.

imageUrl
string
schema
object
required
schemaId
string
createdAt
string
required
updatedAt
string
required
deletedAt
string