Перейти к основному содержанию
PATCH
/
v1
/
finances
/
accounts
/
{id}
cURL
curl --request PATCH \
  --url https://api.example.com/v1/finances/accounts/{id}/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "default": true,
  "initial": "<string>",
  "types": [
    0
  ],
  "order": -1,
  "tenant": 123
}
'
{
  "id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "balance": "<string>",
  "deleted": true,
  "deleted_at": "2023-11-07T05:31:56Z",
  "default": true,
  "initial": "<string>",
  "types": [
    0
  ],
  "order": -1,
  "tenant": 123
}

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

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

Тело

name
string
Maximum string length: 255
default
boolean
initial
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
types
integer<int64>[]
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
order
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
tenant
integer

Ответ

200 - application/json
id
integer
обязательно
created_at
string<date-time>
обязательно
updated_at
string<date-time>
обязательно
name
string
обязательно
Maximum string length: 255
balance
string<decimal>
обязательно
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
deleted
boolean
обязательно
deleted_at
string<date-time> | null
обязательно
default
boolean
initial
string<decimal>
Pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
types
integer<int64>[]
Требуемый диапазон: -9223372036854776000 <= x <= 9223372036854776000
order
integer | null
Требуемый диапазон: -2147483648 <= x <= 2147483647
tenant
integer