---
title: "Replace a public booking link with a new token (MED-1319)"
method: POST
path: "/api/coach/groups/{groupId}/booking-links/{linkId}/regenerate"
tags: ["Coach Portal"]
---

# Replace a public booking link with a new token (MED-1319)

`POST /api/coach/groups/{groupId}/booking-links/{linkId}/regenerate`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/coach/groups/{groupId}/booking-links/{linkId}/regenerate`
- Auth: HTTP bearer

The old token stops working at once.

## Path parameters

- `groupId` string, uuid, required
- `linkId` string, uuid, required

## Response `200`

The new link

## Other responses

- `403`: The caller is not the coach of this group
- `404`: The link is not a live link of this group

---

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