Example of using the simplified REST API to download an attachment
cURL example
curl -X 'GET' \
'https://<Innovation Suite server URL>/api/com.bmc.dsm.itsm.itsm-rest-api/attachment/download/HPD%3AWorkLog/1000000351/AGGADGGXJ6E3GAQX5FEYQX5FEY55OK' \
-H 'accept: */*'
'https://<Innovation Suite server URL>/api/com.bmc.dsm.itsm.itsm-rest-api/attachment/download/HPD%3AWorkLog/1000000351/AGGADGGXJ6E3GAQX5FEYQX5FEY55OK' \
-H 'accept: */*'
Request URL
https://<Innovation Suite server URL>/api/com.bmc.dsm.itsm.itsm-rest-api/attachment/download/HPD%3AWorkLog/1000000351/AGGADGGXJ6E3GAQX5FEYQX5FEY55OK
The following example demonstrate how to perform the operations by using Postman client.
Before you begin
Make sure that you have a valid authentication token. For more information, see Access-and-authentication-for-the-simplified-REST-API.
To download an attachment
- Open the Postman - REST Client.
Enter the request URL. For example:
https://<Innovation Suite server URL>/api/com.bmc.dsm.itsm.itsm-rest-api/attachment/download/HPD%3AWorkLog/1000000351/AGGADGGXJ6E3GAQX5FEYQX5FEY55OK
- Select the operation as POST.
- Click Headers.
Enter the following data as key value pairs in the header:
Key
Value
X-Requested-By
XMLHttpRequest
Content-Type
application/json
- Click Send.
The results are displayed on the response panel.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*