Get Attachments of an Activity
Retrieves attachments uploaded against an activity. You must specify the ‘prospectActivityId’ in the API URL.
API URL
URL Parameters
| Parameter | Description |
|---|---|
| ProspectActivityId | Id of the activity you want to retrieve attachments of. |
Response
[
{
"AttachmentId": "e14a7b18-6af9-11e8-8455-020714094d7e",
"AttachmentAutoId": 3,
"RelatedObjectType": 2,
"RelatedObjectId": "dbd5a225-d66a-40ca-b9cd-7e23f413ac1b",
"Name": "agreement.png",
"Description": "",
"AttachmentFile": "https://d24cdstip7q8pz.cloudfront.net/t/t20170817174751/content/module/lead/3aee22bd-8419-422a-8242-c510df9af021/SalesActivity//agreement.png",
"AttachmentLabel": "",
"CreatedBy": "3b1041fb-8374-11e7-8758-0a106ee76b21",
"CreatedOn": "2018-06-08 08:56:49",
"ModifiedBy": "3b1041fb-8374-11e7-8758-0a106ee76b21",
"ModifiedOn": "2018-06-08 08:56:49",
"CreatedByName": "Vir Singh",
"ModifiedByName": "Vir Singh"
}
]
HTTP Response Codes
| Code | Description |
|---|---|
| 200 OK | This is the status code for successful API call. |
| 401 Unauthorized | The API call was made with invalid access credentials. Check your AccessKey and SecretKey. |
| 400 Bad Request | The message body on the request is not as per API specification. Make sure that content type is set to “application/json” and the JSON body has correct attribute names and structure. |
| 404 Not Found | The API could not be found. Please check the API signature. |
| 429 Too Many Requests | API calls exceeded the limit of 25 in 5 second(s) |
| 500 Internal Server Error | The API called failed. There could be many reasons for it. Check the exception message to get more details. |

