v1Recursos/Social Inbox/postHide, unhide or delete a comment
Hide, unhide or delete a comment
Hides a comment (it stays on the network but out of public view; unhide undoes it) or deletes it from the network. Deleting cannot be undone: the inbox keeps the row, marked deleted, and resolves it. Each works only where the network allows it. To ban a YouTube commenter use the youtube endpoint.
post
inbox:write/api/v1/inbox/{kind}/{id}/moderateParâmetros de consulta
kindstring (comment | message | mention)obrigatório
The kind of item: a comment, a direct message conversation or a mention.
idstringobrigatório
The item's id, from the inbox list.
Corpo da solicitação
actionstring (hide | unhide | delete)obrigatório
What to do to the comment.
Resposta
dataobjectopcional
okbooleanopcional
True when the request succeeded.
actionstringopcional
The action that was applied.
changedbooleanopcional
False when the comment was already in that state.
Erros
400Falta um parâmetro obrigatório na solicitação, ou ela é inválida de outra forma.
401Chave de API ausente, inválida, expirada ou revogada.
403A chave não tem a permissão exigida, ou não está autorizada para este cliente/local.
404O recurso não foi encontrado, ou não pertence à sua agência.
429Muitas solicitações. Tente novamente após o número de segundos indicado no cabeçalho Retry-After.
post/api/v1/inbox/{kind}/{id}/moderate
Sua chave de API
kind *
id *
Corpo da solicitação*
{
"data": {
"ok": true,
"action": "hide",
"changed": true
}
}