Method: projects.locations.workspaces.shipments.patch

Updates a shipment.

HTTP request

PATCH https://cloudoptimization.googleapis.com/v1/{shipment.name}

Path parameters

Parameters
shipment.name

string

The resource name of the shipment. This is a unique identifier. Format: projects/{project}/locations/{location}/workspaces/{workspace}/shipments/{shipment} This field would be ignored while calling OptimizeTours and BatchOptimizeTours methods.

Query parameters

Parameters
updateMask

string (FieldMask format)

The list of fields to update.

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

Request body

The request body contains an instance of Shipment.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.