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
created_at
name
description
belongs_to__organization

Examples

Get all teams associated with user

curl -X GET \
"https://api.balena-cloud.com/v7/team" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" 

Get team by ID

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

Delete team with ID

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

Create a new team in organization

curl -X POST \
"https://api.balena-cloud.com/v7/team" \
-H  "Content-Type: application/json"  \
-H "Authorization: Bearer <AUTH_TOKEN>" \
--data '{
    "name": "<TEAM NAME>",
    "belongs_to__organization": "<ORG ID>"
}'