Zendesk

Update Zendesk Ticket Status

Sets a ticket to open, pending or solved.

Unverified

What the model is told

Change the status of a Zendesk ticket. Use solved when the customer says the problem is fixed, or open to reopen it. Allowed values are open, pending, hold and solved. Only use a ticket ID the customer has given you, and confirm the change first.

Request

PUThttps://YOUR_SUBDOMAIN.zendesk.com/api/v2/tickets/{{ticketId}}.json

Headers

  • Content-Typeapplication/json
  • AuthorizationBasic YOUR_BASE64_EMAIL_SLASH_TOKEN_AND_API_TOKEN

Body

{
  "ticket": {
    "status": "{{status}}"
  }
}

Parameters

  • ticketId numberThe numeric ticket ID.
  • status stringThe new status: open, pending, hold or solved.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "88f28d8e-fa94-43d6-8cbd-869ec96d6521",
    "type": "HTTP_REQUEST",
    "label": "Update Zendesk Ticket Status",
    "name": "update_zendesk_ticket_status",
    "customName": false,
    "description": "Change the status of a Zendesk ticket. Use solved when the customer says the problem is fixed, or open to reopen it. Allowed values are open, pending, hold and solved. Only use a ticket ID the customer has given you, and confirm the change first.",
    "parameters": [
      {
        "name": "ticketId",
        "type": "number",
        "description": "The numeric ticket ID."
      },
      {
        "name": "status",
        "type": "string",
        "description": "The new status: open, pending, hold or solved."
      }
    ],
    "config": {
      "endpoint": {
        "method": "PUT",
        "url": "https://YOUR_SUBDOMAIN.zendesk.com/api/v2/tickets/{{ticketId}}.json"
      },
      "headers": [
        {
          "name": "Content-Type",
          "value": "application/json"
        },
        {
          "name": "Authorization",
          "value": "Basic YOUR_BASE64_EMAIL_SLASH_TOKEN_AND_API_TOKEN"
        }
      ],
      "body": "{\n  \"ticket\": {\n    \"status\": \"{{status}}\"\n  }\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.