Для AI-агентов: markdown этой страницы — /docs/api-op-createevent.md · индекс документации — /llms.txt
createEvent
Обновлено
POST /api/v1/tools/events
createEvent
#Авторизация и права
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 | ["events:write"] |
#Параметры запроса
| Поле | Значение |
|---|
| 0.description | "Required for POST with a body. Same-key replay; changed body returns 422." |
| 0.in | "header" |
| 0.name | "Idempotency-Key" |
| 0.required | true |
| 0.schema | 0.schema |
#Тело запроса
#Ответы
| Поле | Значение |
|---|
| 201.content.application/json.schema | EventView |
| 201.description | "createEvent" |
#Ошибки
| Поле | Значение |
|---|
| 400.content.application/problem+json.schema | ProblemDetails |
| 400.description | "VALIDATION_ERROR or IDEMPOTENCY_KEY_REQUIRED" |
| 401.content.application/problem+json.schema | ProblemDetails |
| 401.description | "INVALID_API_KEY: X-Api-Key OR Bearer tgf_*; surface JWT is not accepted." |
| 403.content.application/problem+json.schema | ProblemDetails |
| 403.description | "INSUFFICIENT_SCOPE or PUBLISHABLE_KEY_NOT_ALLOWED" |
| 409.content.application/problem+json.schema | ProblemDetails |
| 409.description | "CONFLICT: idempotency request still processing" |
| 413.content.application/problem+json.schema | ProblemDetails |
| 413.description | "PAYLOAD_TOO_LARGE or ITEM_COUNT_EXCEEDED" |
| 422.content.application/problem+json.schema | ProblemDetails |
| 422.description | "IDEMPOTENCY_KEY_MISMATCH" |
| 429.content.application/problem+json.schema | ProblemDetails |
| 429.description | "RATE_LIMIT_EXCEEDED or RATE_LIMIT_UNAVAILABLE" |
| 429.headers.Retry-After.description | "Seconds supplied by the resource guard when available." |
| 429.headers.Retry-After.schema | 429.headers.Retry-After.schema |
| 500.content.application/problem+json.schema | ProblemDetails |
| 500.description | "INTERNAL_ERROR" |
#Дополнительные условия
| Поле | Значение |
|---|
| operationId | "createEvent" |
| summary | "createEvent" |
| tags | ["events"] |
| x-idempotency | "generic-cache" |
| x-pagination | null |