---
title: "Generates an upgrade URL for an enterprise"
method: POST
path: "/api/v2/google-emm/enterprises/{enterpriseId}/generate-upgrade-url"
tags: ["Google EMM"]
---

# Generates an upgrade URL for an enterprise

`POST /api/v2/google-emm/enterprises/{enterpriseId}/generate-upgrade-url`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/google-emm/enterprises/{enterpriseId}/generate-upgrade-url`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/google-emm/enterprises/:enterpriseId/generate-upgrade-url/post.ts> (a function with typed inputs; its response is checked against the schema)

Provides an upgrade URL to upgrade the Google EMM enterprise,
from Managed Google Play Account to Managed Google Domain.

#### Sample Request

```
curl -X POST https://console.jumpcloud.com/api/v2/google-emm/enterprises/{enterpriseId}/generate-upgrade-url \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{"domainsAllowed": ["string"]}'
```

## Path parameters

- `enterpriseId` string, byte, required

## Request body

- object
  - `domainsAllowed` string[]

## Response `200`

A successful response.

- JumpcloudGoogleEmmGenerateEnterpriseUpgradeURLResponse
  - `upgradeUrl` string

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
