Przejdź do głównej zawartości

Utwórz szablon produktowy

POST
/api/v1/PimTemplates
curl --request POST \
--url https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v1/PimTemplates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": 1, "name": "example", "body": "example", "lang": "example", "isSystem": true, "tableTemplateType": "example", "settings": { "pdfHeight": "example", "pdfWidth": "example", "pdfMarginTop": "example", "pdfMarginBottom": "example", "pdfMarginLeftRight": "example", "type": "CSV" }, "sections": { "product": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "parameter": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "relation": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "source": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "variant": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "bundle": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "manufacturer": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "supplier": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "category": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" }, "stats": { "body": "example", "enabled": true, "orderBy": "example", "groupBy": "example" } }, "ownedTags": [ { "name": "example", "value": "example" } ], "modifiers": [ { "tag": "[waluta]", "operator": "replace_if", "condition": "USD", "newValue": "PLN", "position": 1 } ] }'

Tworzy szablon dla danych produktowych z katalogu PIM, np. do eksportu produktów do CSV.

Typ treściapplication/json
object
id
integer format: int64
nullable
name
string
nullable
body
string
nullable
lang
string
nullable
isSystem
boolean
nullable
tableTemplateType
string
nullable
settings
object
pdfHeight
string
nullable
pdfWidth
string
nullable
pdfMarginTop
string
nullable
pdfMarginBottom
string
nullable
pdfMarginLeftRight
string
nullable
type
string
Dozwolone wartości: CSV TEXT PDF XML
sections
object
product
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
parameter
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
relation
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
source
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
variant
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
bundle
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
manufacturer
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
supplier
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
category
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
stats
object
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
ownedTags
Array<object>
nullable
object
name
string
nullable
value
string
nullable
modifiers
Array<object>
nullable
object
tag
wymagane
string
Example
[waluta]
operator
wymagane
string
Dozwolone wartości: replace_if replace_if_diff no_operator
Example
replace_if
condition
wymagane
string
Example
USD
newValue
wymagane
string
Example
PLN
position
integer format: int64
nullable

Success

Typ treściapplication/json
integer format: int64
Examplegenerated
1