Utwórz tagi dla obiektu
POST
/api/v3/Tags
const url = 'https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Tags';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"target":"example","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 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "target": "example", "tags": [ "example" ] }'Tworzy wpis tagów dla wskazanego obiektu (np. zamówienia).
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”Example
{ "target": "udpl://smerp-api/api/v1/UserEvents/343", "tags": [ "startAsync202:udpl://ajs-api/api/v1/automaticScripts/start/343:post" ] }
object
target
string
tags
Array<string>
Examplegenerated
{ "target": "example", "tags": [ "example" ]}object
target
string
tags
Array<string>
Examplegenerated
{ "target": "example", "tags": [ "example" ]}object
target
string
tags
Array<string>
Examplegenerated
{ "target": "example", "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"}
