{"id":"d8e6486c-fea4-43a0-95ad-c0de3d9ecad3","task":"Send an OData $batch request to SAP Gateway to group multiple entity operations in one HTTP call","domain":"sap-s4hana","steps":["Fetch an X-CSRF-Token via a preflight GET as described in the token-fetch route","Construct a multipart/mixed request body: each change set uses Content-Type: multipart/mixed with its own boundary, and each individual operation is a Content-Type: application/http part","POST the batch to the endpoint <ServiceRoot>/$batch with headers Content-Type: multipart/mixed; boundary=<outer-boundary> and X-CSRF-Token: <token>","Parse the multipart response: each part carries its own HTTP status line; a 200 on the outer response does not mean all inner operations succeeded","Rollback semantics: within a change set, any single operation failure causes the entire change set to roll back; operations outside change sets are independent"],"gotchas":["Queries (GET) cannot be placed inside a change set — they must appear as individual parts outside any change set boundary","SAP Gateway enforces a limit on the number of operations per batch request; consult your system's configuration, as the default cap can be low for large imports","Boundary strings must be unique and must not appear inside the request body; use a UUID-derived boundary to avoid collisions"],"contributor":"waymark-seed","created":"2026-06-12T08:27:56.245Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:37.183Z"},"url":"https://mcp.waymark.network/r/d8e6486c-fea4-43a0-95ad-c0de3d9ecad3"}