Download OpenAPI specification:
| unit required | string <uuid> Id единицы недвижимости (stock-service) |
| crm_deal_id | string <= 255 characters Id сделки BX24 |
| expiration_date | string <date-time> Дата окончания бронирования |
| comment | string <= 255 characters Комментарии к броне |
| responsible | string <uuid> Id ответственного менеджера |
{- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a"
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись успешно создана"
}required | object (FilterBookingsDto) |
required | object (PaginationDto) |
{- "filter": {
- "filters": [
- {
- "property": "id",
- "value": [
- "123e4567-e89b-12d3-a456-426614174000"
], - "operator": "IN"
}
], - "include_expired": false
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "unit_code": "string",
- "number": 0,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a",
- "region": "ac2f330e-0351-4cac-b9d3-953e54b3d1f8"
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}| id required | string <uuid> Первичный ключ, идентификатор записи |
| active | boolean Активность |
| crm_deal_id | string <= 255 characters Id сделки BX24 |
| expiration_date | string <date-time> Дата окончания бронирования |
| comment | string <= 255 characters Комментарии к броне |
| responsible | string <uuid> Id ответственного менеджера |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a"
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись обновлена"
}| query required | string Поиск по номеру сделки, номеру бронирования или строительному коду |
| include_expired | boolean Default: false Включать истекшие (удаленные) брони |
required | object (PaginationDto) |
{- "query": "string",
- "include_expired": false,
- "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "unit_code": "string",
- "number": 0,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a",
- "region": "ac2f330e-0351-4cac-b9d3-953e54b3d1f8"
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}| name required | string <= 255 characters Название группы броней |
| bookings required | Array of strings <uuid> [ items <uuid > ] Массив идентификаторов броней группы |
{- "name": "string",
- "bookings": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись успешно создана"
}required | object (FilterBookingGroupsDto) |
required | object (PaginationDto) |
{- "filter": {
- "filters": [
- {
- "property": "id",
- "value": [
- "123e4567-e89b-12d3-a456-426614174000"
], - "operator": "IN"
}
]
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "name": "string",
- "bookings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "deleted_at": "2019-08-24T14:15:22Z",
- "active": true,
- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "unit_code": "string",
- "number": 0,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "responsible": "9511879b-6438-4cb0-a6f1-dcd32ddcb43a",
- "region": "ac2f330e-0351-4cac-b9d3-953e54b3d1f8"
}
]
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}| id required | string <uuid> Первичный ключ, идентификатор записи |
| active | boolean Активность |
| name | string <= 255 characters Название группы броней |
| bookings | Array of strings <uuid> [ items <uuid > ] Массив идентификаторов броней группы |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "name": "string",
- "bookings": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись обновлена"
}required | object (FilterBookingHistoryDto) |
required | object (PaginationDto) |
{- "filter": {
- "bookings": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "date_from": "2019-08-24T14:15:22Z",
- "date_to": "2019-08-24T14:15:22Z",
- "user": "76f62a58-5404-486d-9afc-07bded328704",
- "properties": [
- "string"
], - "include_expired": true,
- "include_system": true
}, - "pagination": {
- "page": 1,
- "limit": 10,
- "order_by": "id",
- "direction": "asc"
}
}{- "items": [
- {
- "date": "2019-08-24T14:15:22Z",
- "entity_type": "Booking",
- "entity_id": "8161163a-f227-466f-bc01-090a01e80165",
- "property": "string",
- "old_value": null,
- "new_value": null,
- "user": "76f62a58-5404-486d-9afc-07bded328704"
}
], - "pagination": {
- "page": 1,
- "limit": 10,
- "page_count": 10,
- "total_count": 100
}
}