curl --request POST \
--url https://platform.versori.com/api/embedded/v1/hubs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organisationId": "<string>",
"name": "<string>",
"primaryConnectorId": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"schemeType": "<string>",
"validationMessages": [
{
"text": "<string>",
"severity": "info",
"detail": [
"<string>"
]
}
]
}
}
'{
"id": "<string>",
"name": "<string>",
"primaryConnector": {
"connectorId": "<string>",
"name": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"schemeType": "<string>",
"validationMessages": [
{
"text": "<string>",
"severity": "info",
"detail": [
"<string>"
]
}
]
},
"imageUrl": "<string>",
"variables": [
{
"name": "<string>",
"value": "<string>"
}
]
},
"isDefault": true
}Create a new Hub
curl --request POST \
--url https://platform.versori.com/api/embedded/v1/hubs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"organisationId": "<string>",
"name": "<string>",
"primaryConnectorId": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"schemeType": "<string>",
"validationMessages": [
{
"text": "<string>",
"severity": "info",
"detail": [
"<string>"
]
}
]
}
}
'{
"id": "<string>",
"name": "<string>",
"primaryConnector": {
"connectorId": "<string>",
"name": "<string>",
"authSchemeConfig": {
"id": "<string>",
"description": "<string>",
"schemeType": "<string>",
"validationMessages": [
{
"text": "<string>",
"severity": "info",
"detail": [
"<string>"
]
}
]
},
"imageUrl": "<string>",
"variables": [
{
"name": "<string>",
"value": "<string>"
}
]
},
"isDefault": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
CreateHubRequest is the payload to create a new Hub.
The ID of the organisation that the Hub belongs to
The name of the Hub
PrimaryConnectorID references the Connector that the Hub will be built around.
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.
Show child attributes
Created
A Hub description
The ID of the Hub
The name of the Hub
PrimaryConnector is the connector that the Hub is built around.
Show child attributes
IsDefault indicates whether this Hub is the default Hub for the organisation. Only one Hub can be the default Hub for an organisation.