When running a JSON update in a process gel script, there is a consistent error API-1004 Invalid resource identifier XXXXXX
Details of the process message error shows: HTTP 404
The APP error is:
ERROR 2025-03-27 07:23:14,877 [https-jsse-nio2-8043-exec-150] ppm.rest (clarity:user:session:PPM_REST_API) (6acceefb-acb0-4ba5-a1a5-8b19260ded6b)
com.ca.ppm.rest.exception.NotFoundException: API-1004 : Invalid resource identifier 5309342
Retrying with a patch call works.
Use a PUT call instead of a PATCH call as the PUT request is intended to replace the entire target resource with the data provided in the request body.
All required attributes must be sent for the resource, even if changing only one as it is an overwrite.
Change the gel script to use HttpPut instead of HttpPatch