For the complete documentation index, see llms.txt. This page is also available as Markdown.

Partially update an attribute mapper

Updates one or more fields of a Google Merchant attribute mapper. Only the fields included in the request body are changed; everything left out keeps its current value.

When the change affects output_key or feed_adapter, the resulting pair must stay unique across all mappers, or the request is rejected with 406 Not Acceptable.

patch
/google_merchant_attribute_mapper/{id}/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Path parameters
idintegerRequired

The unique identifier of the Google Merchant attribute mapper.

Body

The body of a Google Merchant attribute mapper partial update request. Only the fields included in the body are changed; every field is optional.

output_keystring · max: 255Optional

The name of the feed field this mapper produces. Omitting it keeps the current value.

feed_adapterinteger · nullableOptional

The identifier of the feed adapter to scope the mapper to, or null for a global mapper. Omitting it keeps the current value.

Responses
200

The updated attribute mapper.

application/json

A Google Merchant attribute mapper — the rule set that computes one field of a Google Merchant Center feed from a source product.

idintegerRead-onlyOptional

The unique identifier of the mapper.

output_keystring · max: 255Optional

The name of the feed field this mapper produces (e.g. title, gtin).

feed_adapterinteger · nullableOptional

The identifier of the feed adapter this mapper is scoped to, or null for a global mapper.

patch/google_merchant_attribute_mapper/{id}/
PATCH /api/v1/remote/1/google_merchant_attribute_mapper/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "output_key": "gtin"
}
{
  "id": 12,
  "output_key": "gtin",
  "feed_adapter": 3,
  "rule_set": [
    {
      "rule": {
        "rule_type": "attributeexists",
        "rule_kwargs": {
          "attribute": "barcode"
        }
      },
      "action": {
        "action_type": "attrgetter",
        "action_kwargs": {
          "attribute": "barcode"
        }
      }
    }
  ]
}

Last updated

Was this helpful?