Skip to main content

Create Vehicle Renewal Reminder

POST 

https://secure.fleetio.com/api/v1/vehicle_renewal_reminders

Creates a new Vehicle Renewal Reminder

Request

Body

    vehicle_idId (integer)required

    Possible values: >= 1

    vehicle_renewal_type_idId (integer)required

    Possible values: >= 1

    next_due_atdate-timerequired

    The date and time at which this Renewal Reminder will be due next. We recommend using ISO-8601 formatted dates to avoid ambiguity.

    Example: 2023-03-14T13:46:27-06:00
    due_soon_atdate-time

    The date and time at which this Renewal Reminder will be considered due soon. We recommend using ISO-8601 formatted dates to avoid ambiguity.

    Example: 2023-03-14T13:46:27-06:00
    due_soon_time_threshold_intervalinteger

    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

    due_soon_time_threshold_frequencyFrequency (string)nullable

    Possible values: [day, week, month, year, days, weeks, months, years]

    activeboolean

    Whether this Renewal Reminder is active.

    custom_fieldsobjectnullable

    *Full details on working with Custom Fields here.

Responses

OK

Response Headers
    Schema
      idId (integer)required

      Possible values: >= 1

      created_atdate-time

      The date and time at which this record was created.

      Example: 2023-03-14T13:46:27-06:00
      updated_atdate-time

      The date and time at which this record was most recently updated.

      Example: 2023-03-14T13:46:27-06:00
      account_idId (integer)required

      Possible values: >= 1

      vehicle_idId (integer)required

      Possible values: >= 1

      vehicle_renewal_type_idId (integer)required

      Possible values: >= 1

      vehicle_archived_atdate-timenullablerequired

      The date and time at which this Renewal Reminder's Vehicle was archived, if applicable.

      Example: 2023-03-14T13:46:27-06:00
      activebooleannullablerequired

      Whether or not this Renewal Reminder is active.

      next_due_atdate-timerequired

      The date and time at which this Renewal Reminder is next due.

      Example: 2023-03-14T13:46:27-06:00
      last_sent_atdate-timenullablerequired

      The date and time at which this Renewal Reminder was last sent.

      Example: 2023-03-14T13:46:27-06:00
      due_soon_atdate-timenullablerequired

      The date and time at which this Renewal Reminder will next be marked as "Due Soon".

      Example: 2023-03-14T13:46:27-06:00
      due_soon_time_threshold_intervalintegernullablerequired

      The amount of time before a Renewal is due where it will be marked as as "Due Soon".

      due_soon_time_threshold_frequencyFrequency (string)nullablerequired

      Possible values: [day, week, month, year, days, weeks, months, years]

      comments_countintegernullablerequired

      The number of Comments on this Renewal Reminder.

      Possible values: >= 0

      custom_fieldsobjectrequired
      is_sampleboolean

      Whether this Renewal Reminder is sample data.

      watchers_countinteger

      The count of watchers associated with the record.

      watchable_optionsobject

      Options related to watching the record.

      bulk_watch_recordboolean

      Indicates if a bulk watch record is created.

      skip_automatic_watchers_callbacksboolean

      Indicates if automatic watchers callbacks are skipped.

    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 -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": {}
    }'
    Request Collapse all
    Base URL
    https://secure.fleetio.com/api
    Auth
    Body
    {
      "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": {}
    }
    
    ResponseClear

    Click the Send API Request button above and see the response here!