Skip to main content
February 18, 2022
Question

Invoking Appian Rest API

  • February 18, 2022
  • 7 replies
  • 0 views

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

7 replies

richardm900458
February 18, 2022

Hi abdul,
that super hard to read. Can you post screenshots? perhaps this supports your case.
And whats the overall scenario?

June 8, 2024

Hi, did you find the solution? I have the same issue.

davidj137213
June 8, 2024

Doy you see any error in logs? Probably the execution of the web api is raising an exception

June 8, 2024

Hi, thank you for quick response. I don't see anything in the logs (I don't know where the logs are :)). However, when I try to inspect the package from the UI, I get a different error: APNX-1-4154-001 (The selected package was exported on version 24.2.195.0 and it cannot be imported or inspected on the older version 24.1.235.0.). It's strange that the inspection using the API and the UI gives different results.

davidj137213
June 8, 2024

YOu  can fin logs here (System logs)

Once clicked, you will a list of files... open tomcat-stdout.logs look for the error , and paste it here

About inspection, it's because you've developed your package in an older version...