---
title: "user enable"
method: PATCH
path: "/v1/users/{usernames}/enable"
tags: ["v1", "users"]
---

# user enable

`PATCH /v1/users/{usernames}/enable`

#### Controller: 

`github.com/ubccr/grendel/internal/api.(*Handler).UserEnable`

#### Middlewares:

- `github.com/go-fuego/fuego.defaultLogger.middleware`
- `github.com/ubccr/grendel/internal/api.(*Handler).authMiddleware`

---

Update users enable

## Path parameters

- `usernames` string, required

## Headers

- `Accept` string

## Request body

- UserEnableRequest — UserEnableRequest schema
  - `enabled` boolean

## Response `200`

OK

- GenericResponse — GenericResponse schema
  - `changed` integer
  - `detail` string
  - `title` string

## Other responses

- `default` — Default Error

## Changes

> 15 revisions in range; 10 could not be searched.

- **2024-12-03** `29c6a9c3f49b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ubccr/apis/grendel-api/changes/v1/users/:usernames/enable/patch.md)

---

[API](https://skmtc.dev/ubccr/apis/grendel-api.md) · [All operations](https://skmtc.dev/ubccr/apis/grendel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ubccr/grendel-api/revisions/62eb4acab992/schema)
