Skip to main content

Attach a routing policy to a user.

POST/api/v1/users/{user_id}/delegation-policies/{delegation_policy_id}users:admin

Attaches the policy to the user at the next priority. A policy already attached is refused (409 already_exists).

Scopeusers:admin (sensitive)
AsynchronousNo
MCP toolcreate_user_delegation_policy
Portal permissionsattach_delegation_policies

Parameters​

NameInTypeRequiredDescription
user_idpathstringRequired
delegation_policy_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Responses​

StatusDescriptionBody
201Success.application/json PolicyAttachment or object
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409already_exists, idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

PolicyAttachment​

FieldTypeRequiredDescription
delegation_policy_idstringRequired
priorityinteger or nullRequired
user_idstringRequired