Invoking Appian Rest API

Certified Associate Developer

Hi All,

While trying to invoke appian inspection API'S using curl command we are not getting the expected output instead we are getting error response
Tried same below api with postman and getting expected response but not with curl command. Can anyone help on this!

API :

curl -x 'http://XXXXXXXXXXXXXX:8080' --location --request \

POST 'ourappiansite/.../inspections' \

--header 'Appian-API-Key: ************************************’ \

--form 'json="{

\"packageFileName\": \" AppianApp.zip\",

\"customizationFileName\": \"Appianpropertyfile.properties\"

}"' \

--form 'zipFile=@"AppianApp.zip"' \

--form 'ICF=@"AppianApp.properties"'


Error Response:

{"resource":"\/suite\/deployment-management\/v1\/inspections","title":"An Error Has Occurred","error":"APNX-1-4552-004","message":"The request cannot be processed."}


Expected Response of Inspect API:

{

"uuid": "****************",

"url": "">oursite/.../****************************"

}

Thanks in advance

Regards

Abdul

  Discussion posts and replies are publicly visible

Parents Reply
  • Thank you, but I have no "System Logs" in the menu. I need to ask more privileges on Monday.

    Regarding the inspection - yes appian version it is the problem. But I am still bit surprised that when I call the inspection from UI then I got error APNX-1-4154-001 and when I call the inspection via API then I got error APNX-1-4552-004. Do not understand why the errors are not the same...

Children