---
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`

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/fastapi.md) · [All operations](https://skmtc.dev/stardrift/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stardrift/fastapi/revisions/00746572572a/schema)
