Skip to content

Create fleet

POST
/api/v1/fleets/
curl --request POST \
--url https://app.ayna.com/api/v1/fleets/ \
--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 }'

Create a new fleet.

Media typeapplication/json
FleetCreateRequest
object
name
required
Name
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

Example generated

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

Created

Media typeapplication/json
Response
object
key
additional properties
any

Example generated

{}