---
title: "Update an agent number"
method: PUT
path: "/agentnumbers/{id}"
tags: ["Agent Numbers"]
---

# Update an agent number

`PUT /agentnumbers/{id}`

## Request

- Base URL: `https://api.surense.com/api/v1`
- URL: `https://api.surense.com/api/v1/agentnumbers/{id}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.surense.com/oauth/token`

Update an agent number. tenantAdmin or agencyAdmin is required.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateAgentNumberRequest: Request to update an agent number
  - `agencyId` string, required: Agency ID
  - `description` string: Description
  - `licenseeId` string, required: Licensee ID
  - `supervisorId` string: Supervisor ID
  - `customerManagerId` string: Customer manager ID
  - `misparSohenAv1` string: Agent number AV1
  - `misparSohenAv2` string: Agent number AV2
  - `blackListed` boolean: Whether the agent number is blacklisted
  - `active` boolean, required: Whether the agent number is active
  - `notes` string: Notes

## Response `200`

OK

- AgentNumberValue
  - `tenantId` string, uuid
  - `agencyId` string, uuid
  - `createdDate` string, date-time
  - `createdBy` string, uuid
  - `creatorName` string
  - `lastModifiedDate` string, date-time
  - `lastModifiedBy` string, uuid
  - `version` integer
  - `id` string, uuid
  - `description` string
  - `companyId` integer
  - `licenseeId` string, uuid
  - `licenseeName` string
  - `supervisorId` string, uuid
  - `supervisorName` string
  - `businessClassId` string, uuid
  - `businessClassName` string
  - `customerManagerId` string, uuid
  - `customerManagerName` string
  - `misparSohen` string
  - `misparSohenAv1` string
  - `misparSohenAv2` string
  - `blacklisted` boolean
  - `active` boolean
  - `statusDate` string, date-time
  - `notes` string

---

[API](https://skmtc.dev/surense/apis/agent-number-api.md) - [All operations](https://skmtc.dev/surense/apis/agent-number-api/llms.txt) - [OpenAPI document](https://skmtc.dev/surense/apis/agent-number-api/revisions/aa286e677c4e?raw)
