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 and the expert are notified by email (the expert's email carries its invoice) and both 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 — this includes every testimony that has no accepted offer yet). An unknown testimony ID answers 404 Not Found.

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 (it has already been completed). The message names the states by their Slovak labels:

json
{
  "message": "Prechod zo stavu „Hotový“ do stavu „Hotový“ 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."
}