Update a purchase order

Updates the specified purchase order by setting the values of the parameters passed.
Any parameters not provided will be left unchanged.

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

Purchase order id

Body Params

Purchase order fields to be updated with new values

string
length ≥ 3

Updatable only when status is in DRAFT, NOT_RECEIVED and PARTIALLY_RECEIVED

integer
≤ 2147483647

Updatable only when status is in DRAFT and NOT_RECEIVED

string

Updatable only when status is in DRAFT and NOT_RECEIVED

string
≤ 2147483647

Updatable only when status is in DRAFT and NOT_RECEIVED and
entity_type is outsourced

string
enum
Allowed:
string

Updatable only when status is in DRAFT, NOT_RECEIVED and PARTIALLY_RECEIVED. Update will override arrival_date on purchase order rows

string
integer
≤ 2147483647

Updatable only when status is in DRAFT and NOT_RECEIVED

string
custom_fields
object | null

Behind feature flag — contact [email protected] to enable. Custom field values keyed by custom field definition ID (UUID) of a definition with entity_type PurchaseOrder or OutsourcedPurchaseOrder. Each value matches the definition’s field_type — string for shortText/url, number for number, boolean for boolean, YYYY-MM-DD string for date, or the integer choice id for singleSelect. Merged with existing values — omit a key to leave it unchanged. Set the whole field to null to clear every custom field value on this purchase order. Unknown definition IDs are rejected with a 422.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Choose an example:
application/json