Invoking Appian Rest API
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
