Skip to main content
PATCH
Update a purchase request's status

Autorisations

X-API-KEY
string
header
requis
OW-KEY
string
header
requis

OpenWrench shared secret. Required on every request alongside X-API-KEY; issued together with your API key.

Paramètres de chemin

id
integer<int64>
requis

Purchase request id

status
enum<string>
requis

Target status

Options disponibles:
requested,
denied,
cancelled,
approved,
orderInProgress,
ordered,
partially_ordered,
fulfilled,
partially_fulfilled

Réponse

Successful response

type
string
requis

Entity type label, e.g. "SupplierPurchaseRequest". Endpoints that derive it via Scala reflection (most generic list/get endpoints) may return the fully qualified server class name instead (e.g. "models.workorder.WorkOrder"); treat this field as informational.

data
object
requis

Supplier purchase request (approval-hierarchy and hydrated relation fields omitted).

status
enum<string>
requis

"ok" on success

Options disponibles:
ok