POST
/
v2
/
fleets
curl --request POST \
  --url https://api.app.fleetit.com/v2/fleets/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "Fleet XYZ",
  "is_active": true,
  "regions": [
    1,
    2
  ],
  "customer_info": {
    "ext_client_id": "123456",
    "ext_billing_id": "654321",
    "service_types": [
      "Tolls",
      "Violations"
    ],
    "email": "email@example.com",
    "notes": "Detailed notes here"
  }
}'
{
  "id": 109,
  "title": "Fleet XYZ",
  "is_active": true,
  "regions": [
    "Region1",
    "Region2"
  ],
  "customer_info": {
    "ext_client_id": "123456",
    "ext_billing_id": "654321",
    "service_types": [
      "Tolls",
      "Violations"
    ],
    "email": "email@example.com",
    "notes": "Detailed notes here"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
title
string
is_active
boolean
regions
integer[]
customer_info
object

Response

200 - application/json
Successful response
id
integer
title
string
is_active
boolean
regions
string[]
customer_info
object