---
title: "Update a Fleet"
method: PATCH
path: "/v1/fleet/{fleet_name}"
tags: ["Fleets"]
---

# Update a Fleet

`PATCH /v1/fleet/{fleet_name}`

## Request

- Base URL: `https://api.edgegap.com`
- URL: `https://api.edgegap.com/v1/fleet/{fleet_name}`
- Auth: API key in header `authorization`

Update a fleet with new specifications.

## Path parameters

- `fleet_name` string, required

## Request body

- FleetPatchPayload
  - `name` string: Name of the Fleet
  - `enabled` boolean: If the Fleet is enabled

## Response `200`

Success

- FleetPatchResponse
  - `name` string: Name of the Fleet
  - `enabled` boolean: If the Fleet is enabled
  - `create_time` string: UTC time of fleet creation
  - `last_updated` string: UTC time of fleet last update

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/edgegap/apis/edgegap-v1.md) · [All operations](https://skmtc.dev/edgegap/apis/edgegap-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/edgegap/apis/edgegap-v1/revisions/9fa2b393a6be?raw)
