Skip to content
ShaireDevelopers

attachments

3 endpoints.

Metadata: name, size, type and what the file hangs off. The bytes themselves are served to a browser from a URL signed for one viewer and one hour.

get/api/attachments#

Query

ownerTypestring*
ticketpagemilestone
ownerIdstring · uuid*
Request
curl https://api.shairelabs.com/api/attachments?ownerType=ticket&ownerId=00000000-0000-0000-0000-000000000000 \
  -H "Authorization: Bearer $SHAIRE_TOKEN"

Response · 200 · Attachment[]

idstring · uuid*
ownerTypestring*
ticketpagemilestone
ownerIdstring · uuid*
kindstring*
attachmentinlinecover
filenamestring*
contentTypestring*
byteSizeinteger*
createdBystring · uuid*
createdAtstring*
contentUrlstring*
inlineImageboolean*

Also answers 401 and 403. SeeErrors.

get/api/attachments/{id}#

Path

idstring*
Request
curl https://api.shairelabs.com/api/attachments/$ATTACHMENT_ID \
  -H "Authorization: Bearer $SHAIRE_TOKEN"

Response · 200 · Attachment

idstring · uuid*
ownerTypestring*
ticketpagemilestone
ownerIdstring · uuid*
kindstring*
attachmentinlinecover
filenamestring*
contentTypestring*
byteSizeinteger*
createdBystring · uuid*
createdAtstring*
contentUrlstring*
inlineImageboolean*

Also answers 401 and 403. SeeErrors.

delete/api/attachments/{id}#

Path

idstring*
Request
curl https://api.shairelabs.com/api/attachments/$ATTACHMENT_ID \
  -X DELETE \
  -H "Authorization: Bearer $SHAIRE_TOKEN"

Response · 204

Also answers 401 and 403. SeeErrors.