SweetConnect LogoSweetConnect
ApiTenants

Create new tenant

Create a new tenant

POST
/v1/tenants
AuthorizationBearer <token>

In: header

Request Body

application/json

name?string
Lengthlength <= 255
attributes?object

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://test.sweetconnect.io/api/auth/v1/tenants" \  -H "Content-Type: application/json" \  -d '{}'
{
  "data": {
    "tenant": {
      "id": "string",
      "name": "string",
      "activated": true,
      "attributes": {}
    }
  },
  "meta": {
    "responseTime": 0
  }
}
{
  "statusCode": 0,
  "message": "string",
  "error": "string"
}
{
  "statusCode": 0,
  "message": "string",
  "error": "string"
}
{
  "statusCode": 0,
  "message": "string",
  "error": "string"
}