Skip to content

Update fleet

PATCH
/api/v1/fleets/{fleet_id}
curl --request PATCH \
--url https://app.ayna.com/api/v1/fleets/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "base_location": "example", "base_latitude": 1, "base_longitude": 1, "max_altitude_agl": 1, "is_active": true }'

Update a fleet.

fleet_id
required
Fleet Id
string
Media typeapplication/json
FleetUpdateRequest
object
name
Any of:
string
>= 1 characters <= 255 characters
description
Any of:
string
base_location
Any of:
string
<= 255 characters
base_latitude
Any of:
number
base_longitude
Any of:
number
max_altitude_agl
Any of:
number
is_active
Any of:
boolean

Example generated

{
"name": "example",
"description": "example",
"base_location": "example",
"base_latitude": 1,
"base_longitude": 1,
"max_altitude_agl": 1,
"is_active": true
}

OK

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}