---
title: "POST /mr-api/user-data/state/{appId}/hidden-environments"
method: POST
path: "/mr-api/user-data/state/{appId}/hidden-environments"
tags: ["UserStateService"]
---

# POST /mr-api/user-data/state/{appId}/hidden-environments

`POST /mr-api/user-data/state/{appId}/hidden-environments`

Saves information on which environments should be hidden for this user

## Request body

- HiddenEnvironments
  - `noneSelected` boolean — If this is set to true, then the user in fact as no selected environments
  - `environmentIds` string[]

## Response `200`

the current set of hidden environments

- HiddenEnvironments
  - `noneSelected` boolean — If this is set to true, then the user in fact as no selected environments
  - `environmentIds` string[]

## Other responses

- `401` — no permission to anything
- `403` — no permission to environment
- `404` — no such application
- `422` — update invalid, old

## Changes

- **2026-07-17** `faed5fd616c3` — 2 info
  - added the new optional request property `noneSelected`
  - added the optional property `noneSelected` to the response with the `200` status
- **2023-09-24** `b06e5f293bda` — 2 warning
  - removed the request property `noneSelected`
  - removed the optional property `noneSelected` from the response with the `200` status

[Change history](https://skmtc.dev/featurehub-io/apis/managementresourceapi/changes/mr-api/user-data/state/:appId/hidden-environments/post.md)

---

[API](https://skmtc.dev/featurehub-io/apis/managementresourceapi.md) · [All operations](https://skmtc.dev/featurehub-io/apis/managementresourceapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/featurehub-io/managementresourceapi/revisions/faed5fd616c3/schema)
