Skip to main content

Fleet

Fleet Object

FieldTypeDescription
idsnowflakethe fleet's id
organisation_idsnowflakethe id of the organisation the fleet belongs to
codestringa short code for the fleet (max 12 characters)
namestringthe fleet's name (max 200 characters)
descriptionstringa description for the fleet
colorstringthe fleet's color as a hex string
root_system_id?snowflakethe id of the root system linked to the fleet

Fleet Subscription User Object

A subscription that notifies a user about changes to work items assigned to a fleet, optionally filtered by work item type and location.

FieldTypeDescription
fleet_idsnowflakethe id of the fleet to subscribe to
useruser objectthe subscribed user (see Object or Id)
is_syncbooleanwhether to sync all open work items to the user's device
location?location objectthe location filter for subscriptions (see Object or Id)
work_item_type?work item type objectthe work item type filter for subscriptions (see Object or Id)

Fleet Share Object

A share of a fleet with another user, optionally scoped to a specific work item type and organisation.

FieldTypeDescription
idsnowflakethe fleet share's id
fleetfleet objectthe shared fleet
useruser objectthe user the fleet is shared with
organisation?organisation objectthe organisation to share the fleet with (optional)
work_item_type?work item type objectthe work item type to scope the share to (optional)
shared_byuser objectthe user who created the share
statusfleet share statusthe current status of the share
scopestringthe scope of the share
share_to_users_organisationbooleanwhether the share is directed to the user's organisation
shared_atISO8601 timestampwhen the share was created

Fleet Share Status

ValueDescription
pendingthe share is awaiting acceptance or rejection
acceptedthe share has been accepted by the recipient
rejectedthe share has been rejected by the recipient
revokedthe share has been revoked by the sharer

List Fleets

GET /organisations/{organisation.id}/fleets

Returns an array of fleet objects for the organisation. Requires membership in the organisation.

Error Responses
Status CodeDescription
400Bad request (organisation does not exist)
403Forbidden (user is not a member of the organisation)

Create Fleet

POST /organisations/{organisation.id}/fleets

Creates a new fleet in the organisation. Requires the MANAGE_FLEETS permission.

JSON Params
FieldTypeDescriptionDefault
code?stringthe fleet's code (max 12 characters)
name?stringthe fleet's name (max 200 characters)new fleet
description?stringthe fleet's description
colour?stringthe fleet's colour as a hex string
root_system_id?snowflakethe id of the root system to link to the fleet
Error Responses
Status CodeDescription
400Bad request (organisation does not exist)
403Forbidden (user lacks the MANAGE_FLEETS permission)

Get Fleet

GET /api/fleets/{id}

Returns the fleet object for the given fleet id. Requires membership in an organisation that owns the fleet, or an accepted fleet share from such an organisation.

Error Responses
Status CodeDescription
404Not found (fleet does not exist)
403Forbidden (user cannot view the fleet)

Update Fleet

PATCH /api/fleets/{id}

Updates a fleet. Requires the MANAGE_FLEETS permission for the organisation that owns the fleet. Only the fields provided will be updated.

JSON Params
FieldTypeDescription
code?stringthe fleet's code (max 12 characters)
name?stringthe fleet's name (max 200 characters)
description?stringthe fleet's description
colour?stringthe fleet's colour as a hex string
root_system_id?snowflakethe id of the root system to link to the fleet
Error Responses
Status CodeDescription
404Not found (fleet does not exist)
403Forbidden (user lacks the MANAGE_FLEETS permission)

Subscribe to Fleet Work Items

POST /api/fleets/{id}/subscribe

Creates or updates a fleet subscription user for the current user. Subscribes the user to notifications for work items assigned to the fleet, optionally filtered by work item type and location. Requires membership in an organisation that owns the fleet, or an accepted fleet share.

JSON Params
FieldTypeDescription
work_item_type_id?snowflakethe id of the work item type to filter by (optional)
location_id?snowflakethe id of the location to filter by (optional)
Error Responses
Status CodeDescription
404Not found (fleet does not exist)
404Not found (work item type does not exist)
404Not found (location does not exist)
403Forbidden (user cannot view the fleet)

Unsubscribe from Fleet Work Items

POST /api/fleets/{id}/unsubscribe

