Create a task from an audit issue
seo_site_auditor.tasks.create_from_issue
Creates a task in Tasks from one active issue of an audit (issue_id: id of an item of seo_site_auditor.issues.list with state=active): the title is the issue's title; the description says what is wrong, why it matters, how to fix it, up to 10 affected pages and the audited site; the priority follows the severity (critical → high, high → medium, the rest → low); it gets the organization's «SEO» task label if there is one; assignee defaults to the caller (null leaves it unassigned) and due_date to today (null leaves it without a date). Where it lands follows the app: an agency member working an account files it in the workspace's Tasks under that account (account_id; task_org_id says where it is); a member of the account, in the account itself (an account's own API key always files it there). The new task fires task_management.task.created to the webhooks of the organization that holds it. Errors: audit_run_not_found (404), audit_issue_not_found (404), audit_issue_ignored (409: the issue was marked as intentional), task_access_denied (403: no edit access to Tasks where the task goes), scope_insufficient (403: an API key also needs task_management:write). Not idempotent: each call creates a task. Requires edit access to Site Audit and to Tasks.
- Alcance
seo_site_auditor:write- Permiso
- Editar en el módulo
- Tool del MCP
seo_site_auditor_tasks_create_from_issueEn la superficie completa; en la compacta,mb_execute_operationconid: "seo_site_auditor.tasks.create_from_issue".
Costo declarado: hasta 60 lecturas y 1 escrituras por llamada (cuentan en el cupo diario).
Parámetros
run_idstringrutaAudit id (id from seo_site_auditor.runs.list, or run_id from seo_site_auditor.runs.trigger).
issue_idstringrutaIssue id: the id of the check, e.g. meta_description_missing (id of an item of seo_site_auditor.issues.list).
assignee_idstring | nullcuerpoopcionalWho the task is assigned to (a person who can be in the task). Without it, the caller, as in the app; null leaves it unassigned.
due_dateinteger | nullcuerpoopcionalDue date in ms. Without it, today (as in the app); null leaves it without a date.
Respuesta
task_idstringtask_org_idstringaccount_idstring | nulltaskobjectErrores
Ejemplo
curl -X POST "https://api.mb-suite.com/v1/seo/site-auditor/runs/{run_id}/issues/{issue_id}/tasks" \
-H "Authorization: Bearer $MB_API_KEY"Probar con tu API key de prueba
Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.
curl -X POST "https://api.mb-suite.com/v1/seo/site-auditor/runs/{run_id}/issues/{issue_id}/tasks" \
-H "Authorization: Bearer $MB_TEST_KEY"