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 Комментарии к броне |
{- "unit": "96a6aa1e-fb68-45e6-a443-0913abfa47dd",
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string"
}{- "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"
}
]
}, - "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",
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d"
}
], - "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 Комментарии к броне |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "active": true,
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string"
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "message": "Запись обновлена"
}| 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",
- "crm_deal_id": "string",
- "expiration_date": "2019-08-24T14:15:22Z",
- "comment": "string",
- "booking_group": "23cd4ff5-91a4-4dd9-921c-fdb97d361b0d"
}
]
}
], - "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": "Запись обновлена"
}