Skip to content
ShaireDevelopers

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#

Request
curl https://api.shairelabs.com/api/trash \
  -H "Authorization: Bearer $SHAIRE_TOKEN"

Response · 200 · TrashItem[]

typestring*
ticketpagemilestone
idstring · uuid*
titlestring*
subtitlestring | null*
deletedAtstring*
expiresAtstring*
childCountinteger*
min 0

Also answers 401 and 403. SeeErrors.

post/api/trash/{type}/{id}/restore#

Path

typestring*
idstring*
Request
curl https://api.shairelabs.com/api/trash/$TRASH_TYPE/$TRASH_ID/restore \
  -X POST \
  -H "Authorization: Bearer $SHAIRE_TOKEN"

Response · 204

Also answers 401 and 403. SeeErrors.

post/api/trash/restore#

Body

typestring*
ticketpagemilestone
ids(string · uuid)[]*
Request
curl https://api.shairelabs.com/api/trash/restore \
  -X POST \
  -H "Authorization: Bearer $SHAIRE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type":"ticket","ids":[]}'

Response · 200 · BulkRestoreResult

restoredIds(string · uuid)[]*

Also answers 401 and 403. SeeErrors.