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#
ownerTypestring*ticketpagemilestoneownerIdstring · uuid*curl https://api.shairelabs.com/api/attachments?ownerType=ticket&ownerId=00000000-0000-0000-0000-000000000000 \
-H "Authorization: Bearer $SHAIRE_TOKEN"idstring · uuid*ownerTypestring*ticketpagemilestoneownerIdstring · uuid*kindstring*attachmentinlinecoverfilenamestring*contentTypestring*byteSizeinteger*createdBystring · uuid*createdAtstring*contentUrlstring*inlineImageboolean*get/api/attachments/{id}#
idstring*curl https://api.shairelabs.com/api/attachments/$ATTACHMENT_ID \
-H "Authorization: Bearer $SHAIRE_TOKEN"idstring · uuid*ownerTypestring*ticketpagemilestoneownerIdstring · uuid*kindstring*attachmentinlinecoverfilenamestring*contentTypestring*byteSizeinteger*createdBystring · uuid*createdAtstring*contentUrlstring*inlineImageboolean*delete/api/attachments/{id}#
idstring*curl https://api.shairelabs.com/api/attachments/$ATTACHMENT_ID \
-X DELETE \
-H "Authorization: Bearer $SHAIRE_TOKEN"