Update expense claim

Updates a draft expense claim: send only the fields to change. line_items replaces every line: send each line you keep with its id. Each line names its expense account by account_id (its chart_of_account_id keeps it) or account_code, and its tax rule by tax_rule_id or tax_code, under the same rules as expenseClaim.store (422 expense_claim_line_account_unavailable or expense_claim_line_tax_rule_unavailable, naming the line; nothing is saved). A line sent with its id keeps the account and tax rule it already has while the account is active and the company still allows it, and so does an update without line_items. Idempotency-Key and If-Match with the latest ETag are required. Requires the expense-claims:write OAuth scope.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params

Fields accepted to update expense claim. The schema identifies required and optional values.

string
enum
Allowed:
uuid
string
enum
Allowed:
uuid | null
number | null
≤ 99999
number | null
≤ 100
string
length ≤ 255
date
date | null
string | null
string
enum
Allowed:
uuid
line_items
array of objects
length between 1 and 100
line_items
Headers
string
required
length ≤ 191

Required unique key whose request hash and terminal response are stored durably for 24 hours.

string

Required. ETag from the latest representation; a stale value returns 412 precondition_failed. Send this header, not the standard If-Match: some HTTP intermediaries evaluate a standard If-Match themselves and can answer 412 even though the change was applied. Never send both; both with different ETags returns 400 conflicting_precondition_headers.

string
deprecated

Accepted with the same value and meaning as Cybooks-If-Match, but do not send it: an intermediary can answer 412 to it after the change was applied. Send Cybooks-If-Match instead.

Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*