How to use the HTTP API to create an asset in an AEM instance. I am using the below code and getting a 500 Server error.
There must be a log entry (most likely an exception) in the error.log, which gives more information about this statuscode 500. Can you share that exception?
(Very unlikely that the CSRF filter is causing this. Because a few user agents are explicitly listed, which are ignored by the filter.)
Hi @debasis-swain ,
Have you met the prerequisite to use asset API?
Please follow the below step.
Below document details about asset API in detail. Also possible error scenarios
Please refer to the below community post. It could because of anonymous post request. Either remove post from sling referee filter or add csrf header..