Zastąp tagi obiektu
POST
/api/v3/Tags/{target}/replace
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Tags/example/replace';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"tags":["example"],"useRegenerateScriptsForUserEvent":true}'};
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-smerp-api.enterprise.sellrocket.pl/api/v3/Tags/example/replace \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tags": [ "example" ], "useRegenerateScriptsForUserEvent": true }'Ustawia dokładnie przekazaną listę tagów – dodaje brakujące i usuwa nadmiarowe.
Substitutes the list of tags - adds new and removes missing.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”target
wymagane
string
udpl of the target
e.g. udpl://smerp-api/api/v1/UserEvents/343
Treść żądania
Dział zatytułowany „Treść żądania”Example
{ "tags": [ "startAsync202:udpl://ajs-api/api/v1/automaticScripts/start/343:post" ] }
object
tags
Array<string>
useRegenerateScriptsForUserEvent
boolean
Examplegenerated
{ "tags": [ "example" ], "useRegenerateScriptsForUserEvent": true}object
tags
Array<string>
useRegenerateScriptsForUserEvent
boolean
Examplegenerated
{ "tags": [ "example" ], "useRegenerateScriptsForUserEvent": true}object
tags
Array<string>
useRegenerateScriptsForUserEvent
boolean
Examplegenerated
{ "tags": [ "example" ], "useRegenerateScriptsForUserEvent": true}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Bad Request
Typ treściapplication/json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
