Send Requests
Stay organized with collections
Save and categorize content based on your preferences.
After you've set everything up, you can send requests to the Android Over The Air API.
The following code samples demonstrate how to send a few simple requests:
- Get a list of deployments.
- Retrieve a specific deployment from the list.
- Update a specific deployment.
For a full list of methods, see the reference documentation.
Get a list of deployments
To get a list of deployments, use the following code:
Protocol
GET /v1/deployments HTTP/1.1
Host: androidovertheair.googleapis.com
Update a deployment
To update a deployment, use the following code:
Protocol
PUT /v1/deployment id HTTP/1.1
Host: androidovertheair.googleapis.com
{
"deployment": updated_deployment,
"versionTag": {
{
"version": version
}
},
}
Get a chart
This example shows how complex query parameters may be provided in GET
requests.
To get a chart with
24 hour resolution and 5 chart lines, use the following code:
Protocol
GET /v1/deployment id/groups/group id/charts/chart id?options.resolution=RESOLUTION_TWENTY_FOUR_HOURS&options.maxChartLines=5 HTTP/1.1
Host: androidovertheair.googleapis.com
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eAfter setup, the Android Over The Air API allows you to send requests to manage deployments, including listing, retrieving, and updating them.\u003c/p\u003e\n"],["\u003cp\u003eCode samples are provided to demonstrate how to interact with the API using simple requests for common operations.\u003c/p\u003e\n"],["\u003cp\u003eThe reference documentation offers a complete list of available methods for more advanced interactions with the Android Over The Air API.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve a specific deployment or update an existing one using the provided protocols and code samples.\u003c/p\u003e\n"],["\u003cp\u003eThe API supports complex query parameters in GET requests, like retrieving chart data with custom resolutions and chart line limits.\u003c/p\u003e\n"]]],["The Android Over The Air API allows sending requests to manage deployments. Key actions include: retrieving a list of deployments using `GET /v1/deployments`, fetching a specific deployment with `GET /v1/deployment id`, and updating a deployment via `PUT /v1/deployment id` with deployment details and version. Complex queries can retrieve a chart using `GET /v1/deployment id/groups/group id/charts/chart id` specifying resolution and the amount of lines.\n"],null,["# Send Requests\n\nAfter you've set everything up, you can send requests to the Android Over The Air API.\n\nThe following code samples demonstrate how to send a few simple requests:\n\n- Get a list of deployments.\n- Retrieve a specific deployment from the list.\n- Update a specific deployment.\n\nFor a full list of methods, see the [reference documentation](/android/over-the-air/reference/rest).\n\nGet a list of deployments\n-------------------------\n\nTo [get a list of deployments](/android/over-the-air/reference/rest/v1/deployments/list), use the following code: \n\nProtocol\n--------\n\n```http\nGET /v1/deployments HTTP/1.1\nHost: androidovertheair.googleapis.com\n```\n\nRetrieve a specific deployment\n------------------------------\n\nTo [retrieve a specific deployment from the list](/android/over-the-air/reference/rest/v1/deployments/get), use the following code: \n\nProtocol\n--------\n\n```text\nGET /v1/deployment id HTTP/1.1\nHost: androidovertheair.googleapis.com\n```\n\nUpdate a deployment\n-------------------\n\nTo [update a deployment](/android/over-the-air/reference/rest/v1/deployments/update), use the following code: \n\nProtocol\n--------\n\n```scdoc\nPUT /v1/deployment id HTTP/1.1\nHost: androidovertheair.googleapis.com\n{\n \"deployment\": updated_deployment,\n \"versionTag\": {\n {\n \"version\": version\n }\n },\n}\n```\n\nGet a chart\n-----------\n\n\nThis example shows how complex query parameters may be provided in `GET` requests.\n\n\nTo [get a chart](/android/over-the-air/reference/rest/v1/deployments.groups.charts/get) with\n24 hour resolution and 5 chart lines, use the following code: \n\nProtocol\n--------\n\n```scdoc\nGET /v1/deployment id/groups/group id/charts/chart id?options.resolution=RESOLUTION_TWENTY_FOUR_HOURS&options.maxChartLines=5 HTTP/1.1\nHost: androidovertheair.googleapis.com\n```"]]