Create Approval Delegation
POST/api/approval-delegations
Let someone approve on your behalf while you are away. During the window the delegate can act on every step you are eligible for; their decisions record on_behalf_of you. Pending requests are updated immediately.
purchase-orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Requires Bearer token with the purchase-orders scope (read for GET, write for POST/PUT/DELETE).
Body fields:
user_id(integer, optional, nullable) — who is delegating; defaults to you. Setting it for someone else requires administrator access (403approval_delegation_forbidden).delegate_user_id(integer, required) — a different user in this accountstarts_at(datetime, required)ends_at(datetime, required, afterstarts_at; at most 90 days later)document_types(array, optional, nullable) —purchase_order,vendor_deposit,bill_payment; null or empty = allnotes(string, optional, max 500)
Returns 422 when the delegate is the delegator, either user is not in the account, the window is too long, or it overlaps an existing delegation for the same document types (revoke that one first).
Request
Responses
- 201
- 401
- 403
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.