Update rule
PUT/api/management/policy/rule/:id
Update rule template
Request
Path Parameters
id numberrequired
- application/json
Body
required
Array [
]
idnumber
actionstring[]required
assigneestring[]
constraints
object[]
required
idnumber
typeConstraintType (string)required
Possible values: [ATOMIC
, LOGICAL
]
titlestringrequired
descriptionstring
dutiesundefined[]required
typeRuleType (string)
Possible values: [PERMISSION
, PROHIBITION
, DUTY
]
targetstring
Responses
- 200
- 400
- 403
- 404
- 409
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
idnumber
actionstring[]required
assigneestring[]
constraints
object[]
required
idnumber
typeConstraintType (string)required
Possible values: [ATOMIC
, LOGICAL
]
titlestringrequired
descriptionstring
dutiesundefined[]required
typeRuleType (string)
Possible values: [PERMISSION
, PROHIBITION
, DUTY
]
targetstring
{
"id": 0,
"action": [
"string"
],
"assignee": [
"string"
],
"constraints": [
{
"id": 0,
"type": "ATOMIC",
"title": "string",
"description": "string"
}
],
"duties": [
null
],
"type": "PERMISSION",
"target": "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 not found
- 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"
}