Files (Documents)
Update file
You can update a document's url if there was a problem when creating a document. If you update a document's url, we will attempt to get the document from that url again, and update the upload_status as described in the create documentation above.
Update a document's tags
To update a document's tags supply an array with the set of tag ids you would like to be applied. Unknown tag ids will be ignored.
curl -X PUT -d "document[document_tag_ids][]=13&document[document_tag_ids][]=28" \"https://api.pipelinecrm.com/api/v3/documents/9.json?api_key=XXXXXXXXXXXXXXXXXXXXXXXXX&app_key=XXXXXXXXXXXXXXXXXXXXXXXXX"
put/documents/{id}
Request
- Base URL: https://api.pipelinecrm.com/api/v3
- URL: https://api.pipelinecrm.com/api/v3/documents/{id}
- Auth: one of:
- HTTP bearer
- HTTP bearer and API key in header app-key
- API key in query parameter api_key and API key in query parameter app_key
Path parameters
idinteger required
File (document) ID
Request body
Example request
{
"document": {
"updated_at": "2026-09-01 14:22:07",
"title": "Acme-renewal-quote-v2.pdf",
"owner_id": 123,
"person_id": 123,
"deal_id": 123,
"company_id": 123,
"calendar_entry_id": 123,
"primary_association_id": 123,
"primary_association_type": "CalendarTask",
"url": "https://app.pipelinecrm.com/documents/7710"
}
}Response
Successful Response
Example response
{
"id": 7710,
"created_at": "2026-09-01 14:22:07",
"size_in_k": 102,
"owner": {
"id": 13,
"full_name": "Sam Okafor"
},
"person": {
"id": 8802,
"full_name": "Jane Rivera"
},
"deal": {
"id": 4521,
"name": "Acme Corporation - Q4 renewal"
},
"company": {
"id": 3310,
"name": "Acme Corporation"
},
"calendar_entry": {
"id": 5602,
"name": "Kickoff call with Acme"
},
"etag": "edd88e4bfa45c14de553c40d17c8f504",
"upload_status": 2,
"upload_status_error_message": "The server returned 404 Not Found",
"upload_state": "pending",
"document_tag_ids": [
123,
124
],
"document_tags": [
{
"id": 5,
"name": "Contract"
}
],
"public_link": "https://pipelinedeals.s3.amazonaws.com/document.txt",
"updated_at": "2026-09-01 14:22:07",
"title": "Acme-renewal-quote-v2.pdf",
"owner_id": 123,
"person_id": 123,
"deal_id": 123,
"company_id": 123,
"calendar_entry_id": 123,
"primary_association_id": 123,
"primary_association_type": "CalendarTask",
"url": "https://app.pipelinecrm.com/documents/7710"
}Changes
No recorded changes to this operation across all 1 revision of this API.