Skip to main content

Update a file

PATCH 

/files/:file_id

Update a file's metadata or re-point which records it is attached to.

name and url are a partial update — omit what you don't want to change. The association lists are not: any of contact_ids, company_ids, deal_ids or ticket_ids that you send REPLACES that list wholesale, so to add one attachment you must send the existing ids plus the new one. Sending an empty array detaches the file from every record of that type.

A file's type cannot be changed after it is attached — create a new file instead.

Request

Responses

The updated file