---
title: "Active an existing user."
method: PATCH
path: "/api/v1/users/activate/{userId}"
tags: ["Users"]
---

# Active an existing user.

`PATCH /api/v1/users/activate/{userId}`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/v1/users/activate/{userId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/v1/users/activate/:userId/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userId` string, required

## Response `200`

If success returns a map with the user + user id.

- ResponseUserMapEntityView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400`: If the user information is not valid
- `403`: If the user is not an admin or access to the role + user layouts or does have permission, it will return a 403.
- `404`: If the user to update does not exist

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v1/users/activate/:userId/patch.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
