Queues the work of assigning a set of people the role named in the URL and returns a token for the queued job. Nothing is assigned by the time the response comes back, and the token is not something you can poll - confirm the outcome by listing the role's members.
Send the fields as form fields or in the query string, not as a JSON body. selected is read from the query and form data only, so a request carrying it as JSON comes back as a 404 with nothing assigned.
A request whose fields are the right shape always returns a queue token, whether or not the background work then succeeds: someone who belongs to another account, already holds a role here, or would exceed the account's administrator limit is skipped rather than reported.
Must be sent, with the value selected. This endpoint only ever adds the people named in selected; no other value changes what it does.
- Mock serverhttps://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/account/role/{role_id}/user/mass-create
- Your Rosterfy accounthttps://example.rosterfy.com/api/v2/account/role/{role_id}/user/mass-create
curl -i -X POST \
'https://developer.rosterfy.com/_mock/api-docs/openapi/api/v2/account/role/{role_id}/user/mass-create' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Rosterfy-Platform: admin' \
-d '{
"applyTo": null,
"selected": []
}'