Przejdź do głównej zawartości

Zaktualizuj modyfikator tagu

PUT
/api/v2/Modifiers/{modifierId}
curl --request PUT \
--url https://twoja-instancja-renderer-api.enterprise.sellrocket.pl/api/v2/Modifiers/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "tag": "[waluta]", "operator": "replace_if", "condition": "USD", "newValue": "PLN" }'
modifierId
wymagane
integer format: int64
Typ treściapplication/json
object
tag
string
nullable
Example
[waluta]
operator
string
nullable
Dozwolone wartości: replace_if replace_if_diff no_operator
Example
replace_if
condition
string
nullable
Example
USD
newValue
string
nullable
Example
PLN

Success

Typ treściapplication/json
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
Examplegenerated
{
"id": 1,
"parentId": 1,
"tag": "example",
"operator": "example",
"condition": "example",
"newValue": "example",
"position": 1,
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z"
}