Skip to main content
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

id
string
required

Headers

api-token
string
required

Body

files
File[]
required
Non-empty array. Same shape as in Create project. text files are uploaded to S3 and stored as document.

Response

success
boolean
message
string
data.addedFiles
File[]
The files that were appended (with resolved S3 URLs for text types).

Errors

StatusReason
400Project is not in draft status
404Project 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" }
    ]
  }'