Update a case. Only some fields can be updated.
EXAMPLES:
cURL:
case="projects/some-project/cases/43595344"
curl \
--request PATCH \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
--header "Content-Type: application/json" \
--data '{
"priority": "P1"
}' \
"https://cloudsupport.googleapis.com/v2/$case?updateMask=priority"
Python:
import googleapiclient.discovery
apiVersion = "v2"
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport",
version=apiVersion,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={apiVersion}",
)
request = supportApiService.cases().patch(
name="projects/some-project/cases/43112854",
body={
"displayName": "This is Now a New Title",
"priority": "P2",
},
)
print(request.execute())
HTTP request
PATCH https://cloudsupport.googleapis.com/v2beta/{case.name=*/*/cases/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
case. |
The resource name for the case. |
Query parameters
Parameters | |
---|---|
update |
A list of attributes of the case that should be updated. Supported values are Be careful - if you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for |
Request body
The request body contains an instance of Case
.
Response body
If successful, the response body contains an instance of Case
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloudsupport
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.