Method: projects.locations.workspaces.shipments.create

Creates a shipment.

HTTP request

POST https://cloudoptimization.googleapis.com/v1/{parent}/shipments

Path parameters

Parameters
parent

string

Required. The parent resource where this shipment will be created. Format: "projects/{project}/locations/{location}/workspaces/{workspace}/shipments/{shipment}"

Query parameters

Parameters
shipmentId

string

The ID to use for the shipment, which will become the final component of the shipment's resource name. If not provided, an auto-generated ID is used.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. If this field is empty, a unique ID is generated by the server.

Request body

The request body contains an instance of Shipment.

Response body

If successful, the response body contains a newly created instance of Shipment.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.