---
title: "Update Agent"
method: PUT
path: "/agents/{id}"
tags: ["Agents"]
---

# Update Agent

`PUT /agents/{id}`

Update an existing agent.

## Path parameters

- `id` string, required — The ID of the agent to update.

## Request body

- object
  - `name` string, required — The display name of the agent.
  - `fullName` string, required — The full name of the agent.
  - `sendInvite` boolean — Whether this update should send a new email invite to the agent.

## Response `200`

Returns the updated agent.

- Agent — An agent represents someone that contacts leads on behalf of an organization.
  - `id` string, required — The ID of the agent.
  - `type` 'agent', required — The type of object the attached ID corresponds to.
  - `name` string, required — The display name of the agent.
  - `fullName` string, required — The full name of the agent.
  - `phoneNumber` string — The phone number of the agent.
  - `organizationId` string, required — The ID of the organization the agent belongs to.
  - `groupId` string, required — The ID of the group the agent belongs to.
  - `createdAt` string, required — An ISO-8601 string representing the date the agent was created.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/hustle/apis/hustle-public-api.md) · [All operations](https://skmtc.net/hustle/apis/hustle-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hustle/hustle-public-api/revisions/e920ac8ed225/schema)
