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
- 200
- 400
- 401
- 403
- 404
- 422
The updated file
Malformed request
Missing or invalid token
Token lacks the required scope, or the user's role/permissions deny this action
Resource not found (or not visible to this user's role)
Request failed schema validation