Zum Inhalt springen

Atende a chamada de vídeo

POST/api/chat/calls/{id}/accept

Auth
Token erforderlich
API-Schlüssel:
Kein API-Schlüssel möglich
X-CommunityId
X-CommunityId Sende die X-CommunityId der Community, in der die Operation stattfindet.
Die Beschreibungen der Endpoints stammen aus der API-Spezifikation und sind vorerst auf Portugiesisch. Die Oberfläche drumherum ist übersetzt.

Só quem recebe, enquanto toca (depois, 409 `callNotRinging`). Devolve o `joinCode` para entrar na sala; os dois recebem `call.updated`.

Parameter

NameOrtTypBeschreibung
idPflichtpathstring (uuid)

Header

NameTypBeschreibung
X-CommunityIdoptionalstring (uuid)ID da comunidade em que a operação acontece. Obrigatório na maioria dos endpoints com escopo de comunidade.

Request-Body application/json

Die Spezifikation deklariert die Felder dieses Bodys nicht (zum Beispiel ein Multipart-Upload). Siehe die Anleitung zum Thema.

Antworten

StatusBeschreibung
200Atendida.
403`notCallee` ou `cannotMessage` (bloqueio).
404Recurso não encontrado.
409`callNotRinging`.

curl-Beispiel

curl -X POST "https://api.memberfy.net/api/chat/calls/<id>/accept" \
  -H "Authorization: Bearer $TOKEN" \
  -H "X-CommunityId: $COMMUNITY_ID" \
  -H "Content-Type: application/json" \
  -d '{}'