Method: networks.hubs.patch

  • Updates an existing Hub using the HTTP PATCH method.

  • The request must specify the Hub's identifier in the URL path and can optionally include a field mask to control which fields are updated.

  • The request body should contain the updated Hub data in JSON format, adhering to the Hub resource schema.

  • A successful response will return the updated Hub resource in JSON format.

Updates a Hub.

HTTP request

PATCH https://middlemileoptimization.googleapis.com/v1/{hub.name=networks/*/hubs/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
hub.name

string

Identifier. Cannot be updated.

Query parameters

Parameters
updateMask

string (FieldMask format)

Optional. 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 Hub.

Response body

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