document-immutable
HTTP 403 Forbidden
DELETE /v1/dpp/:id/documents/:docId refuses to delete this document because it was uploaded with is_immutable. Immutable documents stay attached to the DPP permanently, so evidence such as declarations of conformity or test reports cannot disappear afterwards. The flag is set once at upload and cannot be changed later.
What to do
Upload the corrected document as a new document; the immutable one stays in place. Only mark documents as immutable that must remain unchanged.
{ "type": "https://docs.qr3.app/errors/document-immutable", "title": "Forbidden", "status": 403, "detail": "Immutable documents cannot be deleted"}