Skip to content

Patches webtoken instance
Stable

Request

We recommend handling EMM updates through the UI. See Setting Up Google Play for more information. Partially update a specific web token for a Google Enterprise (EMM) instance. Applies a partial update to the web token record identified by webtoken_id, modifying only the fields included in the request body and returning the updated token object.

Updatable fields:

emm — the integer ID of the associated EMM instance parent_url — the URL of the application hosting the Play Store iFrame; must use the https scheme is_active — whether the token is currently active

Security
esper_cloud_api_apiKey
Path
enterprise_idstringrequired

A UUID string identifying this enterprise.

emm_idintegerrequired

An integer representing the ID of enterprise.

webtoken_idstringrequired

An integer identifying the webtoken.

Bodyapplication/json
idinteger(Id)
emminteger(emm Id)
tokenstring(Webtoken)
parent_urlstring, (url)
is_activeboolean
cURL
curl -i -X PATCH \
  'https://api.esper.io/_mock/openapi/v0/enterprise/{enterprise_id}/emm/{emm_id}/webtoken/{webtoken_id}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "emm": 0,
    "token": "string",
    "parent_url": "string",
    "is_active": true
  }'

Responses

successful operation

Bodyapplication/json
idinteger(Id)
emminteger(emm Id)
tokenstring(Webtoken)
parent_urlstring, (url)
is_activeboolean
created_onstring, (date-time)
Response
{ "id": 0, "emm": 0, "token": "string", "parent_url": "string", "is_active": true, "created_on": "2019-08-24T14:15:22Z" }