---
title: "Rotate Secret"
method: POST
path: "/v1/sandboxes/{sandbox_id}/rotate-secret"
tags: ["sandboxes"]
---

# Rotate Secret

`POST /v1/sandboxes/{sandbox_id}/rotate-secret`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/v1/sandboxes/{sandbox_id}/rotate-secret`
- Auth: none declared

Replaces the sandbox secret and URL token and returns the Sandbox object.

## Path parameters

- `sandbox_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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