Update an attribute mapper
Fully updates a Google Merchant attribute mapper.
output_key and rule_set are both required. The resulting (output_key, feed_adapter) pair must stay unique across all mappers; a pair that belongs to another mapper is rejected with 406 Not Acceptable.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the Google Merchant attribute mapper.
The body of a Google Merchant attribute mapper create or full update request.
The name of the feed field this mapper produces. Non-blank.
The identifier of the feed adapter to scope the mapper to. Optional; omit or send null for a global mapper. Must reference an existing feed adapter when given.
The updated attribute mapper.
A Google Merchant attribute mapper — the rule set that computes one field of a Google Merchant Center feed from a source product.
The unique identifier of the mapper.
The name of the feed field this mapper produces (e.g. title, gtin).
The identifier of the feed adapter this mapper is scoped to, or null for a global mapper.
The request contains invalid or missing data — for example a missing output_key or rule_set, or a feed_adapter that does not reference an existing feed adapter. The response names the field the complaint belongs to.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No attribute mapper exists with the given identifier.
The request is well-formed but a mapper with the same (output_key, feed_adapter) pair already exists.
PUT /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: 208
{
"output_key": "gtin",
"feed_adapter": 3,
"rule_set": [
{
"rule": {
"rule_type": "attributeexists",
"rule_kwargs": {
"attribute": "barcode"
}
},
"action": {
"action_type": "attrgetter",
"action_kwargs": {
"attribute": "barcode"
}
}
}
]
}{
"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?

