Utwórz szablon produktowy
POST
/api/v1/PimTemplates
const url = 'https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v1/PimTemplates';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
id
integer format: int64
name
string
body
string
lang
string
isSystem
boolean
tableTemplateType
string
settings
object
pdfHeight
string
pdfWidth
string
pdfMarginTop
string
pdfMarginBottom
string
pdfMarginLeftRight
string
type
string
sections
object
product
object
body
string
enabled
boolean
orderBy
string
groupBy
string
parameter
object
body
string
enabled
boolean
orderBy
string
groupBy
string
relation
object
body
string
enabled
boolean
orderBy
string
groupBy
string
source
object
body
string
enabled
boolean
orderBy
string
groupBy
string
variant
object
body
string
enabled
boolean
orderBy
string
groupBy
string
bundle
object
body
string
enabled
boolean
orderBy
string
groupBy
string
manufacturer
object
body
string
enabled
boolean
orderBy
string
groupBy
string
supplier
object
body
string
enabled
boolean
orderBy
string
groupBy
string
category
object
body
string
enabled
boolean
orderBy
string
groupBy
string
stats
object
body
string
enabled
boolean
orderBy
string
groupBy
string
ownedTags
Array<object>
object
name
string
value
string
modifiers
Array<object>
object
tag
wymagane
string
Example
[waluta]operator
wymagane
string
Example
replace_ifcondition
wymagane
string
Example
USDnewValue
wymagane
string
Example
PLNposition
integer format: int64
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
integer format: int64
Examplegenerated
1
