---
title: "Approve a steps script"
method: POST
path: "/v1/processes/{id}/steps/{stepId}/script/approve"
tags: ["Processes"]
---

# Approve a steps script

`POST /v1/processes/{id}/steps/{stepId}/script/approve`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/processes/{id}/steps/{stepId}/script/approve`
- Auth: HTTP bearer

A person's approval of the exact script text that passed its test, by its `hash`. Needs process_publish and the `processes:write` scope.

## Path parameters

- `id` string, uuid, required
- `stepId` string, required

## Request body

- object
  - `hash` string, required

## Response `201`

`{ approved: true, hash }`.

## Other responses

- `403`: The key has no person, the person lacks the Process Plane permission, or the key lacks the scope.
- `404`: The requested resource was not found.
- `409`: The script changed since the hash was read, or it has no passing test.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/processes/:id/steps/:stepId/script/approve/post.md)

---

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