Packing List

Toggle Item

Toggle an item's packed/unpacked status.

post/api/v1/packing-lists/{externalId}/items/{equipmentId}/toggle

Request

  • Base URL: https://www.endlesstravelplans.com
  • URL: https://www.endlesstravelplans.com/api/v1/packing-lists/{externalId}/items/{equipmentId}/toggle
  • Auth: HTTP bearer

Request body

is_packedboolean

Set the state instead of flipping it. Without it the item flips.

Example request

{
  "is_packed": true
}

Response

equipment_idinteger
is_packedboolean
packed_itemsinteger
total_itemsinteger

Example response

{
  "equipment_id": 42,
  "is_packed": true,
  "packed_items": 5,
  "total_items": 20
}

Changes

No recorded changes to this operation across all 1 revision of this API.