---
title: "setWorkflowClosingReasons"
method: PATCH
path: "/v1/workflows/definitions/{definitionId}/closing-reasons"
tags: ["Workflows"]
---

# setWorkflowClosingReasons

`PATCH /v1/workflows/definitions/{definitionId}/closing-reasons`

Sets which closing reasons are defined for this workflow, based on the entire closing reasons catalog.

## Path parameters

- `definitionId` string, required

## Request body

- ClosingReasonsIds
  - `reasons` ClosingReasonId[], required
    - `id` string, required

## Response `201`

closing reasons are set for this workflow

---

[API](https://skmtc.net/epilot/apis/workflows-definitions.md) · [All operations](https://skmtc.net/epilot/apis/workflows-definitions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/epilot/workflows-definitions/versions/74e4de17e9b5/schema)
