v3
latestOpenAPI 3.0.32026-07-21354289.5 KBsaveFile
DEPRECATED - Will be removed on 2025-06-30. Use POST /v2/files instead.
Migration Guide
Replace calls to this endpoint with saveFileV2:
| v1 Feature | v2 Feature | Notes |
|---|---|---|
| activity_id param | activity_id param | No change |
| async param | async param | No change |
| - | fill_activity param | New in v2 |
| - | strict param | New in v2 |
| - | delete_temp_file param | New in v2, defaults to true |
The v2 endpoint supports additional parameters for better control over file saving behavior.
Create / Update a permanent File entity.
Makes file object permanent and saves metadata to file entity.
Query parameters
Activity to include in event feed
Don't wait for updated entity to become available in Search API. Useful for large migrations
When true, only adds a new file version and updates the entity's s3ref to point to the new version, without overwriting the entity's existing top-level metadata. The entity's filename, type, and other fields are preserved as-is. The new version entry in the versions array will contain the file-level metadata (filename, mime_type, etc). Only applies when updating an existing entity (_id or file_entity_id is set).
Request body
Example request
{
"relations": [
{
"entity_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
"_schema": "contact"
}
],
"_tags": [
"tag1",
"tag2"
],
"_purpose": [
"8d396871-95a0-4c9d-bb4d-9eda9c35776c",
"da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"
],
"_manifest": [
"123e4567-e89b-12d3-a456-426614174000"
],
"filename": "document.pdf",
"mime_type": "application/pdf",
"size_bytes": 1234,
"readable_size": "1.2 MB",
"etag": "9bb58f26192e4ba00f01e2e7b136bbd8",
"public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
"custom_download_url": "https://some-api-url.com/download?file_id=123",
"custom_download_url_auth": "token",
"s3ref": {
"bucket": "epilot-prod-user-content",
"key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
}
}Response
Created File Entity
Example response
{
"_title": "document.pdf",
"_org": "123",
"_tags": [
"tag1",
"tag2"
],
"_purpose": [
"8d396871-95a0-4c9d-bb4d-9eda9c35776c",
"da7cdf9a-01be-40c9-a29c-9a8f9f0de6f8"
],
"_manifest": [
"123e4567-e89b-12d3-a456-426614174000"
],
"filename": "document.pdf",
"mime_type": "application/pdf",
"size_bytes": 1234,
"readable_size": "1.2 MB",
"etag": "9bb58f26192e4ba00f01e2e7b136bbd8",
"public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
"custom_download_url": "https://some-api-url.com/download?file_id=123",
"custom_download_url_auth": "token",
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
"s3ref": {
"bucket": "epilot-prod-user-content",
"key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
},
"versions": [
{
"s3ref": {
"bucket": "epilot-prod-user-content",
"key": "123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf"
},
"filename": "document.pdf",
"size_bytes": 1234,
"readable_size": "1.2 MB",
"mime_type": "image/jpeg",
"etag": "9bb58f26192e4ba00f01e2e7b136bbd8"
}
],
"_acl": {
"view": [
"org:456"
],
"edit": [
"org:456"
],
"delete": [
"org:456"
]
},
"_owners": [
{
"org_id": "123",
"user_id": "123"
}
]
}