Appearance
Create Counter
Create a new auto-increment counter. Counters generate sequential numbers used as identifiers in forms and tasks (e.g., INC-0001). Requires ADMIN, MANAGE_OBJECTS, MANAGE_FORM, or MANAGE_TASK permissions.
Parameters
| name * are required parameters | data type | description |
|---|---|---|
body.name* | string | The display name of the counter |
body.prefix | string | A prefix string prepended to each counter value |
body.startValue | number | The starting value for the counter (default: 1) |
body.padding | number | Number of zero-padded digits (e.g., 4 for 0001) |
Return Value
The created counter configuration.
Examples
bash
curl -X POST "https://app.wombat.software/api/{targetPath}/counter" \
-H "Content-Type: application/json" \
-H "Authentication: Bearer ..." \
-d '{"name": "Incident Counter", "prefix": "INC-", "padding": 4}'ENDPOINTS
post
/api/{targetPath}/counter