Skip to content
gist.link ↗

createPayType

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

The createPayType mutation on the Payroll API.

payroll:mutation:createPayType

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 {
createPayType(input: PayTypeInput!): PayType!
}
Argument Type Required Description
input PayTypeInput! Yes —

PayType! — 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 CreatePayType($input: PayTypeInput!) { createPayType(input: $input) { id uuid name currency created_at updated_at } }",
"variables": {
"input": {
"name": "Example",
"category": "example",
"amount_type": "example"
}
}
}
JSON