Dodaj tagi do obiektu
POST
/api/v3/Tags/{target}/add
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Tags/example/add';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"tags":["example"]}'};
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/add \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tags": [ "example" ] }'Dopisuje tagi, nie usuwając dotychczasowych.
Adds new tags to the target but does not remove the old ones.
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>
Examplegenerated
{ "tags": [ "example" ]}object
tags
Array<string>
Examplegenerated
{ "tags": [ "example" ]}object
tags
Array<string>
Examplegenerated
{ "tags": [ "example" ]}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"}
