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

Authorizations

Authorization
string
headerrequired

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

Path Parameters

organisationId
string
required
connectionId
string
required

Body

application/json
data
object
required

ConnectionDataAPIKey is the data element of a connection which is using an apikey authentication type.

  • Option 1

  • Option 2

  • Option 3

  • Option 4

name
string
required

Response

200 - application/json
app
object
required
authConfig
object

AppAuthConfig describes how an organisation can authenticate with an app.

credentialId
string
required
id
string
required
name
string
required
orgId
string
required
usedByBoards
object[]