Operation CategoriesAssign a category to an operation

Assign a category to an operation

Requires the assign capability. Required fields must be filled in right away (D3). If the category's approvalScope = assign_and_edit, the record goes into an approval request (202).

curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/operations/transfer/example_string/categories" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "categoryId": "example_string",
  "values": {},
  "changeNote": "example_string"
}'
{
  "id": "cmr3f41z20001psp7phmyapw3",
  "vaultId": "example_string",
  "operationType": "deposit",
  "operationId": "example_string",
  "categoryId": "example_string",
  "category": {
    "id": "example_string",
    "key": "example_string",
    "name": "John Doe"
  },
  "values": {},
  "redactedFields": [
    "example_string"
  ],
  "version": 42,
  "status": "active",
  "createdById": "example_string",
  "updatedById": "example_string",
  "createdAt": "2026-07-02T11:25:15.134000Z",
  "updatedAt": "2026-07-02T11:25:15.134000Z"
}
POST
/api/v1/vaults/{code}/operations/{type}/{id}/categories
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

path
codestring
Required

Unique Vault code (slug)

path
typestring
Required
Options: transfer, deposit
Content-Typestring
Required

The media type of the request body

Options: application/json
valuesobject

Field values; required fields must be filled in

changeNotestring
Max length: 500
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Unique Vault code (slug)

Example:
demo_vault
typestring
Required
Allowed values:transferdeposit

Body

application/json
valuesobject

Field values; required fields must be filled in

Responses