The following is the same REST File Api call with curl command
curl -u rest:heiler -H "Accept: application/json" -H "Content-Type:application/octet-stream" --data-binary "@Data.xlsx" -X POST http://localhost:1501/rest/V1.0/manage/file?originalFilename=Data.xls
And response will be:
One question is Other Rest API call working fine? or only this APi call has the issue?
Please take a look at the ActiveVos logs and PIM sever logs for more information and see if the integration missing or else folder access, etc..
PIM REST calls execute fine from Postman , we are facing issues even calling PIM GET APIs from ActiveVOS , we are on PIM 8.1.x version.
Above code has been written referring to samples shipped by INFA under PIM accelerators , not sure if those are working samples !
I am looking for any working code example may it be GET/PUT.
yes, there are working samples. If you open the process in Active Console you can see at which step you are getting the error. Try to to open and see if there is any Authorization error or someother error.
Did you configure Rest user? have a look at the Accelerators document for ActiveVOS with PIM integration. Which will have more information.
Thanks for replying , yes referred to Accelerator guide and all required configurations etc.
Rest user is configured that's why was able to execute APIs from Postman at first place.
There has to be some small glitch which is blocking the Rest Service call from AVOS , if you have any local working code (not the resourcekit version) just paste the Rest Request and PDD snippets that can give a hint to missing piece.