Create a tenant group
POST/api/v1/mssp/:mssp-id/tenant-group
x-public: "true"
Creates a tenant group if it doesn't exist. Will use msspId from the auth token if available.
Request
Path Parameters
mssp-id stringrequired
the id mssp the tenant group belongs to
- application/json; charset=UTF-8
Body
required
groupName stringrequired
Possible values: >= 3 characters
and <= 63 characters
tenantIds string[]
Responses
- 200
- 400
- 404
- 429
OK
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
- Array [
- ]
id uuid
groupName string
tenants object[]
externalTenantId string
prismaId string
createdAt int64
createdBy string
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"groupName": "string",
"tenants": [
{
"externalTenantId": "string",
"prismaId": "string"
}
],
"createdAt": 0,
"createdBy": "string"
}
Client error. One of the required arguments in the request body is not correctly supplied
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
code stringrequired
message stringrequired
target string
details undefined[]
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
null
]
}
}
The MSSP does not exist
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
code stringrequired
message stringrequired
target string
details undefined[]
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
null
]
}
}
Rate limiting error
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
code stringrequired
message stringrequired
target string
details undefined[]
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
null
]
}
}
Loading...