---
title: "Activate user by id"
method: POST
path: "/company/v1/users/{userId}/activate"
tags: ["usersService"]
---

# Activate user by id

`POST /company/v1/users/{userId}/activate`

Activate user by id.  Returns user data with active: true

## Path parameters

- `userId` integer, required

## Response `200`

OK

- User
  - `id` integer
  - `firstName` string
  - `lastName` string
  - `patronymic` string
  - `position` string
  - `specialization` string
  - `country` string
  - `city` string
  - `avatar` string
  - `aboutMyself` string
  - `active` boolean
  - `registered` boolean
  - `birthday` number — timestamp in seconds
  - `dateOfDismiss` number — timestamp in seconds
  - `showBirthYear` boolean
  - `email` object[]
    - `id` string
    - `type` string
    - `value` string
    - `main` boolean
  - `phone` object[]
    - `id` string
    - `type` 'WORK' | 'MOBILE' | 'HOME'
    - `value` string
  - `roles` string[]
  - `departmentsIds` string[]
  - `socialMedia` object[]
    - `id` string
    - `name` string
    - `link` string
  - `emailInvitation` boolean
  - `dateOfInvitation` number — timestamp in seconds

## Other responses

- `401` — Access token is missing or invalid
- `403` — Forbidden

---

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