Files
Update file metadata
Updates the metadata field of a file
patch/v1/projects/{project_id}/files/{file_id}/metadata
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/files/{file_id}/metadata
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://api.naturali.ai/authorize, token URL https://api.naturali.ai/token, scopes: mcp:access)
Path parameters
file_idstring required
Example:file_abc123
File ID
Request body
Example request
{
"metadata": {
"author": "John",
"revision": 2
},
"prefix": "/reports",
"filename": "renamed-file.txt"
}Response
Metadata updated successfully
Example response
{
"id": "abc123",
"prefix": "/images",
"filename": "logo.png",
"path": "/images/logo.png",
"content_type": "application/pdf",
"size": 1024,
"metadata": {
"author": "John",
"revision": 2
},
"tags": {
"team": "finance",
"env": "prod"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.