document.format_mismatch
The file's format differs from the document's
- HTTP status
- 422
- Problem type
https://api.field-viewer.com/problems/document.format_mismatch- Catalogue
- Domain-specific
What it means
The file's format differs from the document's.
What to do
The request was readable but breaks the operation's rules. See errors[] and the detail for what to change.
Example response
Errors use RFC 9457 application/problem+json. Match on code (stable forever), not on title or detail, which are localised.
HTTP/1.1 422
Content-Type: application/problem+json
{
"type": "https://api.field-viewer.com/problems/document.format_mismatch",
"title": "The file's format differs from the document's",
"status": 422,
"detail": "The file's format differs from the document's",
"instance": "/v1/organizations/{organizationId}/projects/{projectId}/documents/{documentId}/versions",
"code": "document.format_mismatch",
"requestId": "req_01jcz3k8m4f6a9t2x7v5q0wbne"
}
Returned by
| Operation | Request | Summary |
|---|---|---|
createDocumentVersion | POST /v1/organizations/{organizationId}/projects/{projectId}/documents/{documentId}/versions | Start a drawing upload (PDF, DXF or DWG) |