Assign priviliges to an Identity
PATCH {{baseUrl}}/privileges/assignments/of-holder/:holderId
This is an operation to assign the privileges to an identity.
Request Body
{"data"=>{"id"=>"<string>", "type"=>"<string>", "attributes"=>{"privileges"=>[{"id"=>"<integer>", "privilegeId"=>"<integer>", "validityPeriod"=>{"validForUnlimitedTime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "validFrom"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "validTo"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}, {"id"=>"<integer>", "privilegeId"=>"<integer>", "validityPeriod"=>{"validForUnlimitedTime"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "validFrom"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "validTo"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"links":{"self":"/privileges/assignments/of-holder/120"},"data":{"id":"laborum commodo minim consectetur","type":"Assignment","attributes":{"privileges":[{"id":2,"privilegeId":3,"validityPeriod":{"validForUnlimitedTime":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"validFrom":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"validTo":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}},{"id":2,"privilegeId":3,"validityPeriod":{"validForUnlimitedTime":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"validFrom":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"validTo":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}]}}}