API ReferenceChat
POST /chat/conversations/{id}/hide
Esconder conversa (modo Snapchat)
POST
/chat/conversations/{id}/hideAuth: accessTokenUPDATE conversation_members.hidden_at = now(). Mensagens novas são marcadas is_temporary; cron deleta após X tempo.
Request
Esta requisição não tem corpo.
Response
200
Sem corpo na resposta.
Erros
Sem respostas de erro documentadas.
Exemplos
curl -X POST 'http://localhost:3003/chat/conversations/{id}/hide' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
-d '{}'await fetch('http://localhost:3003/chat/conversations/{id}/hide', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: 'Bearer ' + accessToken,
},
body: JSON.stringify({}),
})