Set the order of a user's routing policies.
POST/api/v1/users/{user_id}/delegation-policies/replaceusers:admin
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | users:admin (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | replace_user_delegation_policies |
| Portal の権限 | reorder_delegation_policies |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
user_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | UserDelegationPolicyOrderInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json UserDelegationPolicyPriorities または 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
UserDelegationPolicyOrderEntryInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
delegation_policy_id | string | 必須 |
UserDelegationPolicyOrderInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | UserDelegationPolicyOrderEntryInput の配列 | 必須 | Every active policy of the user exactly once, first priority first. |
UserDelegationPolicyPriorities
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
items | UserDelegationPolicyPriority の配列 | 必須 |
UserDelegationPolicyPriority
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
delegation_policy_id | string | 必須 | |
priority | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |