Partially update an adapter
Updates only the supplied fields; omitted fields are unchanged. The (name, adapter_type) uniqueness rule applies.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product feed adapter.
Fields for creating or updating a product feed adapter.
A human-readable name for this adapter. Together with adapter_type, must be unique.
Main Google FeedAdapter-specific configuration JSON. See the Adapter Configuration (conf) section. Paths in attribute_params and nested_tags[].attribute containing dangerous segments (delete, update, save, create, bulk_create, bulk_update, objects) are rejected with a 400 validation error.
{"feed_filename":"google/feed.xml"}The adapter implementation used to generate the feed. See the Adapter Types table in the Product Feed Adapters section for descriptions.
Whether the adapter participates in scheduled feed generation.
trueWhen true, the adapter is excluded from recurring scheduled runs. Defaults to false.
falseExample: falseTabular file (XLS, XLSX, or CSV) that limits which products are included in the feed, encoded as a data URI: data:<mime-type>;base64,<content> (e.g. data:application/vnd.ms-excel;base64,UEsDB...). The file must contain at least one column named sku or base_code; any other layout is rejected with a 400 validation error. Omit or send null to include all eligible products.
The adapter was partially updated.
A product feed adapter record.
The unique identifier of the adapter. Assigned by the server.
A human-readable name for this adapter. Together with adapter_type, must be unique.
Main Google FeedAdapter-specific configuration. See the Adapter Configuration (conf) section for the recognized top-level keys.
{"feed_filename":"google/feed.xml","schema_data":null}The adapter implementation used to generate the feed. See the Adapter Types table in the Product Feed Adapters section for descriptions.
Whether the adapter is included in scheduled feed generation runs. Inactive adapters can still be triggered on demand.
trueWhen true, the adapter is used only once and excluded from recurring scheduled runs. It can still be triggered manually.
falseThe public URL of the most recently generated feed file, derived from conf.feed_filename and the AWS_S3_BUCKET_URL_TEMPLATE environment variable. null when conf.feed_filename is absent.
https://mybucket.s3.amazonaws.com/google/feed.xmlURL of the stored product filter file, or null when no filter file is configured. When a filter file is set, only products whose sku or base_code appears in the file are included in the generated feed.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No product feed adapter exists with the given identifier.
The request is well-formed but violates a business rule. The response body carries a stable error_code identifying the rule.
Codes raised by these endpoints:
google_merchant_feed_adapter_100_1— the(name, adapter_type)pair already exists; each combination must be unique.google_merchant_feed_adapter_100_2— a feed generation task is already running for this adapter; only one may run at a time.
PATCH /api/v1/remote/1/product_merchant_feeds/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 148
{
"name": "Main Google Feed",
"conf": {
"feed_filename": "google/feed.xml"
},
"adapter_type": "base",
"is_active": true,
"is_one_time": false,
"filter_file": null
}{
"pk": 1,
"name": "Main Google Feed",
"conf": {
"feed_filename": "google/feed.xml",
"schema_data": null
},
"adapter_type": "base",
"is_active": true,
"is_one_time": false,
"file_url": "https://mybucket.s3.amazonaws.com/google/feed.xml",
"filter_file": null
}Last updated
Was this helpful?

