Method: accounts.cssProductInputs.patch

  • This page details how to update existing CSS Product inputs in your CSS Center account using the CSS API.

  • The HTTP request uses the PATCH method with a specific URL structure, including path parameters to identify the CSS Product input to modify.

  • The updateMask query parameter is used to specify which attributes of the CSS product should be updated, and omitting the update mask updates only populated fields.

  • The request and response bodies both use the CssProductInput format, as detailed in the linked documentation.

  • Authorization for this API requires the https://www.googleapis.com/auth/content OAuth scope.

Updates the existing Css Product input in your CSS Center account.

After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed Css Product can be retrieved.

HTTP request

PATCH https://css.googleapis.com/v1/{cssProductInput.name=accounts/*/cssProductInputs/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
cssProductInput.name

string

Identifier. The name of the CSS Product input. Format: accounts/{account}/cssProductInputs/{cssProductInput}, where the last section cssProductInput consists of 3 parts: contentLanguage~feedLabel~offerId. Example: accounts/123/cssProductInputs/de~DE~rawProvidedId123

Query parameters

Parameters
updateMask

string (FieldMask format)

The list of CSS product attributes to be updated.

If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value).

Attributes specified in the update mask without a value specified in the body will be deleted from the CSS product.

Update mask can only be specified for top level fields in attributes and custom attributes.

To specify the update mask for custom attributes you need to add the custom_attribute. prefix.

Providing special "*" value for full CSS product replacement is not supported.

Request body

The request body contains an instance of CssProductInput.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/content

For more information, see the OAuth 2.0 Overview.