---
title: "POST /providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference"
method: POST
path: "/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference"
tags: ["Adds"]
---

# POST /providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference

`POST /providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/providers/Microsoft.ADHybridHealthService/addsservices/{serviceName}/features/{featureName}/userpreference`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Adds the user preferences for a given feature.

## Path parameters

- `serviceName` string, required
- `featureName` string, required

## Query parameters

- `api-version` string, required

## Request body

- UserPreference: The user preference for a given feature.
  - `metricNames` string[]: The name of the metric.

## Response `200`

Successfully added the user preference settings.

## Changes

- **2018-06-08** (2014-01-01) `43476749f5e0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/azure/apis/adhybridhealthservice/changes/providers/Microsoft.ADHybridHealthService/addsservices/:serviceName/features/:featureName/userpreference/post.md)

---

[API](https://skmtc.dev/azure/apis/adhybridhealthservice.md) - [All operations](https://skmtc.dev/azure/apis/adhybridhealthservice/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/adhybridhealthservice/revisions/35cb734a789a?raw)
