---
title: "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Contoso/employees/{employeeName}"
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Contoso/employees/{employeeName}"
tags: ["Employees"]
---

# PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Contoso/employees/{employeeName}

`PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Contoso/employees/{employeeName}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Contoso/employees/{employeeName}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Create a Employee

## Path parameters

- `subscriptionId` string, uuid, required
- `resourceGroupName` string, required
- `employeeName` string, required

## Query parameters

- `api-version` string, required

## Request body

- Employee: Employee resource
  - `id` string, arm-id: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
  - `name` string: The name of the resource
  - `type` string: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
  - `systemData` SystemData: Metadata pertaining to creation and last modification of the resource.
    - `createdBy` string: The identity that created the resource.
    - `createdByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that created the resource.
    - `createdAt` string, date-time: The timestamp of resource creation (UTC).
    - `lastModifiedBy` string: The identity that last modified the resource.
    - `lastModifiedByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that last modified the resource.
    - `lastModifiedAt` string, date-time: The timestamp of resource last modification (UTC)
  - `tags` object: Resource tags.
  - `location` string, required: The geo-location where the resource lives
  - `properties` EmployeeProperties: Employee properties
    - `age` integer: Age of employee
    - `city` string: City of employee
    - `profile` string, base64url: Profile of employee
    - `provisioningState` 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Updating' | 'Deleting' | 'Accepted': The resource provisioning state.

## Response `200`

Resource 'Employee' update operation succeeded

- Employee: Employee resource
  - `id` string, arm-id: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
  - `name` string: The name of the resource
  - `type` string: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
  - `systemData` SystemData: Metadata pertaining to creation and last modification of the resource.
    - `createdBy` string: The identity that created the resource.
    - `createdByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that created the resource.
    - `createdAt` string, date-time: The timestamp of resource creation (UTC).
    - `lastModifiedBy` string: The identity that last modified the resource.
    - `lastModifiedByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that last modified the resource.
    - `lastModifiedAt` string, date-time: The timestamp of resource last modification (UTC)
  - `tags` object: Resource tags.
  - `location` string, required: The geo-location where the resource lives
  - `properties` EmployeeProperties: Employee properties
    - `age` integer: Age of employee
    - `city` string: City of employee
    - `profile` string, base64url: Profile of employee
    - `provisioningState` 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Updating' | 'Deleting' | 'Accepted': The resource provisioning state.

## Other responses

- `201`: Resource 'Employee' create operation succeeded
- `default`: An unexpected error response.

## Changes

- **2026-07-13** (2021-10-01-preview) `06b80dfc2327`: 3 breaking
  - added the new path request parameter `resourceGroupName`
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`

[Operation history](https://skmtc.dev/azure/apis/contosowidgetmanager-microsoft-contoso/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Contoso/employees/:employeeName/put.md)

---

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