- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Adds the specified CatalogAttribute
to the AttributesConfig
.
If the CatalogAttribute
to add already exists, an ALREADY_EXISTS error is returned.
HTTP request
POST https://retail.googleapis.com/v2beta/{attributesConfig=projects/*/locations/*/catalogs/*/attributesConfig}:addCatalogAttribute
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
attributesConfig |
Required. Full AttributesConfig resource name. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"catalogAttribute": {
object ( |
Fields | |
---|---|
catalogAttribute |
Required. The |
Response body
If successful, the response body contains an instance of AttributesConfig
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the attributesConfig
resource:
retail.attributesConfigs.addCatalogAttribute
For more information, see the IAM documentation.