POST api/Attachments/{id}?recordType={recordType}&personal={personal}

Create an attachment and link it to an entity. The request body must be in the "form-data" format. The file display name should be used as the key.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
recordType

Supported values include: Contact, Company, Group, Opportunity, Activity, History, Note

string

Required

id

The id of the record this attachment will be linked to.

globally unique identifier

Required

personal

boolean

Required

Body Parameters

None.

Response Information

Resource Description

If the record type is Contact, Group, Company, or Opportunity, this endpoint will return the ID of the document record. Otherwise it will return the same entity ID that was passed in to the parameters.

globally unique identifier

Response Formats

application/json, text/json

Sample:
"80919307-8439-4acb-93f0-704173357290"