---
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

---

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