Add constraint
POST/api/management/policy/constraint
Add new contraint template
Request
- application/json
Body
required
idnumber
typeConstraintType (string)required
Possible values: [ATOMIC
, LOGICAL
]
titlestringrequired
descriptionstring
Responses
- 200
- 400
- 403
- 409
- application/json
- Schema
- Example (from schema)
Schema
idnumber
typeConstraintType (string)required
Possible values: [ATOMIC
, LOGICAL
]
titlestringrequired
descriptionstring
{
"id": 0,
"type": "ATOMIC",
"title": "string",
"description": "string"
}
Malformed request
- application/json
- Schema
- Example (from schema)
Schema
namestringrequired
statusstringrequired
codenumberrequired
messageobject
errorstring
{
"name": "string",
"status": "string",
"code": 0,
"message": {},
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
namestringrequired
statusstringrequired
codenumberrequired
messageobject
errorstring
{
"name": "string",
"status": "string",
"code": 0,
"message": {},
"error": "string"
}
Resource already exists
- application/json
- Schema
- Example (from schema)
Schema
namestringrequired
statusstringrequired
codenumberrequired
messageobject
errorstring
{
"name": "string",
"status": "string",
"code": 0,
"message": {},
"error": "string"
}