---
title: "PATCH /v1/crm/discounts/{id}/"
method: PATCH
path: "/v1/crm/discounts/{id}/"
tags: ["v1"]
---

# PATCH /v1/crm/discounts/{id}/

`PATCH /v1/crm/discounts/{id}/`

## Path parameters

- `id` integer, required

## Request body

- PatchedDiscountUpdate
  - `id` integer
  - `name` string
  - `discount` integer
  - `discount_type` 0 | 1 — * `0` - Процент * `1` - Сумма
  - `type` 0 | 1 | 2 — * `0` - Скидка * `1` - Промокод * `2` - Сумма
  - `extra` unknown
  - `active` boolean
  - `start_at` string, date-time, nullable
  - `end_at` string, date-time, nullable
  - `usage_limit` integer

## Response `200`

- DiscountUpdate
  - `id` integer, required
  - `name` string, required
  - `discount` integer
  - `discount_type` 0 | 1 — * `0` - Процент * `1` - Сумма
  - `type` 0 | 1 | 2 — * `0` - Скидка * `1` - Промокод * `2` - Сумма
  - `extra` unknown
  - `active` boolean
  - `start_at` string, date-time, nullable
  - `end_at` string, date-time, nullable
  - `usage_limit` integer

---

[API](https://skmtc.net/yume-cloud/apis/yume-api.md) · [All operations](https://skmtc.net/yume-cloud/apis/yume-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/yume-cloud/yume-api/versions/90700f5abfcc/schema)
