policies_expression_update
PUT/policies/expression/:policy_uuid/
Source Viewset
Request
Path Parameters
policy_uuid uuidrequired
A UUID string identifying this Expression Policy.
- application/json
Body
required
name stringrequired
Possible values: non-empty
execution_logging boolean
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
expression stringrequired
Possible values: non-empty
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pk uuidrequired
name stringrequired
execution_logging boolean
When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
component stringrequired
Get object component so that we know how to edit the object
verbose_name stringrequired
Return object's verbose_name
verbose_name_plural stringrequired
Return object's plural verbose_name
meta_model_name stringrequired
Return internal model name
bound_to integerrequired
Return objects policy is bound to
expression stringrequired
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"execution_logging": true,
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"bound_to": 0,
"expression": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...