PUT
/
silo
/
v1
/
entries
/
{entry_id}
/
attachments
/
{id}
curl --request PUT \
  --url https://api.invopop.com/silo/v1/entries/{entry_id}/attachments/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": "aSDinaTvuI8gbWludGxpZnk=",
  "desc": "Invoice for January 2021.",
  "embeddable": true,
  "meta": {},
  "mime": "application/pdf",
  "name": "invoice.pdf",
  "sha256": "27a0b656df99dc32124b4c49f2f3c35025f0a7453f289cbaa0701435cfcf4e28"
}'
{
  "created_at": "2018-01-01T00:00:00.000Z",
  "desc": "Invoice for January 2021.",
  "entry_id": "347c5b04-cde2-11ed-afa1-0242ac120002",
  "hash": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6",
  "id": "<string>",
  "meta": {},
  "mime": "application/pdf",
  "name": "invoice.pdf",
  "size": 12345,
  "stored": true,
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

Use the Bearer scheme with a valid JWT token to authenticate requests. Example: Authorization: Bearer <token>

Path Parameters

id
string
required

UUID of attachment to create

Example:

"347c5b04-cde2-11ed-afa1-0242ac120002"

entry_id
string
required

UUID of the silo entry.

Body

application/json

Response

200 - application/json

OK

The response is of type object.