Available from CRM.COM R11.0.0
GET attachments/list
This method returns the attachments related with a specific entity. Multiple attachments are returned by each call.
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
entity (mandatory) | String | The name of the entity related with the attachment. The supported entities are the following:
|
entity_id (mandatory) | String | The ID of the entity related with the attachment |
classification (optional) | String | The classification of the attachment Available from CRM.COM R12.2.0 |
fields_set | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify at least one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved attachment |
entity | String | The name of the entity related with the attachment. The supported entities are the following:
From CRM.COM R12.2.0, ATTACHMENTSLIBRARY is available From CRM.COM R14.0.0, COMMUNICATIONTEMPLATES is available |
entity_id | String | The ID of the entity related with the attachment. |
url | String | The attached URL. This information is empty if the attachment is a file. |
notes | String | The comments related with the retrieved attachment |
classification | Attachments Classification Object | The classification of the attachment Available from CRM.COM R12.2.0 |
file | File Object | The information of the attached file. This information is empty if the attachment is a URL. |
log_information | Log Information Object | The log information of the retrieved attachment |
Referred Objects Response Data
Examples
POST attachments/add
This method is used to add attachments on an existing entity. This Web API method requires a multipart/form-data post, as defined in RFC 1867. There are many libraries available that can be used in order to submit multipart/form-data posts (for example MultipartEntity in Java). A single attachment can be added through each call
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
entity (mandatory) | String | The name of the entity related with the attachments that should be returned as a result. The supported entities are the following:
|
entity_id (mandatory) | String | The ID of the entity related with the attachments that should be returned as a result |
file (semi-optional) | File | The file that should be added as an attachment |
url (semi-optional) | String | The URL that should be added as an attachment |
classification (optional) | String | The classification of the attachment Available from CRM.COM R12.2.0 |
notes (optional) | String | The notes related with the attachment |
fields_set | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
id | String | The ID of the retrieved attachment |
entity | String | The name of the entity related with the attachment. The supported entities are the following:
From CRM.COM R12.2.0, ATTACHMENTSLIBRARY is available From CRM.COM R14.0.0, COMMUNICATIONTEMPLATES is available |
entity_id | String | The ID of the entity related with the attachment. |
url | String | The attached URL. This information is empty if the attachment is a file. |
notes | String | The comments related with the retrieved attachment |
classification | Attachments Classification Object | The classification of the attachment Available from CRM.COM R12.2.0 |
file | File Object | The information of the attached file. This information is empty if the attachment is a URL. |
log_information | Log Information Object | The log information of the retrieved attachment |
Referred Objects Response Data
Examples
POST attachments/delete
This method is used to delete attachments. A single attachment can be deleted through this method
Resource URL
Parameters
Name | Type | Description |
token | String | The token retrieved from the login method |
id (mandatory) | String | The id of the attachment that should be deleted
|
Response Data
Not applicable