---
title: "Update user Denylist flag"
method: PUT
path: "/v1/users/denylist/{identifyId}"
tags: ["Users"]
---

# Update user Denylist flag

`PUT /v1/users/denylist/{identifyId}`

## Request

- Base URL: `https://app.aptrinsic.com`
- URL: `https://app.aptrinsic.com/v1/users/denylist/{identifyId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gainsight/apis/gainsight-px-rest-api/docs/v1/users/denylist/:identifyId/put.ts> (a function with typed inputs; its response is checked against the schema)

Setting the Denylist flag to true will make Gainsight PX to ignore all of the user's events.

## Path parameters

- `identifyId` string, required

## Request body

- SetDenylistRequestBody: User Blacklist Flag
  - `denied` boolean

## Response `200`

Updated

## Other responses

- `204`: No Content
- `400`: Bad request
- `401`: Unauthorized or bad API Key
- `403`: Access denied
- `404`: User not found by id
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/gainsight/apis/gainsight-px-rest-api.md) - [All operations](https://skmtc.dev/gainsight/apis/gainsight-px-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gainsight/apis/gainsight-px-rest-api/revisions/e7b197b373d8?raw)
