Google Android · Schema
Command
A command.
AndroidGoogleMobile DevelopmentMobile Operating SystemOpen Source
Properties
| Name | Type | Description |
|---|---|---|
| userName | string | The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to. |
| stopLostModeParams | object | Parameters for the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automa |
| addEsimParams | object | Optional. Parameters for the ADD_ESIM command to add an eSIM profile to the device. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to |
| requestDeviceInfoStatus | object | Output only. Status of the REQUEST_DEVICE_INFO command. |
| newPassword | string | For commands of type RESET_PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command w |
| requestDeviceInfoParams | object | Optional. Parameters for the REQUEST_DEVICE_INFO command to get device related information. If this is set, then it is suggested that type should not be set. In this case, the server automatically set |
| duration | string | The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration. |
| startLostModeParams | object | Parameters for the START_LOST_MODE command to put the device into lost mode. See StartLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automat |
| resetPasswordFlags | array | For commands of type RESET_PASSWORD, optionally specifies flags. |
| startLostModeStatus | object | Output only. Status of the START_LOST_MODE command to put the device into lost mode. See StartLostModeStatus. |
| createTime | string | The timestamp at which the command was created. The timestamp is automatically generated by the server. |
| wipeParams | object | Optional. Parameters for the WIPE command to wipe the device. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to WIPE. It is also accep |
| type | string | The type of the command. |
| esimStatus | object | Output only. Status of an ADD_ESIM or REMOVE_ESIM command. |
| clearAppsDataParams | object | Parameters for the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataParams. If this is set, then it is suggested that type should not be set. In this case, |
| errorCode | string | If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. For reasoning about command errors, prefer fields in the following order (most |
| removeEsimParams | object | Optional. Parameters for the REMOVE_ESIM command to remove an eSIM profile from the device. If this is set, then it is suggested that type should not be set. In this case, the server automatically set |
| stopLostModeStatus | object | Output only. Status of the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeStatus. |
| clearAppsDataStatus | object | Output only. Status of the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataStatus. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-android/json-schema/google-android-command-schema.json",
"title": "Command",
"description": "A command.",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-android-androidmanagement-enterprises-api-openapi.yml#/components/schemas/Command",
"type": "object",
"properties": {
"userName": {
"type": "string",
"description": "The resource name of the user that owns the device in the form enterprises/{enterpriseId}/users/{userId}. This is automatically generated by the server based on the device the command is sent to."
},
"stopLostModeParams": {
"$ref": "#/$defs/StopLostModeParams",
"description": "Parameters for the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to STOP_LOST_MODE. It is also acceptable to explicitly set type to STOP_LOST_MODE."
},
"addEsimParams": {
"$ref": "#/$defs/AddEsimParams",
"description": "Optional. Parameters for the ADD_ESIM command to add an eSIM profile to the device. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to ADD_ESIM. It is also acceptable to explicitly set type to ADD_ESIM."
},
"requestDeviceInfoStatus": {
"$ref": "#/$defs/RequestDeviceInfoStatus",
"description": "Output only. Status of the REQUEST_DEVICE_INFO command."
},
"newPassword": {
"description": "For commands of type RESET_PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command will fail with INVALID_VALUE.",
"type": "string"
},
"requestDeviceInfoParams": {
"$ref": "#/$defs/RequestDeviceInfoParams",
"description": "Optional. Parameters for the REQUEST_DEVICE_INFO command to get device related information. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to REQUEST_DEVICE_INFO . It is also acceptable to explicitly set type to REQUEST_DEVICE_INFO."
},
"duration": {
"format": "google-duration",
"description": "The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration.",
"type": "string"
},
"startLostModeParams": {
"$ref": "#/$defs/StartLostModeParams",
"description": "Parameters for the START_LOST_MODE command to put the device into lost mode. See StartLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to START_LOST_MODE. It is also acceptable to explicitly set type to START_LOST_MODE."
},
"resetPasswordFlags": {
"description": "For commands of type RESET_PASSWORD, optionally specifies flags.",
"type": "array",
"items": {
"type": "string",
"enum": [
"RESET_PASSWORD_FLAG_UNSPECIFIED",
"REQUIRE_ENTRY",
"DO_NOT_ASK_CREDENTIALS_ON_BOOT",
"LOCK_NOW"
]
}
},
"startLostModeStatus": {
"$ref": "#/$defs/StartLostModeStatus",
"description": "Output only. Status of the START_LOST_MODE command to put the device into lost mode. See StartLostModeStatus."
},
"createTime": {
"type": "string",
"description": "The timestamp at which the command was created. The timestamp is automatically generated by the server.",
"format": "google-datetime"
},
"wipeParams": {
"$ref": "#/$defs/WipeParams",
"description": "Optional. Parameters for the WIPE command to wipe the device. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to WIPE. It is also acceptable to explicitly set type to WIPE."
},
"type": {
"description": "The type of the command.",
"type": "string",
"enum": [
"COMMAND_TYPE_UNSPECIFIED",
"LOCK",
"RESET_PASSWORD",
"REBOOT",
"RELINQUISH_OWNERSHIP",
"CLEAR_APP_DATA",
"START_LOST_MODE",
"STOP_LOST_MODE",
"ADD_ESIM",
"REMOVE_ESIM",
"REQUEST_DEVICE_INFO",
"WIPE"
]
},
"esimStatus": {
"$ref": "#/$defs/EsimCommandStatus",
"description": "Output only. Status of an ADD_ESIM or REMOVE_ESIM command."
},
"clearAppsDataParams": {
"$ref": "#/$defs/ClearAppsDataParams",
"description": "Parameters for the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to CLEAR_APP_DATA. It is also acceptable to explicitly set type to CLEAR_APP_DATA."
},
"errorCode": {
"type": "string",
"description": "If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. For reasoning about command errors, prefer fields in the following order (most preferred first): 1. Command-specific fields like clearAppsDataStatus, startLostModeStatus, or similar, if they exist. 2. This field, if set. 3. The generic error field in the Operation that wraps the command.",
"enum": [
"COMMAND_ERROR_CODE_UNSPECIFIED",
"UNKNOWN",
"API_LEVEL",
"MANAGEMENT_MODE",
"INVALID_VALUE",
"UNSUPPORTED"
]
},
"removeEsimParams": {
"$ref": "#/$defs/RemoveEsimParams",
"description": "Optional. Parameters for the REMOVE_ESIM command to remove an eSIM profile from the device. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to REMOVE_ESIM. It is also acceptable to explicitly set type to REMOVE_ESIM."
},
"stopLostModeStatus": {
"$ref": "#/$defs/StopLostModeStatus",
"description": "Output only. Status of the STOP_LOST_MODE command to take the device out of lost mode. See StopLostModeStatus."
},
"clearAppsDataStatus": {
"$ref": "#/$defs/ClearAppsDataStatus",
"description": "Output only. Status of the CLEAR_APP_DATA command to clear the data of specified apps from the device. See ClearAppsDataStatus."
}
},
"$defs": {
"AddEsimParams": {
"properties": {
"activationCode": {
"description": "Required. The activation code for the eSIM profile.",
"type": "string"
},
"activationState": {
"description": "Required. The activation state of the eSIM profile once it is downloaded.",
"type": "string",
"enum": [
"ACTIVATION_STATE_UNSPECIFIED",
"ACTIVATED",
"NOT_ACTIVATED"
]
}
},
"type": "object",
"description": "Parameters associated with the ADD_ESIM command to add an eSIM profile to the device."
},
"ClearAppsDataParams": {
"description": "Parameters associated with the CLEAR_APP_DATA command to clear the data of specified apps from the device.",
"type": "object",
"properties": {
"packageNames": {
"description": "The package names of the apps whose data will be cleared when the command is executed.",
"items": {
"type": "string"
},
"type": "array"
}
}
},
"ClearAppsDataStatus": {
"description": "Status of the CLEAR_APP_DATA command to clear the data of specified apps from the device.",
"properties": {
"results": {
"additionalProperties": {
"$ref": "#/$defs/PerAppResult"
},
"description": "The per-app results, a mapping from package names to the respective clearing result.",
"type": "object"
}
},
"type": "object"
},
"Eid": {
"properties": {
"eid": {
"type": "string",
"description": "Output only. The EID",
"readOnly": true
}
},
"type": "object",
"description": "EID information for each eUICC chip."
},
"EidInfo": {
"description": "Information related to the EIDs of the device.",
"properties": {
"eids": {
"items": {
"$ref": "#/$defs/Eid"
},
"type": "array",
"readOnly": true,
"description": "Output only. EID information for each eUICC chip."
}
},
"type": "object"
},
"EsimCommandStatus": {
"description": "Status and error details (if present) of an ADD_ESIM or REMOVE_ESIM command.",
"type": "object",
"properties": {
"internalErrorDetails": {
"$ref": "#/$defs/InternalErrorDetails",
"description": "Output only. Details of the error if the status is set to INTERNAL_ERROR."
},
"status": {
"description": "Output only. Status of an ADD_ESIM or REMOVE_ESIM command.",
"type": "string",
"enum": [
"STATUS_UNSPECIFIED",
"SUCCESS",
"IN_PROGRESS",
"PENDING_USER_ACTION",
"ERROR_SETUP_IN_PROGRESS",
"ERROR_USER_DENIED",
"INTERNAL_ERROR",
"ERROR_ICC_ID_NOT_FOUND",
"ERROR_MULTIPLE_ACTIVE_ESIMS_NO_AVAILABLE_SLOT"
],
"readOnly": true
},
"esimInfo": {
"$ref": "#/$defs/EsimInfo",
"description": "Output only. Information about the eSIM added or removed. This is populated only when the eSIM operation status is SUCCESS."
}
}
},
"EsimInfo": {
"description": "Details of the eSIM added or removed.",
"type": "object",
"properties": {
"iccId": {
"description": "Output only. ICC ID of the eSIM.",
"readOnly": true,
"type": "string"
}
}
},
"InternalErrorDetails": {
"description": "Internal error details if present for the ADD_ESIM or REMOVE_ESIM command.",
"type": "object",
"properties": {
"operationCode": {
"format": "int64",
"readOnly": true,
"type": "string",
"description": "Output only. Integer representation of the operation code as specified here (https://developer.android.com/reference/android/telephony/euicc/EuiccManager#EXTRA_EMBEDDED_SUBSCRIPTION_DETAILED_CODE). See operation_code_detail for more details."
},
"errorCode": {
"format": "int64",
"type": "string",
"description": "Output only. Integer representation of the error code as specified here (https://developer.android.com/reference/android/telephony/euicc/EuiccManager#EXTRA_EMBEDDED_SUBSCRIPTION_DETAILED_CODE). See also, OPERATION_SMDX_SUBJECT_REASON_CODE. See error_code_detail for more details.",
"readOnly": true
},
"errorCodeDetail": {
"description": "Output only. The error code detail corresponding to the error_code.",
"readOnly": true,
"type": "string",
"enum": [
"ERROR_CODE_DETAIL_UNSPECIFIED",
"ERROR_TIME_OUT",
"ERROR_EUICC_MISSING",
"ERROR_UNSUPPORTED_VERSION",
"ERROR_ADDRESS_MISSING",
"ERROR_INVALID_CONFIRMATION_CODE",
"ERROR_CERTIFICATE_ERROR",
"ERROR_NO_PROFILES_AVAILABLE",
"ERROR_CONNECTION_ERROR",
"ERROR_INVALID_RESPONSE",
"ERROR_CARRIER_LOCKED",
"ERROR_DISALLOWED_BY_PPR",
"ERROR_INVALID_ACTIVATION_CODE",
"ERROR_INCOMPATIBLE_CARRIER",
"ERROR_OPERATION_BUSY",
"ERROR_INSTALL_PROFILE",
"ERROR_EUICC_INSUFFICIENT_MEMORY",
"ERROR_INVALID_PORT",
"ERROR_SIM_MISSING"
]
},
"operationCodeDetail": {
"description": "Output only. The operation code detail corresponding to the operation_code.",
"readOnly": true,
"enum": [
"OPERATION_CODE_DETAIL_UNSPECIFIED",
"OPERATION_SYSTEM",
"OPERATION_SIM_SLOT",
"OPERATION_EUICC_CARD",
"OPERATION_SMDX",
"OPERATION_SWITCH",
"OPERATION_DOWNLOAD",
"OPERATION_METADATA",
"OPERATION_EUICC_GSMA",
"OPERATION_APDU",
"OPERATION_SMDX_SUBJECT_REASON_CODE",
"OPERATION_HTTP"
],
"type": "string"
}
}
},
"PerAppResult": {
"properties": {
"clearingResult": {
"enum": [
"CLEARING_RESULT_UNSPECIFIED",
"SUCCESS",
"APP_NOT_FOUND",
"APP_PROTECTED",
"API_LEVEL"
],
"type": "string",
"description": "The result of an attempt to clear the data of a single app."
}
},
"type": "object",
"description": "The result of an attempt to clear the data of a single app."
},
"RemoveEsimParams": {
"properties": {
"iccId": {
"type": "string",
"description": "Required. ICC ID of the eSIM profile to be deleted."
}
},
"type": "object",
"description": "Parameters associated with the REMOVE_ESIM command to remove an eSIM profile from the device."
},
"RequestDeviceInfoParams": {
"description": "Parameters associated with the REQUEST_DEVICE_INFO command to get device related information.",
"properties": {
"deviceInfo": {
"enum": [
"DEVICE_INFO_UNSPECIFIED",
"EID"
],
"type": "string",
"description": "Required. Type of device information to be requested."
}
},
"type": "object"
},
"RequestDeviceInfoStatus": {
"type": "object",
"description": "Status of the REQUEST_DEVICE_INFO command.",
"properties": {
"eidInfo": {
"$ref": "#/$defs/EidInfo",
"description": "Information related to the EIDs of the device."
},
"status": {
"enum": [
"STATUS_UNSPECIFIED",
"SUCCEEDED",
"PENDING_USER_ACTION",
"USER_DECLINED",
"UNSUPPORTED"
],
"description": "Output only. Status of a REQUEST_DEVICE_INFO command.",
"type": "string",
"readOnly": true
}
}
},
"StartLostModeParams": {
"description": "Parameters associated with the START_LOST_MODE command to put the device into lost mode. At least one of the parameters, not including the organization name, must be provided in order for the device to be put into lost mode.",
"properties": {
"lostPhoneNumber": {
"$ref": "#/$defs/UserFacingMessage",
"description": "The phone number that will be called when the device is in lost mode and the call owner button is tapped."
},
"lostOrganization": {
"$ref": "#/$defs/UserFacingMessage",
"description": "The organization name displayed to the user when the device is in lost mode."
},
"lostStreetAddress": {
"$ref": "#/$defs/UserFacingMessage",
"description": "The street address displayed to the user when the device is in lost mode."
},
"lostEmailAddress": {
"description": "The email address displayed to the user when the device is in lost mode.",
"type": "string"
},
"lostMessage": {
"$ref": "#/$defs/UserFacingMessage",
"description": "The message displayed to the user when the device is in lost mode."
}
},
"type": "object"
},
"StartLostModeStatus": {
"properties": {
"status": {
"type": "string",
"description": "The status. See StartLostModeStatus.",
"enum": [
"STATUS_UNSPECIFIED",
"SUCCESS",
"RESET_PASSWORD_RECENTLY",
"USER_EXIT_LOST_MODE_RECENTLY",
"ALREADY_IN_LOST_MODE"
]
}
},
"type": "object",
"description": "Status of the START_LOST_MODE command to put the device into lost mode."
},
"StopLostModeParams": {
"properties": {},
"type": "object",
"description": "Parameters associated with the STOP_LOST_MODE command to take the device out of lost mode."
},
"StopLostModeStatus": {
"type": "object",
"description": "Status of the STOP_LOST_MODE command to take the device out of lost mode.",
"properties": {
"status": {
"description": "The status. See StopLostModeStatus.",
"type": "string",
"enum": [
"STATUS_UNSPECIFIED",
"SUCCESS",
"NOT_IN_LOST_MODE"
]
}
}
},
"UserFacingMessage": {
"description": "Provides a user-facing message with locale info. The maximum message length is 4096 characters.",
"properties": {
"defaultMessage": {
"description": "The default message displayed if no localized message is specified or the user's locale doesn't match with any of the localized messages. A default message must be provided if any localized messages are provided.",
"type": "string"
},
"localizedMessages": {
"description": "A map containing pairs, where locale is a well-formed BCP 47 language (https://www.w3.org/International/articles/language-tags/) code, such as en-US, es-ES, or fr.",
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object"
},
"WipeParams": {
"type": "object",
"properties": {
"wipeDataFlags": {
"type": "array",
"description": "Optional. Flags to determine what data to wipe.",
"items": {
"enum": [
"WIPE_DATA_FLAG_UNSPECIFIED",
"PRESERVE_RESET_PROTECTION_DATA",
"WIPE_EXTERNAL_STORAGE",
"WIPE_ESIMS"
],
"type": "string"
}
},
"wipeReason": {
"$ref": "#/$defs/UserFacingMessage",
"description": "Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is 200 characters."
}
},
"description": "Parameters associated with the WIPE command to wipe the device."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-android-command"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.