Skip to content
gist.link ↗

updatePayrollSettings

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

Configure pay frequency, anchor pay date, and overtime threshold. ROLE_ADMIN.

payroll:mutation:updatePayrollSettings

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 {
updatePayrollSettings(input: PayrollSettingsInput!): PayrollSettings!
}
Argument Type Required Description
input PayrollSettingsInput! Yes —

PayrollSettings! — 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 UpdatePayrollSettings($input: PayrollSettingsInput!) { updatePayrollSettings(input: $input) { uuid pay_frequency anchor_pay_date overtime_weekly_threshold_hours next_pay_date updated_at } }",
"variables": {
"input": {
"pay_frequency": "example",
"anchor_pay_date": "example",
"overtime_weekly_threshold_hours": 10
}
}
}
JSON