PUT
/
v2
/
fleets
/
{ID}
curl --request PUT \
  --url https://api.app.fleetit.com/v2/fleets/{ID}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 84,
  "title": "New Fleet Test V3",
  "is_active": true,
  "regions": [
    1
  ],
  "customer_info": {
    "ext_client_id": "123456",
    "ext_billing_id": "654321",
    "service_types": [
      1
    ],
    "email": "contactnewv2@newfleet.com",
    "notes": "Initial setup for new fleet."
  }
}'
{
  "id": 84,
  "title": "New Fleet Test V3",
  "is_active": true,
  "regions": [
    "Washington"
  ],
  "customer_info": {
    "ext_client_id": "123456",
    "ext_billing_id": "654321",
    "service_types": [
      "Tolls"
    ],
    "email": "contactnewv2@newfleet.com",
    "notes": "Initial setup for new fleet."
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

ID
string
required

The unique identifier for the fleet.

Body

application/json
id
integer

The unique identifier for the fleet.

title
string

The title of the fleet.

is_active
boolean

Indicates whether the fleet is active.

regions
integer[]

A list of region IDs associated with the fleet.

customer_info
object

Additional information about the customer.

Response

200
application/json
Successful response
id
integer

The unique identifier for the fleet.

title
string

The title of the fleet.

is_active
boolean

Indicates whether the fleet is active.

regions
string[]

A list of regions associated with the fleet.

customer_info
object

Additional information about the customer.