Перейти к основному содержанию
PUT
/
v1
/
crm
/
services
/
{service_id}
/
tarifs
/
{id}
cURL
curl --request PUT \
  --url https://api.example.com/v1/crm/services/{service_id}/tarifs/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "service": 123,
  "name": "<string>",
  "price": "<string>",
  "one_time_payment": true,
  "published": true,
  "tenant": 123,
  "duriation": 123
}
'
{
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "service": 123,
  "name": "<string>",
  "price": "<string>",
  "one_time_payment": true,
  "published": true,
  "tenant": 123,
  "duriation": 123
}

Параметры пути

id
integer
обязательно
service_id
integer
обязательно

Тело

service
integer
обязательно
name
string | null
Maximum string length: 255
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
one_time_payment
boolean
published
boolean
tenant
integer
duriation
integer | null

Ответ

200 - application/json
id
integer
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
service
integer
обязательно
name
string | null
Maximum string length: 255
price
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
one_time_payment
boolean
published
boolean
tenant
integer
duriation
integer | null