К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/api-op-createbooking.mdиндекс документации — /llms.txt

createBooking

Обновлено

POST /api/v1/booking/bookings

createBooking

Авторизация и права

Scopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.

ПолеЗначение
security.0.hubApiKey[]
security.1.hubBearer[]
securitySchemes.hubApiKey.in"header"
securitySchemes.hubApiKey.name"X-Api-Key"
securitySchemes.hubApiKey.type"apiKey"
securitySchemes.hubBearer.scheme"bearer"
securitySchemes.hubBearer.type"http"
x-required-scopes["booking:write"]

Параметры запроса

ПолеЗначение
0.description"Canonical 24-hour response receipt; resource/schedule handlers also require a key of 1..128 characters."
0.in"header"
0.name"Idempotency-Key"
0.requiredtrue
0.schema0.schema

Тело запроса

ПолеЗначение
content.application/json.schemaBookingCreateRequest
requiredtrue

Ответы

ПолеЗначение
201.content.application/json.schemaBooking
201.description"Pending booking"
201.headers.X-Bot-Username.schema201.headers.X-Bot-Username.schema
201.headers.X-Client-Slug.schema201.headers.X-Client-Slug.schema
201.headers.X-RateLimit-Limit.schema201.headers.X-RateLimit-Limit.schema
201.headers.X-RateLimit-Remaining.schema201.headers.X-RateLimit-Remaining.schema
201.headers.X-RateLimit-Reset.schema201.headers.X-RateLimit-Reset.schema

Ошибки

ПолеЗначение
400.content.application/problem+json.schemaProblemDetails
400.description"Actual body/param/query pipe rejects the request, or global Idempotency-Key is absent"
401.content.application/problem+json.schemaProblemDetails
401.description"Missing, invalid, expired or revoked authentication"
403.content.application/problem+json.schemaProblemDetails
403.description"Required ALL scopes, plan or resource policy refused the caller"
404.content.application/problem+json.schemaProblemDetails
404.description"Canonical facade could not resolve a resource, schedule, catalog, booking or user in this tenant"
409.content.application/problem+json.schemaProblemDetails
409.description"Control-plane conflict, stale resource/schedule version, invalid schedule cursor or global request already processing"
413.content.application/problem+json.schemaProblemDetails
413.description"Per-tool payload size or item count exceeded"
422.content.application/problem+json.schemaProblemDetails
422.description"Generic global idempotency receipt was reused with a different request body"
429.content.application/problem+json.schemaProblemDetails
429.description"Per-tool rate limit exceeded or unavailable"
429.headers.Retry-After.description"Resource guard retry delay when supplied by the limiter"
429.headers.Retry-After.schema429.headers.Retry-After.schema
500.content.application/problem+json.schemaProblemDetails
500.description"Unexpected failure reaches the canonical Problem Details filter"

Дополнительные условия

ПолеЗначение
operationId"createBooking"
tags["booking"]
x-idempotency"http-cache"
x-paginationnull