Upload an evidence file
/workspaces/{workspace}/evidence/items/{evidenceItem}/filesAttaches a file for your auditor. Adding a file also counts as collecting the evidence, so the next review date moves out.
Authentication
Send an API token as a bearer token. This endpoint needs a read and write token, made by an editor, admin or owner. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
evidenceItemintegerRequiredEvidence item id.
Request body
multipart/form-datafileenumRequiredmax 20480 KB (20 MB)Allowed extensions. The first bytes must match the extension (text types must be text), or it is refused. One of
pdf,png,jpg,jpeg,csv,txt,json.
Response
201 CreatedThe stored file.
idintegerFile (document) id.filenamestringSanitised original name.mimeenumSet from the extension. One ofapplication/pdf,image/png,image/jpeg,text/csv,text/plain,application/json.sizeintegerBytes.uploaded_bystring|nullUploader.uploaded_atstringISO 8601.download_pathstringRelative download path.
Rate limits
This endpoint counts toward your general limit of 120 requests a minute and its own limit of 20 a minute. Its own limit answers 429 without Retry-After; wait and try again.
Errors
Every error is JSON with a message. See Errors.