Attach Content
POST https://{{host}}/athento/site/automation/Blob.Attach/
This web service allows you to attach binary content (a file) to a previously created document.
The binary content must be sent in base64 format through this request.
Mandatory data
Besides the binary content, you need to indicate to which document you want to attach the file.
Params
Document
Use the UUID of the document:
params
: {
document:
uuid"}
You can find this information from your existing document:
https://{{host}}/file/view/{{uuid}}
Binary content
filename=
name-of-my-file.pdf
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"uid":"3cd16001-34ee-45fb-b84c-51f995dbf07c","repository":"default","isCheckedOut":true,"parentRef":"","path":"","isProxy":false,"changeToken":"","title":"Document create with API","lastModified":"2021-07-01T11:55:13.965290Z","facets":[],"entity-type":"document","state":"project","isVersion":false,"type":"File"}