Перейти к основному содержанию
POST
/
v1
/
finances
/
schedules
cURL
curl --request POST \
  --url https://api.example.com/v1/finances/schedules/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "weekend": true,
  "custom": true
}
'
{
  "id": 123,
  "request": 123,
  "amount": "<string>",
  "amount_paid": "<string>",
  "date": "2023-11-07T05:31:56Z",
  "weekend": true,
  "custom": true
}

Тело

weekend
boolean
custom
boolean

Ответ

201 - application/json
id
integer
обязательно
request
integer | null
обязательно
amount
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
amount_paid
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
date
string<date-time>
обязательно
weekend
boolean
custom
boolean