---
title: "Refresh the robot secret"
method: PATCH
path: "/robots/{robot_id}"
tags: ["robot"]
---

# Refresh the robot secret

`PATCH /robots/{robot_id}`

Refresh the robot secret

## Path parameters

- `robot_id` integer, required

## Headers

- `X-Request-Id` string

## Request body

- RobotSec — The response for refresh/update robot account secret.
  - `secret` string — The secret of the robot

## Response `200`

Return refreshed robot sec.

- RobotSec — The response for refresh/update robot account secret.
  - `secret` string — The secret of the robot

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/cerit/apis/harbor-api.md) · [All operations](https://skmtc.dev/cerit/apis/harbor-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cerit/harbor-api/revisions/62d78801f8df/schema)
