Set the order of a user's routing policies.
POST/api/v1/users/{user_id}/delegation-policies/replaceusers:admin
Sends every active policy of the user exactly once, in the order they should be tried: the first becomes priority 1, and priorities stay contiguous. Attaching and detaching stay separate (create_user_delegation_policy, delete_user_delegation_policy): a list that adds or leaves out a policy is 422. If-Match is honoured against the answer's ETag. The answer is the new order. Needs Reorder Delegation Policies and View Delegation Policies.
| Scope | users:admin (sensitive) |
| Asynchronous | No |
| MCP tool | replace_user_delegation_policies |
| Portal permissions | reorder_delegation_policies |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
user_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | UserDelegationPolicyOrderInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json UserDelegationPolicyPriorities or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
UserDelegationPolicyOrderEntryInput
| Field | Type | Required | Description |
|---|---|---|---|
delegation_policy_id | string | Required |
UserDelegationPolicyOrderInput
| Field | Type | Required | Description |
|---|---|---|---|
items | array of UserDelegationPolicyOrderEntryInput | Required | Every active policy of the user exactly once, first priority first. |
UserDelegationPolicyPriorities
| Field | Type | Required | Description |
|---|---|---|---|
items | array of UserDelegationPolicyPriority | Required |
UserDelegationPolicyPriority
| Field | Type | Required | Description |
|---|---|---|---|
delegation_policy_id | string | Required | |
priority | integer | Required | ≥ -2147483648; ≤ 2147483647 |