policies_bindings_update
PUT/api/v3//policies/bindings/:policy_binding_uuid/
PolicyBinding Viewset
Request
Path Parameters
policy_binding_uuid uuidrequired
A UUID string identifying this Policy Binding.
- application/json
Bodyrequired
policyuuidnullable
groupuuidnullable
userintegernullable
targetuuidrequired
negateboolean
Negates the outcome of the policy. Messages are unaffected.
enabledboolean
orderintegerrequired
Possible values: >= -2147483648
and <= 2147483647
timeoutinteger
Timeout after which Policy execution is terminated.
Possible values: <= 2147483647
failure_resultboolean
Result if the Policy execution fails.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
pkuuidrequired
policyuuidnullable
groupuuidnullable
userintegernullable
policy_obj object
group_obj object
user_obj object
targetuuidrequired
negateboolean
Negates the outcome of the policy. Messages are unaffected.
enabledboolean
orderintegerrequired
Possible values: >= -2147483648
and <= 2147483647
timeoutinteger
Timeout after which Policy execution is terminated.
Possible values: <= 2147483647
failure_resultboolean
Result if the Policy execution fails.
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"policy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"group": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user": 0,
"policy_obj": {
"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
},
"group_obj": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"users": [
0
],
"users_obj": [
{
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-07-29T15:51:28.071Z",
"email": "user@example.com",
"attributes": {},
"uid": "string"
}
],
"attributes": {},
"roles": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"roles_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
]
},
"user_obj": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-07-29T15:51:28.071Z",
"is_superuser": true,
"groups": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"groups_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"attributes": {}
}
],
"email": "user@example.com",
"avatar": "string",
"attributes": {},
"uid": "string",
"path": "string",
"type": "internal",
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"password_change_date": "2024-07-29T15:51:28.071Z"
},
"target": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"negate": true,
"enabled": true,
"order": 0,
"timeout": 0,
"failure_result": true
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP