> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change Ticket Status

Change the status of a ticket.

<Note>
  External Documentation

  To learn more, visit the [Zendesk documentation](https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-ticket).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                |
  | --------- | ------------------------------------------ |
  | Status    | Status to set for the ticket.              |
  | Ticket ID | The ID of the ticket to change status for. |
</div>

## Example Output

```json theme={"dark"}
{
	"ticket": {
		"url": "https://xxxxxxxxxx.zendesk.com/api/v2/tickets/x.json",
		"id": "x",
		"external_id": null,
		"via": {
			"channel": "sample_ticket",
			"source": {
				"from": {},
				"to": {},
				"rel": null
			}
		},
		"created_at": "2025-01-12T10:08:40Z",
		"updated_at": "2025-01-12T12:07:26Z",
		"generated_timestamp": "xxxxxxxxxx",
		"type": "incident",
		"subject": "SAMPLE TICKET: Meet the ticket",
		"raw_subject": "SAMPLE TICKET: Meet the ticket",
		"description": "Hi there,\n\nI’m sending an email because I’m having a problem setting up your new product. Can you help me troubleshoot?\n\nThanks,\n The Customer\n\n",
		"priority": "low",
		"status": "open",
		"recipient": null,
		"requester_id": "xxxxxxxxxx",
		"submitter_id": "xxxxxxxxxx",
		"assignee_id": "xxxxxxxxxx",
		"organization_id": null,
		"group_id": "xxxxxxxxxx",
		"collaborator_ids": [],
		"follower_ids": [],
		"email_cc_ids": [],
		"forum_topic_id": null,
		"problem_id": null,
		"has_incidents": false,
		"is_public": true,
		"due_at": null,
		"tags": [
			"sample",
			"support",
			"zendesk"
		],
		"custom_fields": [
			{
				"id": "xxxxxxxxxx",
				"value": null
			}
		],
		"satisfaction_rating": {
			"score": "unoffered"
		},
		"sharing_agreement_ids": [],
		"custom_status_id": "xxxxxxxxxx",
		"encoded_id": "xxxxxxxxxx",
		"fields": [
			{
				"id": "xxxxxxxxxx",
				"value": null
			}
		],
		"followup_ids": [],
		"ticket_form_id": "xxxxxxxxxx",
		"brand_id": "xxxxxxxxxx",
		"allow_channelback": false,
		"allow_attachments": true,
		"from_messaging_channel": false
	},
	"audit": {
		"id": "xxxxxxxxxx",
		"ticket_id": "x",
		"created_at": "2025-01-12T12:07:26Z",
		"author_id": "xxxxxxxxxx",
		"metadata": {
			"system": {
				"client": "xxxxxxxxxx",
				"ip_address": "x.x.x.x",
				"location": "xxxxxxxxxx",
				"latitude": "xx.xxxx",
				"longitude": "-x.xxxx"
			},
			"custom": {}
		},
		"events": [
			{
				"id": 10597405362296,
				"type": "<string>",
				"value": "<string>",
				"field_name": "<string>",
				"previous_value": null
			},
			{
				"id": 34244109179606,
				"type": "<string>",
				"via": {
					"channel": "<string>",
					"source": {
						"from": {
							"deleted": false,
							"title": "<string>",
							"id": 12372566935285
						},
						"rel": "<string>"
					}
				}
			}
		],
		"via": {
			"channel": "api",
			"source": {
				"from": {},
				"to": {},
				"rel": null
			}
		}
	}
}
```

## Workflow Library Example

[Change Ticket Status with Zendesk and Send Results Via Email](https://library.blinkops.com/workflows/change-ticket-status-with-zendesk-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/change-ticket-status-with-zendesk-and-send-results-via-email/canvas" />
</div>
