Skip to main content
PUT
Replace a person's direct grants

Authorizations

X-Auth-Token
string
header
required

FlowPayroll JWT (raw token, no Bearer prefix)

Path Parameters

principalId
string
required

Body

application/json

Replaces the whole set of organisations a person holds a direct grant on. Does not affect account-wide access.

organisationIds
string[] | null

The complete set of organisations they hold a direct grant on afterwards.

roleId
string | null

The role to give, such as payroll-manager or one of your own (custom.hr-team); see GET /roles. Leave it out to give your account's default role (GET /customer/access-settings); while your account cannot give roles yet, that is administrator.

Response

OK

message
object
content
object
validationIssues
object[] | null