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

Retrieve a specific deployment

To retrieve a specific deployment from the list, use the following code:

Protocol

GET /v1/deployment id 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