Skip to main content

Update a purchase request

PUT 

/purchase-requests/:code

Updates an existing purchase request (only allowed in DRAFT status). All fields are optional.

Permissions: requires purchase-requests:write (granted by can_buy). payment_method=INVOICE additionally requires can_pay_on_invoice; a foreign buyer_code requires can_purchase_on_behalf. Object-level: non-viewers get 404, viewers that are neither owner nor admin get 403, non-DRAFT requests get 409.

Request​

Responses​

Purchase request updated successfully