---
title: "Add or update a Visual Studio subscription user match"
method: PUT
path: "/enterprises/{enterprise}/visual-studio-subscriptions/{visual_studio_subscription_id}"
tags: ["enterprise-admin"]
---

# Add or update a Visual Studio subscription user match

`PUT /enterprises/{enterprise}/visual-studio-subscriptions/{visual_studio_subscription_id}`

Updates a manual match between a user and a Visual Studio subscription.

## Path parameters

- `visual_studio_subscription_id` string, required
- `enterprise` string, required

## Request body

- object
  - `user_identifier` string — The handle for the GitHub user account or a verified email associated with their account.

## Response `200`

Response

- VisualStudioSubscriptionAssignment — Visual Studio Subscription Assignment
  - `visual_studio_subscription_email` string — The email associated with the Visual Studio subscription assignment in the visual studio portal.
  - `subscription_id` string — The ID of the Visual Studio Subscription. This is a GUID that comes from the Visual Studio management portal.
  - `username` string, nullable — The GitHub username of the user associated with the Visual Studio subscription assignment.
  - `manual_match` boolean — Indicates if the Visual Studio subscription assignment was manually matched to a user.

## Other responses

- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
