Update Employee ID Settings
Changes how SalaryBox numbers new staff automatically, as the Employee ID settings screen in the app does. Send only what you want to change; anything left out stays as it is. Shared rules: see Writing data.
- The body is closed: an unknown field is refused with
400"Unknown field."Counts toward your write budget. - Needs the plan feature for automatic Employee IDs: otherwise
403. - At least one field is required: otherwise
400"Send at least one field to change." enabledswitches automatic numbering on or off.prefixis up to 50 characters (""for none).next_numberis 1 or more.paddingis 0-10.- Staff who already have an ID keep it; only staff added afterwards are numbered.
- The response has the settings after the change, the same as Fetch Employee ID Settings.
Authentication
AuthorizationApi-Key
Format: “Api-Key {api-key}”
Request
This endpoint expects an object.
enabled
Switch automatic numbering on or off.
prefix
Letters put before the number, for example EMP. "" for none.
next_number
The number the next new staff member gets.
padding
Digits the number is zero-padded to.
Response
The settings were saved. data has the settings after the change.
message
status
data
Errors
400
Bad Request Error
403
Forbidden Error
