POST
/
v1
/
hubs
Add a hub to a platform
curl --request POST \
  --url https://cloud.flo.andaihub.ai/api/v1/hubs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "packageType": "ARCHIVE",
  "scope": "PLATFORM",
  "hubName": "<string>",
  "hubVersion": "<string>",
  "hubArchive": {
    "filename": "<string>",
    "data": "<unknown>",
    "type": "file",
    "mimetype": "<string>"
  }
}
'
{}

Authorizations

Authorization
string
header
required

Use your api key generated from the admin console

Body

application/json
packageType
enum<string>
required
Available options:
ARCHIVE
scope
enum<string>
required
Available options:
PLATFORM
hubName
string
required
Minimum string length: 1
hubVersion
string
required
hubArchive
object
required

Response

201 - application/json

Default Response

The response is of type object.