---
title: "Edit reason"
method: PATCH
path: "/crm/v1/reasons/{reasonId}"
tags: ["pipeline"]
---

# Edit reason

`PATCH /crm/v1/reasons/{reasonId}`

## Request

- Base URL: `https://{domain}.uspacy.ua`
- URL: `https://{domain}.uspacy.ua/crm/v1/reasons/{reasonId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/uspacy/apis/crm-service-2/docs/crm/v1/reasons/:reasonId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates a reason's title or sort order.

## Request body

- CreateReason
  - `title` string
  - `sort` integer

## Response `200`

OK

- Reason
  - `id` integer
  - `title` string
  - `sort` integer

## Other responses

- `401`: Access token is missing or invalid
- `422`: Validation error response

---

[API](https://skmtc.dev/uspacy/apis/crm-service-2.md) - [All operations](https://skmtc.dev/uspacy/apis/crm-service-2/llms.txt) - [OpenAPI document](https://skmtc.dev/uspacy/apis/crm-service-2/revisions/f80578d43845?raw)
