API Reference / Finance - Budget Items

Reorder budget items

patch https://api.intelig.ai/api/v1/intelig/budgets/{budgetId}/items/reorder

Auth: Authorization: ApiKey <key> (an API key sent as Bearer is rejected) or Authorization: Bearer <jwt> for a dashboard session. operationId: reorderItems

Updates the sort order of items (drag-and-drop)

Example request

curl -X PATCH "https://api.intelig.ai/api/v1/intelig/budgets/1/items/reorder" \
  -H "Authorization: ApiKey $INTELIG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "itemIds": [
      3,
      1,
      5,
      2
    ]
  }'

Path parameters

NameTypeRequiredDescription
budgetId integer (int64) yes

Request body

application/json

FieldTypeRequiredDescription
itemIds integer[] yes Ordered list of item IDs defining the new sort order Example: [3,1,5,2]

Response 200

application/json · ApiResponseVoid

FieldTypeDescription
success boolean
message string
data object

Status codes

  • 200 — Budget items reordered successfully
  • 400 — Invalid item ID list
  • 401 — Not authenticated
  • 403 — Insufficient permissions to access finance pillar
  • 404 — Budget not found
  • 429 — —

Every response is wrapped in { success, message, data }. A 4xx means the request is wrong — do not retry it unchanged. A 429 carries Retry-After in seconds.