Create a policy group
POST/api/v1/mssp/:mssp-id/policy-group
x-public: "true"
Creates a policy group if it doesn't exist. Will use msspId from the auth token if available.
Request
Path Parameters
mssp-id stringrequired
the mssp the tenant group belongs to
Example: e91b486a-e139-4d3b-a9dd-959fd5cffb10
- application/json; charset=UTF-8
Body
required
name stringrequired
Possible values: >= 3 characters
and <= 63 characters
Name of the policy group.
policies string[]
Policies assigned to this policy group.
Responses
- 201
- 400
- 401
- 403
- 409
- 429
Created
Response Headers
Location string
The relative path to the created policy group
- application/json; charset=UTF-8
- Schema
- Example (from schema)
Schema
id uuid
name string
Possible values: >= 3 characters
and <= 63 characters
policies string[]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"policies": [
"string"
]
}
Bad Request
- 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
]
}
}
Unauthorized
- 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
]
}
}
Forbidden
- 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
]
}
}
Conflict
- 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
]
}
}
Too Many Requests
- 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...