Note: There is no difference in behavior between versions (v1 or v2) of this API.
OverviewCopy link to clipboard
This endpoint runs an inspection for both Admin Console settings and packages. Appian will return any deployment errors or warnings for a given package and import customization file.
- HTTP Request Method:
POST
- Endpoint:
/inspections
RequestCopy link to clipboard
When performing a POST
request, you must define a request body using the multipart/form-data
content type. Form data allows you to send key-value pairs and upload files, such as your package.
Each POST
request’s body must include a JSON object (application/json
content type) and form parameters (uploaded files). The JSON object is a list of key-value pairs, as listed below.
JSON object parametersCopy link to clipboard
adminConsoleSettingsFileName
- File name of the file containing Admin Console settings (.zip).packageFileName
- File name of the deployment package (.zip).customizationFileName
- File name of the import customization file (.properties).
Request exampleCopy link to clipboard
In addition to the JSON object below, the request should have the referenced files attached.
Request
1
POST /inspections
Copy
JSON object example
1
2
3
4
5
{
"adminConsoleSettingsFileName": "ACME Brand Standards.zip",
"packageFileName": "Fraud Investigation Management.zip",
"customizationFileName": "Fraud Investigation Management.properties"
}
Copy
cURL example
If you’re calling the API from a command line interface, you can use cURL to make a request. The cURL command with the above JSON object and its corresponding files looks like:
1
2
3
4
5
6
7
8
9
10
curl --location --request \
POST 'https://mysite.appiancloud.com/suite/deployment-management/v2/inspections' \
--header 'appian-api-key: <API key>' \
--form 'json="{
\"adminConsoleSettingsFileName\": \"ACME Brand Standards.zip\",
\"packageFileName\": \"Fraud Investigation Management.zip\",
\"customizationFileName\": \"Fraud Investigation Management.properties\"
}"' \
--form 'zipFile=@"Fraud Investigation Management.zip"' \
--form 'ICF=@"Fraud Investigation Management.properties"'
Copy
Each form parameter requires a key name, as indicated by randomKey1
, but these can be arbitrarily named and do not need to match anything in the JSON object.
ResponseCopy link to clipboard
Successful responseCopy link to clipboard
uuid
- UUID of the inspection. This can be used to retrieve details of the inspection.url
- The URL to use to retrieve the details of the inspection.
Response exampleCopy link to clipboard
1
2
3
4
{
"uuid": "378271a6-ca0d-4466-bac9-385e4fcb951a",
"url": "https://mysite.appiancloud.com/suite/deployment-management/v2/inspections/378271a6-ca0d-4466-bac9-385e4fcb951a/"
}
Copy