DELETE
Remove a trip leg
Company space Cannot be undone For: Stock keeper, Manager · Permission: trip_legs.delete Conditions
  • Only the company that owns the trip can change it; a trip shared by another company can be read but not modified.
  • Only a trip whose status is active can be modified; an archived trip is refused with a validation error.
What else happens
  • Deletes the leg and all rates attached to it, whichever company owns them.
Part of Reusable trips and waypoints.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

trip
string
required

Identifier of the trip (27-character KSUID). The trip must be visible to the calling company.

leg
string
required

Identifier of the trip leg; it must belong to the trip in the URL.

Response

204

No content