Method: deployments.update
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
PUT https://androidovertheair.googleapis.com/v1/{name=deployments/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Relative resource name. For example: "deployments/deployment_x"
|
Request body
The request body contains data with the following structure:
JSON representation |
{
"deployment": {
object (Deployment )
},
"versionTag": {
object (VersionTag )
}
} |
Fields |
deployment |
object (Deployment )
Required. Only the deployment description can be updated.
|
versionTag |
object (VersionTag )
Required. The deployment to be updated should match this version. If another client updates the existing instance concurrently, this update operation will fail.
|
Response body
If successful, the response body contains an instance of Deployment
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/android_partner_over_the_air
For more information, see the OAuth 2.0 Overview.
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."],[[["\u003cp\u003eThis documentation outlines how to update a deployment using a \u003ccode\u003ePUT\u003c/code\u003e request to a specific endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the deployment details and a version tag for concurrency control.\u003c/p\u003e\n"],["\u003cp\u003eA successful update will return the updated deployment object in the response.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/android_partner_over_the_air\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details how to update a deployment using a `PUT` HTTP request to `https://androidovertheair.googleapis.com/v1/{name=deployments/*}`. The request requires a `name` path parameter representing the deployment's resource name. The request body must contain a `deployment` object (for updating its description) and a `versionTag` object (for concurrency control). A successful request returns a `Deployment` object in the response body. The request requires the `https://www.googleapis.com/auth/android_partner_over_the_air` OAuth scope.\n"],null,["# Method: deployments.update\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates a [deployment](/android/over-the-air/reference/rest/v1/deployments#Deployment).\n\n### HTTP request\n\n`PUT https://androidovertheair.googleapis.com/v1/{name=deployments/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------|\n| `name` | `string` Relative resource name. For example: \"deployments/deployment_x\" |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deployment\": { object (/android/over-the-air/reference/rest/v1/deployments#Deployment) }, \"versionTag\": { object (/android/over-the-air/reference/rest/v1/VersionTag) } } ``` |\n\n| Fields ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deployment` | `object (`[Deployment](/android/over-the-air/reference/rest/v1/deployments#Deployment)`)` Required. Only the deployment description can be updated. |\n| `versionTag` | `object (`[VersionTag](/android/over-the-air/reference/rest/v1/VersionTag)`)` Required. The deployment to be updated should match this version. If another client updates the existing instance concurrently, this update operation will fail. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Deployment](/android/over-the-air/reference/rest/v1/deployments#Deployment).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/android_partner_over_the_air`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]