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 2024-10-31 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 2024-10-31 UTC."],[[["After setup, the Android Over The Air API allows you to send requests to manage deployments, including listing, retrieving, and updating them."],["Code samples are provided to demonstrate how to interact with the API using simple requests for common operations."],["The reference documentation offers a complete list of available methods for more advanced interactions with the Android Over The Air API."],["You can retrieve a specific deployment or update an existing one using the provided protocols and code samples."],["The API supports complex query parameters in GET requests, like retrieving chart data with custom resolutions and chart line limits."]]],["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"]]