---
title: "PUT /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}"
method: PUT
path: "/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}"
---

# PUT /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}

`PUT /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/azure/apis/intune-microsoft-intune-intune/docs/providers/Microsoft.Intune/locations/:hostName/androidPolicies/:policyName/put.ts> (a function with typed inputs; its response is checked against the schema)

Creates or updates AndroidMAMPolicy.

## Path parameters

- `hostName` string, required
- `policyName` string, required

## Query parameters

- `api-version` string, required

## Request body

- AndroidMAMPolicy
  - `id` string: Resource Id
  - `name` string: Resource name
  - `type` string: Resource type
  - `tags` object: Resource Tags
  - `location` string: Resource Location

## Response `200`

android entity.

- AndroidMAMPolicy
  - `id` string: Resource Id
  - `name` string: Resource name
  - `type` string: Resource type
  - `tags` object: Resource Tags
  - `location` string: Resource Location

## Other responses

- `default`: unexpected error

---

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