Method: curators.dataSegments.patch

  • This page details how to update a data segment using the PATCH method to the specified URL.

  • The request requires a dataSegment.name path parameter to identify the specific data segment to update.

  • An optional updateMask query parameter can be used to specify which fields within the data segment should be updated.

  • The request and response bodies contain instances of a DataSegment object.

  • The request requires the https://www.googleapis.com/auth/authorized-buyers-marketplace OAuth scope for authorization.

Updates a data segment.

HTTP request

PATCH https://authorizedbuyersmarketplace.googleapis.com/v1beta/{dataSegment.name=curators/*/dataSegments/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
dataSegment.name

string

Immutable. Identifier. The unique identifier for the data segment. Account ID corresponds to the account ID that created the segment. v1alpha format: buyers/{accountId}/dataSegments/{curatorDataSegmentId} v1beta format: curators/{curatorAccountId}/dataSegments/{curatorDataSegmentId}

Query parameters

Parameters
updateMask

string (FieldMask format)

Optional. List of fields to be updated. If empty or unspecified, the service will update all fields populated in the update request excluding the output only fields and primitive fields with default value. Note that explicit field mask is required in order to reset a primitive field back to its default value, for example, false for boolean fields, 0 for integer fields. A special field mask consisting of a single path "*" can be used to indicate full replacement(the equivalent of PUT method), updatable fields unset or unspecified in the input will be cleared or set to default value. Output only fields will be ignored regardless of the value of updateMask.

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 DataSegment.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/authorized-buyers-marketplace