Przejdź do głównej zawartości

Zaktualizuj szablon produktowy

PUT
/api/v1/PimTemplates/{templateId}
curl --request PUT \
--url https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v1/PimTemplates/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "body": "example", "lang": "example", "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": [ { "id": 1, "name": "example", "value": "example" } ], "modifiers": [ { "tag": "[waluta]", "operator": "replace_if", "condition": "USD", "newValue": "PLN", "position": 1 } ] }'
templateId
wymagane
integer format: int64
Typ treściapplication/json
object
name
string
nullable
body
string
nullable
lang
string
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
id
integer format: int64
nullable
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
object
id
integer format: int64
name
string
nullable
body
string
nullable
lang
string
nullable
tableTemplateType
string
nullable
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
scope
string
Dozwolone wartości: Orders PIM
settings
object
id
integer format: int64
pdfHeight
string
nullable
pdfWidth
string
nullable
pdfMarginTop
string
nullable
pdfMarginBottom
string
nullable
pdfMarginLeftRight
string
nullable
type
string
Dozwolone wartości: CSV TEXT PDF XML
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
sections
object
product
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
parameter
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
relation
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
source
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
variant
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
bundle
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
manufacturer
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
supplier
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
category
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
stats
object
name
string
nullable
body
string
nullable
enabled
boolean
orderBy
string
nullable
groupBy
string
nullable
ownedTags
Array<object>
nullable
object
id
integer format: int64
name
string
nullable
value
string
nullable
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
modifiers
Array<object>
nullable
object
id
integer format: int64
parentId
integer format: int64
tag
string
nullable
operator
string
nullable
condition
string
nullable
newValue
string
nullable
position
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
nullable
Example
{
"scope": "Orders",
"settings": {
"type": "CSV"
}
}