Upload a file
POST/v1/projects/:project_id/files/upload
Uploads a file to the server and stores it in the configured storage directory
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 413
File uploaded successfully
Missing file or invalid project
Missing or invalid credentials.
The credential is scoped to a different project, or the caller's role in the project does not carry this action.
The project's storage_bytes quota is exceeded (QUOTA_STORAGE_EXCEEDED). Delete stored content, or raise the quota — no window reset clears a stored total, so no Retry-After is sent.
The upload is over this deployment's byte ceiling (UPLOAD_TOO_LARGE; FILE_UPLOAD_MAX_BYTES, 25 MB by default). The request is refused while the body is still streaming, so nothing was stored.