Skip to content

Complete Testimony ​

Uploads the final testimony document. Only testimonies in the accepted state can be completed, and only by the assigned expert.

HTTP Request ​

POST /api/v1/testimonies/{testimony}/complete

Send the request as multipart/form-data.

ParameterDescription
file fileThe final testimony document. PDF only, max 20 MB.

Example Request ​

shell
curl --request POST \
--url https://api.brunago.sk/api/v1/testimonies/01J5X3Y8ZK2Q4R6T8V0W2X4Y6Z/complete \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your-token}' \
--form 'file=@/path/to/file.pdf'

Response ​

204 No Content

Indicates the testimony was successfully completed. The client is notified by email and can download the document.

Authentication ​

Requires authentication via Bearer token, a verified email and the expert role. Only the expert assigned to the testimony may complete it (403 Forbidden otherwise).

401 Unauthorized

json
{
  "message": "Unauthenticated."
}

Error Handling ​

422 Unprocessable Content — file is missing, not a PDF, or larger than 20 MB.

409 Conflict — the testimony is not in the accepted state:

json
{
  "message": "Prechod zo stavu [pending] do stavu [completed] nie je možný."
}

409 Conflict — another request changed the testimony at the same moment; re-fetch it and retry:

json
{
  "message": "Záznam bol medzitým zmenený. Skúste to znova."
}