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"
}
}
Create a fleet in the system.
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"
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful response
The response is of type object
.
Was this page helpful?