Favicon

You are here: Home > API Reference > Enterprise Creation > Generate enterprise upgrade URL

POST /organizations/:organizationId/mdm/android/enterprise/upgrade-url

Required Permission: mdm.android.enterprise.generateEnterpriseUpgradeUrl

Generates a URL for upgrading a managed Google Play Accounts enterprise to a managed Google domain. Only enterprises with enterprise type MANAGED_GOOGLE_PLAY_ACCOUNTS_ENTERPRISE are eligible.

POST
/v1/organizations/:organizationId/mdm/android/enterprise/upgrade-url
Copy to clipboard

Generate enterprise upgrade URL

Required Permission: mdm.android.enterprise.generateEnterpriseUpgradeUrl

Generates a URL for upgrading a managed Google Play Accounts enterprise to a managed Google domain. Only enterprises with enterprise type MANAGED_GOOGLE_PLAY_ACCOUNTS_ENTERPRISE are eligible.

Request

Add parameter in header authorization
Example: Authorization: Bearer <token>
organizationId string
required
Unique identifier for organization managing Apple enterprise application deployments and configurations.
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$
Body Params application/json
adminEmail string optional
Optional work email hint prefilled on Google upgrade flow. Must belong to allowedDomains when that list is non-empty.
≤ 256 characters · Match pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$ · Format: email
allowedDomains array [string] optional
Optional list of permitted domains for the admin email during upgrade, as defined by the Android Management API.
{
    "adminEmail": "[email protected]",
    "allowedDomains": [
        "string"
    ]
}

Responses

200 Response application/json
status boolean required
data object required
url string required
Google-generated URL that the IT admin must open to complete upgrade to a managed Google domain. Cannot be embedded in an iframe.
{
    "status": true,
    "data": {
        "url": "string"
    }
}
400 Response application/json
status boolean optional
false
error object optional
code number optional
5095
message string optional
Error From Emm Android Library
{
    "status": false,
    "error": {
        "code": 5050,
        "message": "Feature not allowed for you billing plan"
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4004
message string optional
Invalid Token
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}
404 Response application/json
status boolean optional
false
error object optional
code number optional
3001
message string optional
Entity not found
{
    "status": false,
    "error": {
        "code": 3001,
        "message": "Entity not found"
    }
}