Hii Everyone,
I am working on Deployment API - Inspect Package, i have created a connected system in which i have entered the base url as https://<domain>/suite/deployment-management/v2, where <domain> is replaced with my site domain, and use API key for authentication. Then i have created integration using this connected system with relative path as /inspections and in request body selected content type as multipart form data and created four parts adminConsoleSettingsFileName, packageFileName, customizationFileName and zipFile, for all this parts i have created rule inputs named same as the part names and kept type as text typeexcept zipFile which is of document type.
I have passed the names of document in text type rule inputs and in zipFile i have passed exported applications zip file but now its showing error as shown in below image, can anyone help me with this?
Discussion posts and replies are publicly visible
The problem seems to be related with one of the parameters used.... check the image.
Check this example via curl and check if you are using it in the same way
Probably you have to add the brackets in the json parameter ....
+ curl --location --request POST https://xxxxx.appian.com/suite/deployment-management/v1/inspections --header 'Appian-API-Key: xxxxxxxxxx' --form zipFile=@adm/package.zip --form 'json={packageFileName:package.zip}'
I tried via curl but its showing following error:curl: (6) Could not resolve host: POSTcurl: (3) URL rejected: Port number was not a decimal number between 0 and 65535curl: (3) URL rejected: Bad hostnamecurl: (3) URL rejected: Bad hostnamecurl: (3) URL rejected: Bad hostnamecurl: (3) URL rejected: Bad hostnamecurl: (3) URL rejected: Malformed input to a URL function
Could you share here your request please? The one attached is working without problems.
curl --location --request \ POST ' xxxxx.appiancloud.com/.../inspections ' \ --header 'Appian-API-Key: <Value>' \ --form 'json="{\"adminConsoleSettingsFileName\": \"2024-09-23_0606 Admin Console Settings.zip\",\"packageFileName\": \"Practice Application.zip\",\"customizationFileName\": \"2024-09-23_0606 Admin Console Settings.properties\"}"' \--form 'zipFile=@"C:\Users\DELL\Practice Application.zip"'This is the request referenced from the documentation of Deployment API - Inspect Package
Seems the url is not correct.....delete the domain and paste the rest of the url please.
https://suite/deployment-management/v1/inspections
I have tried using v2 also instead of v1
Let me make a test... I'll keep you informed.
Sure, thank you
This one does not return any connection errors regarding url , port number or similar.
Yeah, now the error for port number or url is not there but its showing connection error.
I have also entered Appian-API-Key in Headers.