---
title: "End a share"
method: DELETE
path: "/api/v2/trips/{externalId}/advisor-shares/{shareId}"
tags: ["Advisor shares"]
---

# End a share

`DELETE /api/v2/trips/{externalId}/advisor-shares/{shareId}`

## Request

- Base URL: `https://www.endlesstravelplans.com`
- URL: `https://www.endlesstravelplans.com/api/v2/trips/{externalId}/advisor-shares/{shareId}`
- Auth: HTTP bearer

Ends one active share of this trip and tells the advisor. A share that is not on this trip, or is already
ended, answers 404.

## Response `204`

ended

- object

## Other responses

- `401`: unauthenticated: No valid bearer token was sent.
- `404`: not_found: The record does not exist or the caller may not know it exists.
- `429`: rate_limited: A throttle or a per-account allowance refused the request; `retry_after` or `remaining` may be present.
- `500`: server_error: Unhandled failure; quote `request_id` to support.

---

[API](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api.md) · [All operations](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/llms.txt) · [OpenAPI document](https://skmtc.dev/endlesstravelplans/apis/endless-travel-plans-api/revisions/ae82ed3e4a8f?raw)
