---
title: "Update user"
method: PUT
path: "/firewall/{app_id}/users/{user_id}"
---

# Update user

`PUT /firewall/{app_id}/users/{user_id}`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/firewall/{app_id}/users/{user_id}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `firewall:write`

update blocking status of a user

## Path parameters

- `app_id` integer, required
- `user_id` string, required

## Request body

- object
  - `block` boolean, required: Whether to block the specified user from accessing your app

## Response `200`

The app has been successfully created

- object
  - `success` boolean: The boolean true indicating success

## Other responses

- `400`: One or more of the provided fields are invalid.
- `404`: App not found or User not found

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
