post
https://{yourinstance}.makaira.io/productfeed
Create a new product feed
Creates a new product feed configuration.
Requires authentication.
Request
POST /productfeed
Headers
| Header | Value |
|---|---|
Authorization | Bearer <token> |
Content-Type | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Feed name. Must be unique. Special characters are replaced with underscores in URLs. |
stream | number | Yes | Stream ID that defines which products are included in this feed. |
contentType | string | Yes | Output format (e.g. csv, xml, json). |
separator | string | No | Field separator for CSV feeds. |
wrapping | string | No | Field wrapping character for CSV feeds. |
token | string | No | Authentication token required to access the generated feed URL. |
parents | boolean | No | Include parent product groups. |
children | boolean | No | Include child variants. |
parentsSingleOnly | boolean | No | Only include parent groups with a single variant. |
innerStream | number | No | Secondary stream for inner-loop product filtering. |
header | string | No | Header template for the feed output. |
footer | string | No | Footer template for the feed output. |
lineSeparator | string | No | Line separator between feed entries. |
content | string | No | Row template for each product in the feed. |
Example Request
{
"name": "Google Shopping Feed",
"stream": 1,
"contentType": "csv",
"separator": ",",
"wrapping": "\"",
"children": true
}Response
Returns the created product feed object.
200OK

