Documentación para desarrolladores

Remove an action added on request

POST/sites/{siteId}/actions/{issueId}/remove
Permiso
actions:write
Herramienta MCP
remove_action

Remove an action added on request Like Ignore in the app: the action leaves the list, with the reason shown on it. Only actions added on request (keyword, AI answer and FAQ tasks, by hand or through the API); an audit finding leaves the list when a recheck no longer finds it. Adding the keyword again brings the action back. Recorded in the website's Activity as the key owner.

Las descripciones vienen del documento OpenAPI y están en inglés.

Parámetros

NombreDóndeDetalles
siteIdObligatoriorutastringWebsite id, from GET /sites.
issueIdObligatoriorutastringAction id (issueId), from GET /sites/{siteId}/actions or POST /sites/{siteId}/actions.

Cuerpo de la petición

CampoDetalles
reasonstring · at most 300 characters; Why, shown on the action (default: Removed through the API)
{
  "reason": "Test action"
}

Respuesta

200 · application/json

CampoDetalles
removedtrue or false · required; Always true
actionobject · required
action.idstring · required; Action id
action.ruleIdstring · required; Rule of the task, for example KW-OPP-001
action.titlestring · required; Action title
action.statusignored · required; Now ignored
action.linkaddress (URL) · required; The action in the app
action.reasonstring · required; The reason kept on it

Errores

EstadoSignificado
400Bad request. Codes: not_removable, bad_reason, reason_too_long.
401Missing, unknown or revoked key. Codes: missing_key, invalid_key.
403The key lacks the scope, covers another website, or its owner lost access. Codes: missing_scope, other_site, owner_left, no_owner, forbidden.
404Not found. Codes: not_found.
429Too many requests this hour for this key. Codes: rate_limited.

Petición de ejemplo

curl -X POST \
  -H "Authorization: Bearer mr_ws_…" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Test action"}' \
  "https://app.monoranks.com/api/v1/sites/SITE_ID/actions/ISSUE_ID/remove"

Respuesta de ejemplo

{
  "removed": true,
  "action": {
    "id": "b2e4c6a8-1d3f-4a5b-9c7d-0e2f4a6b8c1d",
    "ruleId": "KW-OPP-001",
    "title": "New content: tubeless gravel tires",
    "status": "ignored",
    "link": "https://app.monoranks.com/sites/3f6c2a1e-8b4d-4c7a-9e21-5d0b7a6f4c13/actions/b2e4c6a8-1d3f-4a5b-9c7d-0e2f4a6b8c1d",
    "reason": "Test action"
  }
}

El servidor MCP hace lo mismo con la herramienta remove_action.