put
https://app.eraser.io/api/files/
Updates a file's metadata and/or document content. Only provided fields are updated.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Example request
curl --location --request PUT 'https://app.eraser.io/api/files/abc123' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $YOUR-TOKEN-HERE' \
--data '{
"title": "Updated Title",
"document": "# Updated Content"
}'
Example response
{
"id": "abc123",
"fileUrl": "https://app.eraser.io/workspace/abc123",
"title": "Updated Title",
"author": "user-id-1",
"folderId": null,
"createdAt": "2025-07-01T12:00:00.000Z",
"updatedAt": "2025-07-15T10:00:00.000Z",
"linkAccess": "no-link-access",
"content": {
"elements": [],
"document": "# Updated Content"
}
} 400Invalid file ID
401Missing or invalid bearer token
403Unauthorized
404File not found (or file is private, archived, a template, or belongs to a different team)
500Internal server error