Categories
Создать категорию (admin/system)
post/api/v1/categories
Request
- Base URL: http://158.160.83.199:8000
- URL: http://158.160.83.199:8000/api/v1/categories
- Auth: HTTP bearer
Request body
Example request
{
"name": "Рестораны",
"subname": "Еда и напитки",
"description": "Кэшбэк за оплату в ресторанах и кафе",
"short_description": "Рестораны и кафе",
"icon_ref": "restaurant",
"budget_limit_rub": 50000
}Response
Created
Example response
{
"category": {
"name": "Рестораны",
"subname": "Еда и напитки",
"description": "Кэшбэк за оплату в ресторанах и кафе",
"short_description": "Рестораны и кафе",
"icon_ref": "restaurant",
"timestamps": {
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-03-01T14:00:00Z"
},
"budget": {
"limit_rub": 50000,
"spent_rub": 12300,
"reserved_rub": 5000
},
"rules": [
{
"name": "Молодые пользователи",
"description": "Пользователи от 18 до 30 лет",
"enabled": true
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.