Create Vehicle Renewal Reminder
POSThttps://secure.fleetio.com/api/v1/vehicle_renewal_reminders
Creates a new Vehicle Renewal Reminder
Request
- application/json
Body
Possible values: >= 1
Possible values: >= 1
The date and time at which this Renewal Reminder will be due next. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
The date and time at which this Renewal Reminder will be considered due soon. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
Used in conjunction with due_soon_time_threshold_frequency
. Together they
form a full due soon parameter eg; "1 week", "5 months", "10 years"
Possible values: >= 1
Possible values: [day
, week
, month
, year
, days
, weeks
, months
, years
]
Whether this Renewal Reminder is active.
*Full details on working with Custom Fields here.
Responses
- 201
- 401
- 422
- 500
OK
Response Headers
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
The date and time at which this Renewal Reminder's Vehicle
was
archived, if applicable.
2023-03-14T13:46:27-06:00
Whether or not this Renewal Reminder is active.
The date and time at which this Renewal Reminder is next due.
2023-03-14T13:46:27-06:00
The date and time at which this Renewal Reminder was last sent.
2023-03-14T13:46:27-06:00
The date and time at which this Renewal Reminder will next be marked as "Due Soon".
2023-03-14T13:46:27-06:00
The amount of time before a Renewal is due where it will be marked as as "Due Soon".
Possible values: [day
, week
, month
, year
, days
, weeks
, months
, years
]
The number of Comments
on this Renewal Reminder.
Possible values: >= 0
Whether this Renewal Reminder is sample data.
The count of watchers associated with the record.
Options related to watching the record.
Indicates if a bulk watch record is created.
Indicates if automatic watchers callbacks are skipped.
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"vehicle_id": 0,
"vehicle_renewal_type_id": 0,
"vehicle_archived_at": "2023-03-14T13:46:27-06:00",
"active": true,
"next_due_at": "2023-03-14T13:46:27-06:00",
"last_sent_at": "2023-03-14T13:46:27-06:00",
"due_soon_at": "2023-03-14T13:46:27-06:00",
"due_soon_time_threshold_interval": 0,
"due_soon_time_threshold_frequency": "day",
"comments_count": 0,
"custom_fields": {},
"is_sample": true,
"watchers_count": 0,
"watchable_options": {},
"bulk_watch_record": true,
"skip_automatic_watchers_callbacks": true
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64". You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
- curl
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
curl -L 'https://secure.fleetio.com/api/v1/vehicle_renewal_reminders' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"vehicle_id": 0,
"vehicle_renewal_type_id": 0,
"next_due_at": "2023-03-14T13:46:27-06:00",
"due_soon_at": "2023-03-14T13:46:27-06:00",
"due_soon_time_threshold_interval": 0,
"due_soon_time_threshold_frequency": "day",
"active": true,
"custom_fields": {}
}'