Update fleet
PATCH
/api/v1/fleets/{fleet_id}
const url = 'https://app.ayna.com/api/v1/fleets/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","base_location":"example","base_latitude":1,"base_longitude":1,"max_altitude_agl":1,"is_active":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”fleet_id
required
Fleet Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
FleetUpdateRequest
object
Example generated
{ "name": "example", "description": "example", "base_location": "example", "base_latitude": 1, "base_longitude": 1, "max_altitude_agl": 1, "is_active": true}Responses
Section titled “Responses”OK
Media typeapplication/json
Response
object
key
additional properties
any
Example generated
{}