---
title: "Alterar status"
method: POST
path: "/v1/agent/{id}/status"
tags: ["Usuários"]
---

# Alterar status

`POST /v1/agent/{id}/status`

## Path parameters

- `id` string, uuid, required

## Request body

- PublicAgentChangeStatusDTO — DTO para alteração de status do usuário
  - `status` 'Undefined' | 'Active' | 'Blocked', required — Novo status do usuário

## Response `200`

Success

- PublicAgentDTO
  - `id` string, uuid
  - `createdAt` string, date-time
  - `updatedAt` string, date-time
  - `companyId` string, uuid
  - `userId` string, uuid
  - `name` string, nullable
  - `shortName` string, nullable
  - `email` string, nullable
  - `phoneNumber` string, nullable
  - `phoneNumberFormatted` string, nullable
  - `profile` string, nullable
  - `isOwner` boolean
  - `departments` PublicAgentDepartmentDTO[], nullable
    - `agentId` string, uuid
    - `userId` string, uuid
    - `departmentId` string, uuid
    - `isAgent` boolean
    - `isSupervisor` boolean
  - `availability` 'AVAILABLE' | 'UNAVAILABLE' — Enum que representa o status de disponibilidade de um usuário

## 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)
