Requires authorization
Takes an action that affects a mobile device. For example, remotely wiping a device. Try it now.
Request
HTTP request
POST https://www.googleapis.com/admin/directory/v1/customer/customerId/devices/mobile/resourceId/action
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
customerId |
string |
The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customerId . The customerId is also returned as part of the Users resource.
|
resourceId |
string |
The unique ID the API service uses to identify the mobile device. |
Authorization
This request requires authorization with at least one of the following scopes (read more about authentication and authorization).
Scope |
---|
https://www.googleapis.com/auth/admin.directory.device.mobile.action |
https://www.googleapis.com/auth/admin.directory.device.mobile |
Request body
In the request body, supply data with the following structure:
{ "action": string }
Property name | Value | Description | Notes |
---|---|---|---|
action |
string |
The action to be performed on the device.
Acceptable values are:
|
Response
If successful, this method returns an empty response body.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.