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)obligatorio
The kind of item: a comment, a direct message conversation or a mention.
idstringobligatorio
The item's id, from the inbox list.
Cuerpo de la solicitud
actionstring (hide | unhide | delete)obligatorio
What to do to the comment.
Respuesta
dataobjectopcional
okbooleanopcional
True when the request succeeded.
actionstringopcional
The action that was applied.
changedbooleanopcional
False when the comment was already in that state.
Errores
400A la solicitud le falta un parámetro obligatorio o es inválida de otra forma.
401La clave de API falta, es inválida, expiró o fue revocada.
403A la clave le falta el permiso requerido, o no está autorizada para este cliente/ubicación.
404El recurso no se encontró, o no pertenece a su agencia.
429Demasiadas solicitudes. Reintente tras el número de segundos indicado en el encabezado Retry-After.
post/api/v1/inbox/{kind}/{id}/moderate
Su clave de API
kind *
id *
Cuerpo de la solicitud*
{
"data": {
"ok": true,
"action": "hide",
"changed": true
}
}