---
title: "Rotate Invitation Code"
method: POST
path: "/api/labs/{lab_id}/rotate_code"
tags: ["labs"]
---

# Rotate Invitation Code

`POST /api/labs/{lab_id}/rotate_code`

Owner-only. Replaces the invitation code immediately (the old one
stops working on the next request) and resets the 30-day clock.

## Path parameters

- `lab_id` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
