---
title: "Atualizar usuários"
method: PUT
path: "/v1/department/{id}/agents"
tags: ["Equipes"]
---

# Atualizar usuários

`PUT /v1/department/{id}/agents`

## Path parameters

- `id` string, uuid, required

## Request body

- PublicReqUpdateDepartmentAgent
  - `action` 'ReplaceAll' | 'Upsert' | 'Remove', required
  - `items` PublicAgentUpdateDepartmentItemDTO[], required
    - `userId` string, uuid
    - `isAgent` boolean
    - `isSupervisor` boolean

## Response `200`

Success

- PublicReqUpdateDepartmentAgent
  - `action` 'ReplaceAll' | 'Upsert' | 'Remove', required
  - `items` PublicAgentUpdateDepartmentItemDTO[], required
    - `userId` string, uuid
    - `isAgent` boolean
    - `isSupervisor` boolean

## Other responses

- `500` — Server Error

---

[API](https://skmtc.net/helena/apis/core.md) · [All operations](https://skmtc.net/helena/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/helena/core/versions/811b2cdd2ec2/schema)
