- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Depot
- Fleet Management
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Create a Timeline
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
POST
/api/v1/timelines
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
parent_type
string
required
uuid
string
required
timeline
object
required
status_date
string <date-time>
required
status_code
string
optional
place_id
integer
optional
place_name
string
optional
source
string
optional
Examples:
apiuser
notes
string
optional
customer_inform_type
boolean
optional
Example
{
"parent_type": "Fleet::Vehicles",
"uuid": "33a6e5bd-fad6-4f42-8f89-c77e2a8d3b1b",
"timeline": {
"status_date": "2024-08-07",
"status_code": "Cleared and Released",
"place_id": 64699,
"place_name": "London, United Kingdom",
"notes": "TestApi",
"customer_inform_type": false,
"source": "api"
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.modaltrans.com/api/v1/timelines' \
--header 'Content-Type: application/json' \
--data-raw '{
"parent_type": "Fleet::Vehicles",
"uuid": "33a6e5bd-fad6-4f42-8f89-c77e2a8d3b1b",
"timeline": {
"status_date": "2024-08-07",
"status_code": "Cleared and Released",
"place_id": 64699,
"place_name": "London, United Kingdom",
"notes": "TestApi",
"customer_inform_type": false,
"source": "api"
}
}'
Responses
🟢201Created
application/json
Body
id
integer
required
status_date
string <date-time>
required
status_code
string
required
notes
string
required
source
string
required
country_id
string
required
Examples:
GBCN
lng
number
required
lat
number
required
Example
{
"id": 0,
"status_date": "2019-08-24T14:15:22Z",
"status_code": "string",
"notes": "string",
"source": "string",
"country_id": "GB",
"lng": 0,
"lat": 0
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
🟠422Unprocessable Entity
Modified at 2024-08-23 14:33:10