---
title: "Refresh Actions"
method: POST
path: "/v1/api-performance/actions/refresh"
tags: ["Eval Actions"]
---

# Refresh Actions

`POST /v1/api-performance/actions/refresh`

## Request

- Base URL: `https://api.lightsage.com`
- URL: `https://api.lightsage.com/v1/api-performance/actions/refresh`
- Auth: API key in header `X-Lightsage-Api-Key`

Regenerates actions from current eval results and reports `generated`, `updated`, `unchanged`, and `total_candidates`.

## Request body

- PublicRefreshActionsRequest
  - `source_id` string: Source ID from GET /v1/api-performance/sources.
  - `force` boolean

## Response `200`

Successful Response

- PublicRefreshActionsResponse
  - `generated` integer, required
  - `updated` integer, required
  - `unchanged` integer, required
  - `total_candidates` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usesapient/apis/sapient-public-api.md) - [All operations](https://skmtc.dev/usesapient/apis/sapient-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usesapient/apis/sapient-public-api/revisions/14890dfe867e?raw)
