---
title: "Rotate Share Link"
method: POST
path: "/trips/{trip_id}/share-link/rotate"
tags: ["collaboration"]
---

# Rotate Share Link

`POST /trips/{trip_id}/share-link/rotate`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/trips/{trip_id}/share-link/rotate`
- Auth: none declared

Owner-only. Rotate the share-link token, invalidating the old URL.

## Path parameters

- `trip_id` string, uuid, required

## Response `200`

Successful Response

- ShareLinkResponse
  - `token` string, required
  - `url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stardrift/apis/stardrift-api.md) - [All operations](https://skmtc.dev/stardrift/apis/stardrift-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stardrift/apis/stardrift-api/revisions/be9ed1e6c38a?raw)
