Applies edits and/or deletes to Sales Item Linking grid rows in a single batch.
A row cannot be deleted while it still has secondary links; those must be deleted first, and the whole batch fails if any row is blocked. Permissions: SystemAdministrator, SupportAdministrator, Administrator users. SalesItemLinking api family.
Headers
- Type: stringD
C Key The Integration Key generated for API Authentication by the PAR OPS support team as part of the integration/partnership process.
Body·
- Type: array of string | nullFormat: uuidDelete
- Properties: 6Type: array of OPS.Web.Api.v2.Models.SalesItemLinking.SalesItemLinkingUpdateModel | nullInsert
- Properties: 6Type: array of OPS.Web.Api.v2.Models.SalesItemLinking.SalesItemLinkingUpdateModel | nullUpdate
Responses
- 200
OK
Request Example for post/v2/SalesItemLinking/Batch
curl /v2/SalesItemLinking/Batch \
--request POST \
--header 'Content-Type: application/json-patch+json' \
--header 'DCKey: YOUR_SECRET_TOKEN' \
--data '{
"Delete": [
"C895A81E-0C20-42C0-B2DC-EAF43F9447BD"
],
"Insert": [
{
"ID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"ParOpsItemID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"UnitOfMeasureID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"POSActiveDate": null,
"Comment": null,
"Visible": null
}
],
"Update": [
{
"ID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"ParOpsItemID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"UnitOfMeasureID": "C895A81E-0C20-42C0-B2DC-EAF43F9447BD",
"POSActiveDate": null,
"Comment": null,
"Visible": null
}
]
}'
No Body
