Method: apps.services.patch

Updates the configuration of the specified service.

HTTP request

PATCH https://appengine.googleapis.com/v1/{name=apps/*/services/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Name of the resource to update. Example: apps/myapp/services/default.

Authorization requires the following IAM permission on the specified resource name:

  • appengine.services.update

Query parameters

Parameters
updateMask

string (FieldMask format)

Required. Standard field mask for the set of fields to be updated.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

migrateTraffic

boolean

Set to true to gradually shift traffic to one or more versions that you specify. By default, traffic is shifted immediately. For gradual traffic migration, the target versions must be located within instances that are configured for both warmup requests and automatic scaling. You must specify the shardBy field in the Service resource. Gradual traffic migration is not supported in the App Engine flexible environment. For examples, see Migrating and Splitting Traffic.

Request body

The request body contains an instance of Service.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.