DELETE /teams/{teamId}/timelines/{timelineId}/posts/{postId}/reactions/{emoji}
— DELETE .../posts/{postId}/reactions/{emoji}.
- Acesso: Membro com escopo
- Serviço:
https://api-workspace.axuz.net
Autenticação aceita
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
— DELETE .../posts/{postId}/reactions/{emoji}.
Motivo: DELETE tem emoji na URL, não no body — sintetizamos o body pra reusar o handler flat.
Retorno: 204 removido / 404 não existia; 500 erro. Efeito: 1 DELETE. Fluxo: UI toggle off da reação.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
teamId | path | string | sim | |
timelineId | path | string | sim | |
postId | path | string | sim | |
emoji | path | string | sim |
Respostas
200
TBD
401
Sem credencial valida
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
403
Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
429
Limite de requisições excedido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
Erro. Efeito: 1 DELETE. Fluxo: UI toggle off da reação
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X DELETE 'https://api-workspace.axuz.net/teams/TEAM_ID/timelines/TIMELINE_ID/posts/POST_ID/reactions/EMOJI' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://api-workspace.axuz.net/teams/TEAM_ID/timelines/TIMELINE_ID/posts/POST_ID/reactions/EMOJI", {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"DELETE",
"https://api-workspace.axuz.net/teams/TEAM_ID/timelines/TIMELINE_ID/posts/POST_ID/reactions/EMOJI",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())