Files
Create a file
Creates a new file record in the system
post/v1/projects/{project_id}/files
Request
- Base URL: https://api.naturali.ai
- URL: https://api.naturali.ai/v1/projects/{project_id}/files
- 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)
Request body
Example request
{
"prefix": "/images",
"filename": "logo.png",
"content_type": "application/pdf",
"size": 1024,
"metadata": {
"author": "John",
"revision": 2
}
}Response
File created 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.