POST
/
hubs
/
{hub_id}
/
users
curl --request POST \
  --url https://platform.versori.com/api/embedded/v1/hubs/{hub_id}/users \
  --header 'Content-Type: application/json' \
  --data '{
  "externalId": "<string>",
  "displayName": "<string>",
  "primaryConnection": {
    "name": "<string>",
    "credentials": {
      "action": [
        {
          "authSchemeConfig": {
            "id": "<string>",
            "description": "<string>",
            "validationMessages": [
              {
                "text": "<string>",
                "severity": "info",
                "detail": [
                  "<string>"
                ]
              }
            ],
            "schemeType": "<string>"
          },
          "credential": {
            "name": "<string>",
            "type": "none",
            "data": {}
          }
        }
      ],
      "trigger": [
        {
          "authSchemeConfig": {
            "id": "<string>",
            "description": "<string>",
            "validationMessages": [
              {
                "text": "<string>",
                "severity": "info",
                "detail": [
                  "<string>"
                ]
              }
            ],
            "schemeType": "<string>"
          },
          "credential": {
            "name": "<string>",
            "type": "none",
            "data": {}
          }
        }
      ]
    },
    "variables": [
      {
        "name": "<string>",
        "value": "<string>"
      }
    ]
  }
}'
{
  "id": "<string>",
  "externalId": "<string>",
  "displayName": "<string>",
  "hubId": "<string>",
  "primaryConnection": {
    "id": "<string>",
    "name": "<string>",
    "credentials": {
      "action": [
        {
          "id": "<string>",
          "authSchemeConfig": {
            "id": "<string>",
            "description": "<string>",
            "validationMessages": [
              {
                "text": "<string>",
                "severity": "info",
                "detail": [
                  "<string>"
                ]
              }
            ],
            "schemeType": "<string>"
          },
          "credential": {
            "id": "<string>",
            "organisationId": "<string>",
            "type": "none",
            "name": "<string>",
            "usages": [
              {
                "connection": {
                  "id": "<string>",
                  "name": "<string>",
                  "connector": {
                    "id": "<string>",
                    "organisationId": "<string>",
                    "name": "<string>",
                    "protocol": "http",
                    "createdAt": "2023-11-07T05:31:56Z",
                    "updatedAt": "2023-11-07T05:31:56Z"
                  },
                  "createdAt": "2023-11-07T05:31:56Z",
                  "updatedAt": "2023-11-07T05:31:56Z"
                }
              }
            ],
            "errors": [
              "<string>"
            ],
            "data": {},
            "expiresAt": "2023-11-07T05:31:56Z"
          }
        }
      ],
      "trigger": [
        {
          "id": "<string>",
          "authSchemeConfig": {
            "id": "<string>",
            "description": "<string>",
            "validationMessages": [
              {
                "text": "<string>",
                "severity": "info",
                "detail": [
                  "<string>"
                ]
              }
            ],
            "schemeType": "<string>"
          },
          "credential": {
            "id": "<string>",
            "organisationId": "<string>",
            "type": "none",
            "name": "<string>",
            "usages": [
              {
                "connection": {
                  "id": "<string>",
                  "name": "<string>",
                  "connector": {
                    "id": "<string>",
                    "organisationId": "<string>",
                    "name": "<string>",
                    "protocol": "http",
                    "createdAt": "2023-11-07T05:31:56Z",
                    "updatedAt": "2023-11-07T05:31:56Z"
                  },
                  "createdAt": "2023-11-07T05:31:56Z",
                  "updatedAt": "2023-11-07T05:31:56Z"
                }
              }
            ],
            "errors": [
              "<string>"
            ],
            "data": {},
            "expiresAt": "2023-11-07T05:31:56Z"
          }
        }
      ]
    },
    "variables": [
      {
        "name": "<string>",
        "value": "<string>"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Path Parameters

hub_id
string
required

Body

application/json

Request to create a new End User

Response

201
application/json

Created

The response is of type object.