Przejdź do głównej zawartości

Dodaj tagi do obiektu

POST
/api/v3/Tags/{target}/add
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.

target
wymagane
string

udpl of the target
e.g. udpl://smerp-api/api/v1/UserEvents/343

Example { "tags": [ "startAsync202:udpl://ajs-api/api/v1/automaticScripts/start/343:post" ] }

object
tags
Array<string>
nullable
Examplegenerated
{
"tags": [
"example"
]
}

Success

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}