Removes a fleet subscription user for the current user. Unsubscribes the user from notifications for work items assigned to the fleet. Requires membership in an organisation that owns the fleet, or an accepted fleet share.

JSON Params
FieldTypeDescription
work_item_type_id?snowflakethe id of the work item type to unsubscribe from (optional)
location_id?snowflakethe id of the location to unsubscribe from (optional)
Error Responses
Status CodeDescription
400Bad request (subscription does not exist)
404Not found (fleet does not exist)
404Not found (work item type does not exist)
404Not found (location does not exist)
403Forbidden (user cannot view the fleet)

Create Fleet Share

POST /api/fleets/{id}/shares

Creates a fleet share inviting another user to view the fleet. The share can be scoped to a specific work item type and/or organisation. Requires the SHARE_FLEETS permission for the organisation that owns the fleet. If a work item type is specified, also requires the SHARE_WORKITEMS permission for the organisation that owns the work item type.

JSON Params
FieldTypeDescription
user_idsnowflakethe id of the user to share with
organisation_id?snowflakethe id of the organisation to share with (optional; must be an organisation the recipient belongs to)
work_item_type_id?snowflakethe id of the work item type to scope the share to (optional)
scopestringthe scope of the share
Error Responses
Status CodeDescription
400Bad request (work item type not assignable to fleet)
400Bad request (organisation not found)
403Forbidden (user lacks the SHARE_FLEETS permission)
403Forbidden (user lacks the SHARE_WORKITEMS permission)
403Forbidden (recipient does not share an organisation with sharer)
404Not found (fleet does not exist)
404Not found (user does not exist)

Accept Fleet Share

POST /api/fleets/{id}/shares/{shareId}/accept

Accepts a pending fleet share. If the share specifies an organisation, the fleet will be added to that organisation (requires the MANAGE_FLEETS permission for the organisation). Returns the updated fleet share object.

Error Responses
Status CodeDescription
400Bad request (share or fleet does not exist, or share is not pending)

Reject Fleet Share

POST /api/fleets/{id}/shares/{shareId}/reject

Rejects a pending fleet share. The share status is set to Rejected.

Error Responses
Status CodeDescription
400Bad request (share or fleet does not exist, or share is not pending)

Remove Fleet Share

DELETE /api/fleets/{id}/shares/{shareId}

Removes a fleet share. The share status is set to Revoked. If the fleet was shared to an organisation and no other active shares exist for the same fleet and organisation, the fleet is removed from that organisation. Requires the SHARE_FLEETS permission for the organisation that owns the fleet.

Error Responses
Status CodeDescription
400Bad request (share does not exist)
403Forbidden (user lacks the SHARE_FLEETS permission)
404Not found (fleet does not exist)

List Fleet Shares

GET /api/fleets/{id}/shares

Returns an array of fleet share objects for the fleet. Includes shares with a status of Accepted or less. Each share includes the fleet, user, organisation, work item type, and shared-by user. Requires the SHARE_FLEETS permission for the organisation that owns the fleet.

Error Responses
Status CodeDescription
403Forbidden (user lacks the SHARE_FLEETS permission)
404Not found (fleet does not exist)

List Organisation Fleet Shares

GET /organisations/{organisation.id}/fleets/{fleet.id}/shares

Returns an array of fleet share objects for a fleet within the organisation. Includes only accepted shares that are scoped to the organisation.

Error Responses
Status CodeDescription
400Bad request (organisation does not exist)
400Bad request (fleet share does not exist)

List Fleet Assets

GET /fleets/{fleet.id}/assets

Returns an array of asset objects for the fleet.

Parameters
FieldTypeDescription
type?snowflakethe type of asset to return
root?booleanwhen set to true, only the root assets will be returned
active?booleanwhen set to true, only active assets will be returned

List Fleet Work Item Logs

GET /api/fleets/{id}/logs

Returns an array of work item log objects for work items assigned to the fleet. Logs are ordered by creation date (newest first). Requires membership in the organisation that owns the fleet.

Query Parameters
FieldTypeDescriptionDefault
limit?integermaximum number of logs to return50
start?integernumber of logs to skip (pagination offset)0
logged_at?stringfilter by log date/time using OData comparison operatorsnull
Error Responses
Status CodeDescription
404Not found (fleet does not exist)
403Forbidden (user is not a member of the organisation)