Actualizar issue en Sentry, con una API

Resuelve, archiva, reabre, asigna o cambia la prioridad de una issue. Solo cambian los campos enviados. Para archivar, envía status ignored con un substatus, y la condición en statusDetails cuando sea archived_until_condition_met.

Identificador
sentry_update_issue

La llamada

POST https://connect.reportei.com/api/tools/sentry_update_issue/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "organization_id_or_slug": "<organization_id_or_slug>",
    "issue_id": "<issue_id>"
  }
}

Tu sistema envía el id de la conexión de tu cliente y los argumentos de la tool. Los headers son los mismos de toda la API de Connect: el token de tu producto y el token de tu cliente.

Parámetros

Las descripciones de los parámetros siguen la documentación oficial de la app, en inglés.

ParámetroTipoObligatorioDescripción
organization_id_or_slugstringSíSlug or id of the organization, from List organizations.
issue_idstringSíId of the issue, the numeric id from List issues.
statusstringNoNew status. ignored is shown as archived in Sentry.Valores: resolved, resolvedInNextRelease, unresolved, ignored
substatusstringNoWith status ignored, how the issue stays archived: until it escalates, until the condition in statusDetails is met, or forever.Valores: archived_until_escalating, archived_until_condition_met, archived_forever
statusDetailsobjectNoDetails of the resolution or of the archive condition.
assignedTostringNoUser to assign, by email or username, or a team as team: followed by the team id from Get project.
prioritystringNoNew priority.Valores: low, medium, high
hasSeenbooleanNoTrue marks the issue as seen by the user of the token.
inboxbooleanNoTrue marks the issue as reviewed by the user of the token.
isBookmarkedbooleanNoTrue bookmarks the issue for the user of the token.
isSubscribedbooleanNoTrue subscribes the user of the token to the issue.

Conexiones posibles

Tu cliente conecta su cuenta de Sentry una sola vez, con uno de los modos de abajo. La misma conexión sirve para todas las tools del toolkit.

Clave de API

Tu cliente pega la clave de la app en una pantalla de Connect, o tu sistema envía la clave con POST /api/customer-toolkits, sin pantalla.

Al conectar, tu cliente también indica {region}: la dirección de su cuenta en la API de la app.

La respuesta

Si la llamada tiene éxito, Connect conserva el status y el cuerpo de la respuesta de la app. Los errores HTTP devueltos por la app usan el objeto {error, api_error}; la autenticación o validación pueden fallar antes de la ejecución. El header X-Toolkit-Execution-Id identifica la ejecución registrada, disponible en GET /api/tools/executions/{uuid}.

Lista para agentes de IA

El input de esta tool es un JSON Schema, disponible en GET /api/tools/sentry_update_issue. Se convierte en la definición de tool de tu agente sin conversión.

Otras tools de Sentry

Ver las 11 tools

Toolkits de la misma categoría

Ver los 100 toolkits

Mira Connect aplicado a tu producto.

Pruébalo durante 15 días sin tarjeta, o cuéntale tu caso a nuestro equipo.