Skip to content
gist.link ↗

updatePayrollEmployee

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

Update employee details, employee number, and compensation. ROLE_ADMIN.

payroll:mutation:updatePayrollEmployee

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 {
updatePayrollEmployee(uuid: String!, input: UpdatePayrollEmployeeInput!): PayrollEmployee!
}
Argument Type Required Description
uuid String! Yes —
input UpdatePayrollEmployeeInput! 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 UpdatePayrollEmployee($uuid: String!, $input: UpdatePayrollEmployeeInput!) { updatePayrollEmployee(uuid: $uuid, input: $input) { id uuid email currency created_at updated_at } }",
"variables": {
"uuid": "example",
"input": {
"employment_status": "example",
"country": "example",
"hired_at": "example"
}
}
}
JSON