Skip to content
gist.link ↗

assignEmployeeNumber

Mutation Payroll API — POST https://payroll.api.gist.link/graphql

Assign the org-unique clock in/out employee number. ROLE_ADMIN.

payroll:mutation:assignEmployeeNumber

The calling IAM key must hold this permission (or a wildcard that covers it: payroll:mutation:* or payroll:*) and the access token must have been minted with audience=payroll. See Permissions.

type Mutation {
assignEmployeeNumber(employeeUuid: String!, employeeNumber: String!): PayrollEmployee!
}
Argument Type Required Description
employeeUuid String! Yes —
employeeNumber String! Yes —

PayrollEmployee! — see the Payroll types reference.

Terminal window
curl https://payroll.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation AssignEmployeeNumber($employeeUuid: String!, $employeeNumber: String!) { assignEmployeeNumber(employeeUuid: $employeeUuid, employeeNumber: $employeeNumber) { id uuid email currency created_at updated_at } }",
"variables": {
"employeeUuid": "example",
"employeeNumber": "example"
}
}
JSON