Assign a policy
POST/v1/policies/:id/assign
Offers the policy to more domains or projects or, with remove, withdraws it from them.
Operator only: needs a system-scoped token.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 413
- 415
- 422
- default
OK
Bad Request.
invalid_request: The body is not a single JSON object, names a field this operation does not take, or gives a value of the wrong type.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token lacks the policy:assign permission.
Not Found.
not_found: The id is not a UUID, or no policy has it.
Request Entity Too Large.
body_too_large: The body is larger than the service accepts.
Unsupported Media Type.
unsupported_media_type: The body is not sent as application/json.
Unprocessable Entity.
validation_failed: The body names no domain and no project.
An error, as an RFC 7807 problem document.