//:record/file GET
Overview
Lists all populated fields of type "file" or of type "image" for a record.
Request Arguments
This endpoint does not accept any request arguments.
Response Arguments
Name |
Type |
Description |
field
|
Array
|
The fields containing file properties.
|
field.content-type
|
String
|
The files content type.
|
field.content-length
|
Integer
|
The files content length.
|
field.name
|
String
|
The files ID.
|
field.width
|
Integer
|
The width of the image.
|
field.height
|
Integer
|
The height of the image.
|
field.uri
|
String
|
The URI of the file.
|
Response
{
"picture":{
"content-type":"image\/png",
"content-length":72512,
"name":"1a7b8f5c-b11c-0094-c8d8-512e9daaa983",
"width":933,
"height":519,
"uri":"http:\/\/sugarcrm\/rest\/v10\/Contacts\/fa300a0e-0ad1-b322-9601-512d0983c19a\/file\/picture"
},
"record": {
"my_favorite": false,
"following": true,
"id": "fa300a0e-0ad1-b322-9601-512d0983c19a",
"name": "Test",
"date_modified": "2014-05-16T03:49:12+02:00",
"modified_user_id": "1",
"modified_by_name": "admin",
"created_by": "1",
"created_by_name": "Administrator",
"doc_owner": "1",
"description": "",
"deleted": false,
"assigned_user_id": "1",
"assigned_user_name": "Administrator",
"team_count": "",
"team_name": [
{
"id": 1,
"name": "Global",
"name_2": "",
"primary": true
}
],
"email": [],
"email1": "",
"email2": "",
"invalid_email": "",
"email_opt_out": "",
"email_addresses_non_primary": "",
"salutation": "",
"first_name": "",
"last_name": "Test",
"full_name": "Test",
"title": "",
"facebook": "",
"twitter": "",
"googleplus": "",
"department": "",
"do_not_call": false,
"phone_home": "",
"phone_mobile": "",
"phone_work": "",
"phone_other": "",
"phone_fax": "",
"primary_address_street": "",
"primary_address_city": "",
"primary_address_state": "",
"primary_address_postalcode": "",
"primary_address_country": "",
"alt_address_street": "",
"alt_address_city": "",
"alt_address_state": "",
"alt_address_postalcode": "",
"alt_address_country": "",
"assistant": "",
"assistant_phone": "",
"picture": "",
"email_and_name1": "",
"lead_source": "",
"account_name": "",
"account_id": "",
"dnb_principal_id": "",
"opportunity_role_fields": "",
"opportunity_role_id": "",
"opportunity_role": "",
"reports_to_id": "",
"report_to_name": "",
"birthdate": "",
"portal_name": "",
"portal_active": false,
"portal_password": null,
"portal_password1": null,
"portal_app": "",
"preferred_language": "en_us",
"campaign_id": "",
"campaign_name": "",
"c_accept_status_fields": "",
"m_accept_status_fields": "",
"accept_status_id": "",
"accept_status_name": "",
"accept_status_calls": "",
"accept_status_meetings": "",
"sync_contact": false,
"mkto_sync": false,
"mkto_id": null,
"mkto_lead_score": null,
"_acl": {
"fields": {}
},
"_module": "Contacts"
}
}
Change Log
Version |
Change |
v10
|
Added /<module>/:record/file GET endpoint.
|