Add a file to a project
POST/v1/projects/:id/files
Stores a file in the project, as an upload in the planner's Dateien tab does. Send a form (multipart/form-data) with the file in file; the other fields are optional. The planner shows the API key as the uploader; the customer is told your team.
The file is internal unless visibleToCustomer is true. Then the customer sees it in Mein Bereich at once, marked as new, and the project's history notes it. No mail is sent.
Every call stores a file, the same file twice as well. When you did not get an answer, look into the list before you send it again. Requires the read:documents and write:projects scopes.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 413
- 415
- 429
- 500
The new file.
validation_error: the body is no form, the file is missing or empty, or a field is not valid. message names the problem.
missing_api_key or invalid_api_key: no API key was sent, or it is wrong, expired or revoked.
insufficient_scope: the API key does not have the scope this endpoint needs. required names it.
not_found: there is no such project in your company.
file_too_large: the file has more than 20 MiB.
file_type_not_allowed: the file is no PDF, JPEG, PNG, WebP or HEIC, or a PDF in a category that takes pictures.
rate_limited: the API key has stored 1000 files within the hour. Try again after the seconds in the Retry-After header. Or 20 files are being stored in the project at the same moment.
Response Headers
db_error: the database refused or failed the request. storage_error: the file could not be stored. message has the details.