---
title: "Update user representative"
method: PUT
path: "/api/user/{id}/representative"
tags: ["User Management"]
---

# Update user representative

`PUT /api/user/{id}/representative`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/user/{id}/representative`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/user/:id/representative/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the representative(s) for a user.

## Path parameters

- `id` integer, required

## Request body

- object
  - `representatives` object[]
    - `id` integer
    - `is_main` boolean
    - `representative_type` string

## Response `200`

Updated representatives

- UserRepresentativeResource[]
  - `id` integer: Representative ID
  - `is_main` boolean: Whether this is the main representative
  - `name` string: Representative name
  - `representative_type` string: Type of representative

## Other responses

- `401`: Unauthenticated
- `404`: User not found

---

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