Updating DNG attribute value with POST request using widget throws 403 Forbidden Error
Hello,
I am trying to update a DNG artifact attribute within a module using a widget, but while updating it through widget, I get "403 Forbidden" Error after the POST command is executed in the background.
Steps in background :
1. Change set is created and widget is hosted in personal global stream.
2. Widget triggers a GET request for each artifact, stores the response including the "ETag" header value.
3. It forms relevant content to be updated in the artifact as response body, appropriate headers including "IF-Match" with above Etag value is added and POST request is executed.
After above steps, the attribute is not updated and it throws "403 Forbidden Error" in background.
The same logic is applied in java application and it works fine without any such error.
Could you please help?
One answer
A 403 can be caused by a number of things, but in this case it is likely because you are doing a POST (create) when you should be doing a PUT (update).
Comments
Matthias Buettgen
Nov 06 '20, 8:39 a.m.Jyotsna Prasad
Nov 10 '20, 2:15 a.m.