Fleet

Get all fleets of an organization by its HANDLE

get

Fleet Resource Fields

Field

id

uuid

organization

actor

app_name

slug

should_be_running__release

application_type

is_for__device_type

should_track_latest_release

is_accessible_by_support_until__date

is_public

is_host

is_archived

is_discoverable

is_stored_at__repository_url

created_at


GET /v7/application

Usage Variations


Get all fleets

GET /v7/application

Note: This will also include all public fleets of the platform. In most cases retrieving the fleets by their organization will be preferable.


Get all fleets associated with authenticated user

GET /v7/application?$filter=is_directly_accessible_by__user/any(dau:true)


Get fleet by name

GET /v7/application?$filter=app_name eq '<NAME>'


Filter public fleets from result

GET /v7/application?$filter=is_public eq false

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
get
/v7/application

Create fleet

post

POST /v7/application

Request Body:

{
    "app_name": <NAME>,
    "organization": <ORGANIZATION_ID>,
    "is_for__device_type": <DEVICE_TYPE_ID>
}

To retrieve the numeric ORGANIZATION_ID & DEVICE_TYPE_ID, check the respective documentation page for the organization & device type resources.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptional
post
/v7/application

Get fleet by ID

get

GET /v7/application(<ID>)

Usage Variations


Get fleet by id along with its devices

GET /v7/application(<ID>)?$expand=owns__device

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
IDanyRequired
get
/v7/application({ID})

Delete fleet

delete

DELETE /v7/application(<ID>)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
IDanyRequired
delete
/v7/application({ID})

Pin entire fleet to a specific release by ID

patch

PATCH /v7/application(<ID>)

Request Body:

{
    "should_be_running__release": <RELEASE ID>,
    "should_track_latest_release": false
}

Usage Variations


Disable automatic update tracking for a fleet

PATCH /v7/application(<ID>)

Request Body:

{
    "should_track_latest_release": false
}

Enable automatic update tracking for a fleet

PATCH /v7/application(<ID>)

Request Body:

{
    "should_track_latest_release": true
}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
IDanyRequired
Body
objectOptional
patch
/v7/application({ID})

Get fleet by SLUG

get

GET /v7/application(slug='<SLUG>')

Usage Variations


Get fleet by SLUG along with its devices

GET /v7/application(slug='<SLUG>')?$expand=owns__device


Get the target release of a fleet

GET /v7/application(slug='<SLUG>')?$select=should_be_running__release

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
SLUGanyRequired
get
/v7/application(slug='{SLUG}')

Pin entire fleet to a specific release by SLUG

patch

PATCH /v7/application(slug='<SLUG>')

Request Body:

{
    "should_be_running__release": <RELEASE ID>,
    "should_track_latest_release": false
}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
SLUGanyRequired
Body
objectOptional
patch
/v7/application(slug='{SLUG}')

Last updated

Was this helpful?