Improve this doc
Detailed information for resources

balenaCloud API Resources

Note: We recently renamed applications to fleets and are in the process of updating our API resources. Application resources continue to function correctly and can be used to work with fleets. Find out more about the changes here.

Available fields

id
application
tag_key
value

Examples

Get all tags by fleet name

curl -X GET \
"https://api.balena-cloud.com/v6/application_tag?\$filter=application/app_name%20eq%20'<NAME>'" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Create a new fleet tag

curl -X POST \
"https://api.balena-cloud.com/v6/application_tag" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" \
--data '{
    "application": "<FLEET ID>",
    "tag_key": "<KEY>",
    "value": "<VALUE>"
}'

Update a fleet tag

curl -X PATCH \
"https://api.balena-cloud.com/v6/application_tag/(<ID>)" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" \
--data '{
    "value": "<NEW VALUE>"
}'

Delete a fleet tag

curl -X DELETE \
"https://api.balena-cloud.com/v6/application_tag/(<ID>)" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>"