---
title: "Assign a ticket to an agent"
method: PUT
path: "/zendesk/tickets/{ticketId}/assign"
tags: ["Zendesk Controller"]
---

# Assign a ticket to an agent

`PUT /zendesk/tickets/{ticketId}/assign`

## Request

- Base URL: `https://api.findmydocument.net`
- URL: `https://api.findmydocument.net/zendesk/tickets/{ticketId}/assign`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/findmydocument/apis/land-registry-api/docs/zendesk/tickets/:ticketId/assign/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the assignee of a Zendesk ticket

## Path parameters

- `ticketId` number, required

## Request body

- AssignAgentDto
  - `assigneeId` string, required: The numeric ID of the agent to assign the ticket to
  - `groupId` string: The numeric ID of the group to assign the ticket to

## Response `200`

Agent assigned successfully

---

[API](https://skmtc.dev/findmydocument/apis/land-registry-api.md) - [All operations](https://skmtc.dev/findmydocument/apis/land-registry-api/llms.txt) - [OpenAPI document](https://skmtc.dev/findmydocument/apis/land-registry-api/revisions/804e7fc0c5dd?raw)
