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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;links&quot;:{&quot;self&quot;:&quot;/privileges/assignments/of-holder/120&quot;},&quot;data&quot;:{&quot;id&quot;:&quot;laborum commodo minim consectetur&quot;,&quot;type&quot;:&quot;Assignment&quot;,&quot;attributes&quot;:{&quot;privileges&quot;:[{&quot;id&quot;:2,&quot;privilegeId&quot;:3,&quot;validityPeriod&quot;:{&quot;validForUnlimitedTime&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;validFrom&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;validTo&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}},{&quot;id&quot;:2,&quot;privilegeId&quot;:3,&quot;validityPeriod&quot;:{&quot;validForUnlimitedTime&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;validFrom&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;validTo&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}}]}}}