POST
/
hubs
curl --request POST \
  --url https://platform.versori.com/api/embedded/v1/hubs \
  --header 'Content-Type: application/json' \
  --data '{
  "organisationId": "<string>",
  "name": "<string>",
  "primaryConnectorId": "<string>",
  "authSchemeConfig": {
    "id": "<string>",
    "description": "<string>",
    "validationMessages": [
      {
        "text": "<string>",
        "severity": "info",
        "detail": [
          "<string>"
        ]
      }
    ],
    "schemeType": "<string>"
  }
}'
{
  "id": "<string>",
  "name": "<string>",
  "primaryConnector": {
    "connectorId": "<string>",
    "name": "<string>",
    "authSchemeConfig": {
      "id": "<string>",
      "description": "<string>",
      "validationMessages": [
        {
          "text": "<string>",
          "severity": "info",
          "detail": [
            "<string>"
          ]
        }
      ],
      "schemeType": "<string>"
    },
    "imageUrl": "<string>",
    "variables": [
      {
        "name": "<string>",
        "value": "<string>"
      }
    ]
  },
  "isDefault": true
}

Body

application/json

CreateHubRequest is the payload to create a new Hub.

organisationId
string
required

The ID of the organisation that the Hub belongs to

name
string
required

The name of the Hub

primaryConnectorId
string
required

PrimaryConnectorID references the Connector that the Hub will be built around.

authSchemeConfig
object
required

AuthSchemeConfig defines how your End Users should authenticate to the primary connector.

This is used to drive the front-end experience for the end user, however any authentication scheme config can be used when connecting to a connector over the API.

Response

201
application/json
Created

A Hub description

id
string
required

The ID of the Hub

name
string
required

The name of the Hub

primaryConnector
object
required

PrimaryConnector is the connector that the Hub is built around.

isDefault
boolean
required

IsDefault indicates whether this Hub is the default Hub for the organisation. Only one Hub can be the default Hub for an organisation.