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

| Key | Datatype | Required | Description | | Content-Type | string | | | | Accept | string | | |

RESPONSES

status: Created

{"add_at":"\u003cdateTime\u003e","ids":"\u003cstring\u003e"}