trash
3 endpoints.
Where a soft delete goes, and the reason deleting a ticket is offered at all. POST /api/trash/{type}/{id}/restore is the undo, and the reference lists it beside every delete that fills this list.
get/api/trash#
curl https://api.shairelabs.com/api/trash \
-H "Authorization: Bearer $SHAIRE_TOKEN"typestring*ticketpagemilestoneidstring · uuid*titlestring*subtitlestring | null*deletedAtstring*expiresAtstring*childCountinteger*post/api/trash/{type}/{id}/restore#
typestring*idstring*curl https://api.shairelabs.com/api/trash/$TRASH_TYPE/$TRASH_ID/restore \
-X POST \
-H "Authorization: Bearer $SHAIRE_TOKEN"post/api/trash/restore#
typestring*ticketpagemilestoneids(string · uuid)[]*curl https://api.shairelabs.com/api/trash/restore \
-X POST \
-H "Authorization: Bearer $SHAIRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"ticket","ids":[]}'restoredIds(string · uuid)[]*