BizKitHub
DokumentacjaEksplorator APIChat/api/v1/chat/room/{id}/problem
postChatPubliczne API v1

/api/v1/chat/room/{id}/problem

ChatSPC sets this to true when the model calls recordUnansweredQuery, and back to false on a follow-up turn that does provide an answer. Idempotent.

chatpostApiV1ChatRoomByIdProblem

Parametry

1 w ścieżce · 1 w query · Treść JSON

Parametry ścieżki

· 1
idstringWymagane

Chat room public id (cas__chat_room.external_id), 24 chars.

Długość: 24
PrzykładZUiVZuKwAaXNoT4nGUbnKR75

Parametry query

· 1
apiKeystringWymagane

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE

Treść żądania

application/json
statebooleanWymagane

true → stamp problem_marked_date = NOW() (flag as a problem case). false → clear it (model resolved the question after all).

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
object | object
Jedna z 2 opcji:
Wariant 1
state"ok"Wymagane
success"true"Wymagane
Wariant 2
state"error"Wymagane
messagestringWymagane
code"200"Wymagane

Przykład odpowiedzi

application/json
{
  "state": "ok",
  "success": true
}

Przykład żądania

POST /api/v1/chat/room/{id}/problem

post
curl -X POST "https://api.bizkithub.com/api/v1/chat/room/ZUiVZuKwAaXNoT4nGUbnKR75/problem?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "state": false
}'

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API