Create a new role by cloning an existing role
POST {{baseUrl}}/api/v2/roles/:role_id/clone
Clone an existing role
Request Body
{"data"=>{"type"=>"roles", "attributes"=>{"name"=>"cloned-role"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"type":"roles","attributes":{"created_at":"1970-01-14T09:57:50.131Z","modified_at":"1945-05-16T00:07:56.329Z","name":"nostrud veniam","user_count":77202812},"id":"aliquip ut pariatur ex","relationships":{"permissions":{"data":[{"id":"Duis ullamco ut reprehenderit culpa","type":"permissions"},{"id":"dolor sit","type":"permissions"}]}}}}