Patch PO lines (merge, key in every record)
PATCH/v1/purchaseorderline
PO lines, keyed per source system by source_line_id; source_document_id names the PO (same source system). po_number is taken from the PO.
Keys: id, source_system + source_line_id. Rights: READ_PURCHASEORDER to read, POST_PURCHASEORDER to write (and READ_DATA / POST_DATA).
Merge: only the fields sent change; never creates (unknown keys answer not_found). Children are merged by their keys; send "_delete": true on a child to remove it.
Request
Responses
- 200
- 207
- 400
- 401
- 403
- 404
- 413
- 422
Every record succeeded
Some records were rejected or not found (see each result)
The request itself is invalid (not an array, empty)
Missing or invalid API key
The key lacks the right, or the record is outside its organizations
No record was found
More than 1,000 records
Every record was rejected, or all_or_none rolled the request back (results inside)