Skip to content

Tag node

POST
/api/v1/nodes/{env}/tag
curl --request POST \
--url https://osctrl.net/api/v1/nodes/example/tag \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "custom": "example", "tag": "example", "type": 1, "uuid": "example" }'

Adds or updates a tag on a node.

env
required
string

Environment name or UUID

Request body

Media typeapplication/json
object
custom
string
tag
string
type
integer
uuid
string
Examplegenerated
{
"custom": "example",
"tag": "example",
"type": 1,
"uuid": "example"
}

OK

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

Bad request

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Not found

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Conflict

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Too many requests

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Internal server error

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Service unavailable

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}