Assign a role

POST {{baseUrl}}/roles/:roleId/members

User roles can have a set of permissions that allows access only to the pages a user needs to view or edit. Use this API to assign a role to members.

Prerequisites:

  • A Pro or a higher plan.

Scopes: role:write:admin

Rate Limit Label: Medium

Request Body

{"members"=>[{"email"=>"<email>", "id"=>"<string>"}, {"email"=>"<email>", "id"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;add_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;ids&quot;:&quot;\u003cstring\u003e&quot;}