curl -X PATCH "https://api.dabarai.com/v1/projects/6982139a1234abcd00009999" \
-H "api-token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"files": [
{ "name": "extra.pdf", "type": "document", "url": "https://cdn.example.com/extra.pdf" }
]
}'
{
"success": true,
"message": "<string>",
"data.addedFiles": [
null
]
}Projects
Append files to project
Append files to a project still in draft status
PATCH
/
projects
/
{id}
curl -X PATCH "https://api.dabarai.com/v1/projects/6982139a1234abcd00009999" \
-H "api-token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"files": [
{ "name": "extra.pdf", "type": "document", "url": "https://cdn.example.com/extra.pdf" }
]
}'
{
"success": true,
"message": "<string>",
"data.addedFiles": [
null
]
}Only works while the project is in
"draft" status. Files in the body are
appended to the existing files array; nothing is replaced.
Path parameters
string
required
Headers
string
required
Body
File[]
required
Non-empty array. Same shape as in Create project.
text files are uploaded to S3 and stored as document.Response
boolean
string
File[]
The files that were appended (with resolved S3 URLs for text types).
Errors
| Status | Reason |
|---|---|
400 | Project is not in draft status |
404 | Project not found for this user |
curl -X PATCH "https://api.dabarai.com/v1/projects/6982139a1234abcd00009999" \
-H "api-token: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"files": [
{ "name": "extra.pdf", "type": "document", "url": "https://cdn.example.com/extra.pdf" }
]
}'