v1

latestOpenAPI 3.0.22026-07-24154101.1 MB
User Assignments

Create Many Role Assignments

post/v2/batch/company/{company_id}/users/role_assignments

Path parameters

company_idinteger required

Company ID

Headers

x-api-versionstring

An API version

Example:2022-05-01

7shifts API version

x-company-guidstring uuid

Company GUID

Request body

user_idinteger required

The User ID of who you'd like to assign the role to

role_idinteger required

Role ID for user assignment

primaryboolean

Sets the role as primary for this user. Only one role per department can be primary.

Response

Created

object'role_assignments' required