List Attachments

View the full schema here.

Sometimes you need to list available attachments or aggregate attachments by some combination of properties.

As an example we will assume that we are looking for attachments with the filename employee-thumbnail.png.

curl \
  --get \
  --header "Authorization: Bearer ${ARDOQ_API_TOKEN}" \
  --header "X-org: ${ARDOQ_ORG_LABEL}" \
  --data-urlencode "filename=employee-thumbnail.png" \
  --fail-with-body \
  "${ARDOQ_API_HOST-"https://app.ardoq.com"}/api/v2/attachments"
query={"filename":"employee-thumbnail.png",}
resp = ardoq_request("/api/v2/attachments",query=query)
print(resp)
(async () => {
    query=`filename=employee-thumbnail.png`
    const resp = await ardoq_request(`/api/v2/attachments?${query}`)
    console.log(resp)
})()