Tags /
Update tag
Patch a resource tag.
Required permission
Account > Tags > General > Update
Path parameters
resourceTagId
string requiredID of the tag
Request body
- {object}
useSpotNodes
booleanSchedule workloads to spot nodesuseOnDemandNodes
booleanAlso allow workloads to schedule to on demand nodes. Only relevant if you want workloads to schedule across both spot and on demand nodesnodeAffinities
[array]- {object}
preference
booleanweight
numberThe node affinity weight. Required when `preference` is `true`.min1max100matchExpressions
[array] required- {object}
key
string requiredoperator
string requiredone ofIn, NotInvalues
[array] required- string
color
stringpattern^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$description
stringmax length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$
Response body
- {object}Response object.
data
{object} requiredResult data.
API
CLI
JS Client
PATCH /v1/tags/{resourceTagId}
Example request
Request body
curl
curl --header "Content-Type: application/json" \
--header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
--request PATCH \
--data '{"useSpotNodes":false,"useOnDemandNodes":false,"color":"#57637A"}' \
https://api.northflank.com/v1/tags/{resourceTagId}
Example response
200 OK
The operation was performed successfully.
JSON
{
"data": {}
}