Symptom
Error "428 Precondition Required" returns when sending a patch request via API.
Environment
SAP S/4HANA Cloud Public Edition
Resolution
The "If-Match" header needs to be filled with the ETag value every time sending the patch request via API.
1. Make a first GET Call to get the "If-Match" in the response header Etag.
2. Fill the ETag value as the "If-Match" key in the Headers in the second PATCH Call.
Keywords
ETag, PATCH, API, If-Match, 428, Precondition Required , KBA , SD-SLS-API-2CL , API (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions