Create a file
POST/api/v1/files
Creates a new file record in the system
Request
Responses
- 201
- 400
- 401
- 403
- 409
- 413
- 429
- 500
File created successfully
Invalid request — a query parameter or body field the operation does not declare, or a value that fails validation
Authentication required
Insufficient permissions
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.
REQUEST_REJECTED — the request body is over the size the body parser accepts
QUOTA_EXCEEDED — a requests quota on the calling API key or its project is spent for the window; Retry-After says when it reopens
Response Headers
Retry-After
Seconds until the quota window admits a request again
Internal server error