Skip to content
gist.link ↗

deletePayProfile

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

GDPR/PIPEDA erasure: delete an employee’s sealed pay profile wholesale. ROLE_ADMIN.

payroll:mutation:deletePayProfile

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 {
deletePayProfile(employeeUuid: String!): Boolean!
}
Argument Type Required Description
employeeUuid String! Yes —

Boolean!.

Terminal window
curl https://payroll.api.gist.link/graphql \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H 'Content-Type: application/json' \
-d @- <<'JSON'
{
"query": "mutation DeletePayProfile($employeeUuid: String!) { deletePayProfile(employeeUuid: $employeeUuid) }",
"variables": {
"employeeUuid": "example"
}
}
JSON