Duplicates one or more product feeds by ID. Each duplicate is created with an auto-generated name based on the original.
Requires the productfeed:write or productfeeds.write permission.
Request
POST /productfeed/duplicate
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | Array of product feed IDs to duplicate. All IDs must exist or the entire request is rejected. |
Example Request
POST /productfeed/duplicate
Authorization: Bearer <token>
Content-Type: application/json
{
"ids": [42, 43]
}Response
Returns a JSON object containing the list of newly created feed duplicates.
Response Body
| Field | Type | Description |
|---|---|---|
ok | boolean | true if all duplicates were created successfully. |
duplicates | array | Array of newly created product feed objects. |
Example Response
{
"ok": true,
"duplicates": [
{
"id": 100,
"name": "My_Feed_copy",
"user": "[email protected]"
},
{
"id": 101,
"name": "Another_Feed_copy",
"user": "[email protected]"
}
]
}Error Responses
| Status | Description |
|---|---|
404 | One or more feed IDs in ids could not be found. No duplicates are created. |

