---
title: "Stop a Retention execution"
method: PATCH
path: "/retentions/{id}/executions/{eid}"
tags: ["Retention"]
---

# Stop a Retention execution

`PATCH /retentions/{id}/executions/{eid}`

Stop a Retention execution, only support "stop" action now.

## Path parameters

- `id` integer, required
- `eid` integer, required

## Headers

- `X-Request-Id` string

## Request body

- object
  - `action` string

## Response `200`

Stop a Retention job successfully.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `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)
