---
title: "updateAgent portal_sales_agents"
method: POST
path: "/ops/sales-agents/{id}"
tags: ["ops"]
---

# updateAgent portal_sales_agents

`POST /ops/sales-agents/{id}`

update sales agent information in Auth0

## Path parameters

- `id` string, required — Auth0 Sales Agent ID

## Request body

- UpdateAgentRequestBody
  - `email` string, email, required — E-mail
  - `external_agent_id` string — Id number used to identify the sales agent in the seller's internal system
  - `language` string — User language
  - `last_login` string, date-time — User last login time
  - `name` string, required — Name of the agent
  - `phone` string, required — Phone number
  - `seller_id` string, regexp — Seller ID
  - `seller_store_id` string — Id number used to identify the store a PoS agent is operating from
  - `status` string — User status
  - `topi_relevant` boolean — Whether the user is relevant for driving topi GMV, this allows us to opt out users that are managers or are not expected to do much sales from reporting.

## Response `202`

Accepted response.

## Other responses

- `400` — BadRequest: Bad Request response.
- `401` — Unauthorized: Unauthorized response.
- `403` — InvalidScopes: Forbidden response.
- `404` — AgentNotFound: Not Found response.

---

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