Clear a support document of a pre-appointment back to PENDING
POST/v1/checkin/appointments/:id/documents/:documentId/clear
Reverts a manually uploaded (MANUAL) document to PENDING, clearing the file-related fields (original_file_name, extension, path, file_size, mime_type, AI validation fields) while preserving support_file_code, required, the associated charge, and source=MANUAL. Does not touch storage: the S3 object is left untouched, since it may be shared with other documents completed by the same multi-charge upload. Documents originated from HIS_INBOUND cannot be cleared (returns 403).
Request
Responses
- 204
- 401
- 403
- 404
Document cleared successfully (no content returned)
Unauthorized: missing or invalid Bearer token
Forbidden: the document originates from HIS_INBOUND and cannot be cleared
Pre-appointment not found, document not found, or document belongs to a different pre-appointment