Prior Authority
Upload a supporting document
Changed onAccepts a multipart/form-data file upload from the frontend and returns the uploaded file's metadata. The document is uploaded without a category; use the PATCH endpoint to assign one afterwards.
post/prior-authorities/{priorAuthorityId}/documents
Request
- Base URLhttp://localhost:8080
- URLhttp://localhost:8080/prior-authorities/{priorAuthorityId}/documents
- Authnone declared
Path parameters
priorAuthorityIdstring uuid required
ID of the prior authority.
Request body multipart/form-data
Response
File accepted.
Example response
{
"documentId": "c3b07e24-d92b-410a-9d95-88f117a12b43",
"documentType": "GATEWAY_EVIDENCE",
"fileName": "abc123.pdf",
"fileType": "pdf",
"mediaType": "application/pdf",
"size": 10240,
"uploadedAt": "2026-05-22T10:00:00Z",
"sourceService": "CIVIL_MANAGE"
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info