Documents
Return the documents attached to a slot, ordered by upload date (most recent first).
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The slug identifier of the site
The unique identifier of the slot
List of documents attached to the slot
Unique identifier for the document
Unique identifier of the slot the document is attached to
Display name of the document
URL of the uploaded file
File size in bytes
Upload timestamp in ISO 8601 format
Site or slot not found.
Attach a document (PDF, JPEG or PNG, up to 10 MB) to a slot. Up to 10 non-deleted documents can be attached to the same slot. Uploads are rejected on cancelled slots. The created document is returned.
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The slug identifier of the site
The unique identifier of the slot
The document file (PDF, JPEG or PNG, max 10 MB)
Optional display name. Defaults to the uploaded file name.
Document uploaded successfully
Bad request. State errors (slot_cancelled,
slot_document_limit_reached) are returned with their named code
under non_field_errors. File validation errors (file_too_large,
invalid_extension, invalid_file_type) keep their named codes.
Structural input errors (missing file, name over 255 chars)
return the umbrella shape: non_field_errors with
code: ["invalid_input"] and one detail entry per offending
field, formatted as "<dotted-loc>: <message>".
Site or slot not found.
Delete a document attached to a slot. Authenticated callers act with site-manager privileges and can delete any document, regardless of which user uploaded it.
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The slug identifier of the site
The unique identifier of the slot
The unique identifier of the document
Document deleted successfully
Site, slot or document not found.
No content
Last updated
Was this helpful?