Skip to main content

Update Issue

PATCH 

https://secure.fleetio.com/api/v1/issues/:id

Update an Issue

Request

Path Parameters

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Body

    vehicle_idId (integer)

    Possible values: >= 1

    custom_fieldsobjectnullable

    *Full details on working with Custom Fields here.

    reported_atdate-time

    The date and time this Issue is reported. We recommend using ISO-8601 formatted dates to avoid ambiguity.

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

    A short summary of the Issue.

    descriptionstring

    A longer description of the Issue.

    reported_by_idId (integer)

    Possible values: >= 1

    numberinteger

    A unique identifier for the Issue.

    due_datedate-time

    The date on which this Issue should be resolved by. We recommend using ISO-8601 formatted dates to avoid ambiguity.

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

    The meter value at which this Issue should be resolved by.

    due_secondary_meter_valuefloat

    The secondary meter value at which this Issue should be resolved by.

    fault_idId (integer)

    Possible values: >= 1

    label_idsinteger[]
    meter_entry_attributes object

    An Issue may be associated with a Meter Entry.

    valuefloat

    The value is the actual number on the meter that increments over time. The unit is determined by the configured meter_unit on the associated Vehicle.

    Example: 108043
    voidboolean

    If you attempt to save a meter value, which is too high or too low, Fleetio's validation rules will reject it. If you need to bypass this validation, you may mark an entry as void.

    secondary_meter_entry_attributes object

    An Issue may be associated with a secondary Meter Entry.

    valuefloat

    The value is the actual number on the meter that increments over time. The unit is determined by the configured meter_unit on the associated Vehicle.

    Example: 108043
    voidboolean

    If you attempt to save a meter value, which is too high or too low, Fleetio's validation rules will reject it. If you need to bypass this validation, you may mark an entry as void.

    comments_attributes object[]
  • Array [
  • titlestring

    The title of the comment.

    commentstring

    The comment text.

  • ]
  • documents_attributes object[]

    An array of one or more document objects to add to the record. Follow our Attaching Documents and Images guide to upload to our third party storage provider in order to obtain file_url.

  • Array [
  • namestring

    The name to give the file which will be shown in the UI.

    Possible values: <= 255 characters

    file_urlstring

    The URL obtained from our storage provider that points to the file.

    Possible values: <= 255 characters

    file_mime_typestring

    The MIME type of the file. For example, application/pdf.

    Possible values: <= 255 characters

    file_namestring

    The name of the file.

    Possible values: <= 255 characters

    file_sizeinteger

    The size of the file in bytes.

  • ]
  • images_attributes object[]

    An array of one or more image objects to add to the record. Follow our Attaching Documents and Images guide to upload to our third party storage provider in order to obtain file_url.

  • Array [
  • namestring

    The name to give the image which will be shown in the UI.

    Possible values: <= 255 characters

    file_urlstring

    The URL obtained from our storage provider that points to the image.

    Possible values: <= 255 characters

    file_mime_typestring

    The MIME type of the image. For example, image/png.

    Possible values: <= 255 characters

    file_namestring

    The name of the image.

    Possible values: <= 255 characters

    file_sizeinteger

    The size of the image file in bytes.

  • ]
  • issue_priority_idId (integer)

    Possible values: >= 1

    assigned_contact_idsId (integer)[]

    An array of assigned Contacts related to the Issue.

    Possible values: >= 1

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
      numberstringrequired

      A unique identifier for the Issue.

      namestringrequired

      The name of the Issue.

      summarystringrequired

      A summary of the Issue.

      descriptionstringnullablerequired

      A longer description of the Issue.

      statestringrequired

      The Issue's current state.

      Possible values: [Open, Closed, Resolved]

      reported_atdate-timenullablerequired

      The date and time at which the issue was reported.

      Example: 2023-03-14T13:46:27-06:00
      reported_by_idNullableId (integer)nullablerequired

      Possible values: >= 1

      reported_by_namestringnullablerequired

      The name of the Contact associated with the User who reported this Issue.

      fault_idNullableId (integer)nullablerequired

      Possible values: >= 1

      due_datedatenullablerequired

      The date on which this Issue should be resolved by. Formatted according to ISO-8601 in User's local time zone.

      Example: 2023-03-14
      due_meter_valuestringnullablerequired

      The meter value at which this Issue should be resolved by.

      due_secondary_meter_valuefloatnullablerequired

      The secondary meter value at which this Issue should be resolved by.

      overduebooleanrequired

      Indicates whether the Issue is overdue.

      vehicle_idId (integer)required

      Possible values: >= 1

      vehicle_namestringrequired

      The name of the Vehicle associated with this Issue.

      is_sampleboolean

      Indicates whether this Issue is sample data.

      created_by_workflowbooleanrequired

      Indicates whether this Issue was created by a workflow.

      submitted_inspection_form_idNullableId (integer)nullablerequired

      Possible values: >= 1

      custom_fieldsobjectnullablerequired

      *Full details on working with Custom Fields here.

      valid_required_custom_fieldsbooleanrequired
      dtc_alert_idNullableId (integer)nullablerequired

      Possible values: >= 1

      assigned_contacts object[]required

      An array of assigned Contacts related to the Issue.

    • Array [
    • idinteger
      created_atdate-time
      updated_atdate-time
      emailstringnullable

      The Contact's email address.

      namestringnullable

      The Contact's full name.

      first_namestringnullable

      The Contact's first name.

      middle_namestringnullable

      The Contact's middle name.

      last_namestringnullable

      The Contact's last name.

      images_countinteger

      The number of images associated with this Contact.

      Possible values: >= 0

      documents_countinteger

      The number of documents associated with this Contact.

      Possible values: >= 0

      comments_countinteger

      The number of comments associated with this Contact.

      Possible values: >= 0

      group_idintegernullable

      If this Contact belongs to a Group, this will be the Fleetio ID of that Group.

      group_namestringnullable

      If this Contact belongs to a Group, this will be the Group's name.

      group_hierarchystringnullable

      If this Contact belongs to a Group, this will be a pipe delimited string representing the Group hierarchy. Each Group in the list is the parent of the Groups which follow.

      Example: Group 1|Group 2|Group 3
      technicianbooleannullable

      Whether or not the Contact is a Technician.

      vehicle_operatorbooleannullable

      Whether or not the Contact is a Vehicle Operator.

      employeebooleannullable

      Whether or not the Contact is an Employee.

      birth_datedatenullable

      The Contact's birth date.

      Example: 2023-03-14
      street_addressstringnullable

      The Contact's street address.

      Example: 123 Main St
      street_address_line_2stringnullable

      The Contact's street address line 2.

      Example: Apt 1
      citystringnullable

      The Contact's city.

      regionstringnullable

      The Contact's region, state, or province.

      postal_codestringnullable

      The Contact's postal code, zip code, or equivalent.

      countrystringnullable

      The Contact's country.

      employee_numberstringnullable

      The Contact's employee number.

      job_titlestringnullable

      The Contact's job title.

      Possible values: <= 255 characters

      license_classstringnullable

      The Contact's driver's license class.

      license_numberstringnullable

      The Contact's driver's license number.

      license_statestringnullable

      The locality which issued the Contact's license.

      license_expirationdatenullable

      The Contact's driver's license expiration date.

      Example: 2023-03-14
      home_phone_numberstringnullable

      The Contact's home phone number.

      mobile_phone_numberstringnullable

      The Contact's mobile phone number.

      work_phone_numberstringnullable

      The Contact's work phone number.

      other_phone_numberstringnullable

      Any other phone number for this Contact.

      start_datedatenullable

      When the Contact started working for the company, if applicable.

      leave_datedatenullable

      When the Contact left or will leave the company, if applicable.

      hourly_labor_ratefloatnullable

      The Contact's hourly rate.

      custom_fieldsobjectnullable

      *Full details on working with Custom Fields here.

      attachment_permissions objectnullable
      read_photosboolean

      Indicates whether the user has read permission for photos.

      manage_photosboolean

      Indicates whether the user has permission to manage (eg. upload, delete) photos.

      read_documentsboolean

      Indicates whether the user has read permission for documents.

      manage_documentsboolean

      Indicates whether the user has permission to manage (eg. upload, delete) documents.

      default_image_urlstringnullable

      The URL of the Contact's default image/profile photo, if any.

      userobjectnullable

      If the Contact is a Fleetio User, those details will be included here.

      account_membership_idNullableId (integer)nullable

      Possible values: >= 1

      last_api_requestdate-timenullable

      The last date and time this Contact's associated User made an API request. Null if Contact is not assocated with a User.

      last_web_accessdate-timenullable

      The last date and time this Contact's associated User signed into the web application. Null if Contact is not assocated with a User.

      last_mobile_app_accessdate-timenullable

      The last date and time this Contact's associated User used the mobile app. Null if Contact is not assocated with a User.

    • ]
    • labels object[]required
    • Array [
    • idId (integer)

      Possible values: >= 1

      namestring
    • ]
    • attachment_permissions objectnullable
      read_photosboolean

      Indicates whether the user has read permission for photos.

      manage_photosboolean

      Indicates whether the user has permission to manage (eg. upload, delete) photos.

      read_documentsboolean

      Indicates whether the user has read permission for documents.

      manage_documentsboolean

      Indicates whether the user has permission to manage (eg. upload, delete) documents.

      is_watchedbooleanrequired

      Indicates whether the Issue is watched.

      Default value: false
      vehicle_image_urlstringnullablerequired

      The URL to the image of the Vehicle associated with the Issue.

      vehicle_image_url_mediumstringnullablerequired

      The URL to a medium-sized Vehicle image associated with the Issue.

      vehicle_image_url_smallstringnullablerequired

      The URL to a small-sized Vehicle image associated with the Issue.

      vehicle_image_url_largestringnullablerequired

      The URL to a large-sized Vehicle image associated with the Issue.

      watchers_countinteger

      The count of watchers related to the Issue.

      linked_work_orders object[]nullablerequired

      Summative information of linked Work Orders related to the Issue.

    • Array [
    • idId (integer)

      Possible values: >= 1

      numberinteger

      The Work Order number.

      issued_atdate-time

      The date and time at which the Work Order was issued.

    • ]
    • source objectrequired

      Inspection source information.

      inspection_form object
      idNullableId (integer)nullable

      Possible values: >= 1

      colorstringnullable
      titlestringnullable
      inspection_submissions_countintegernullable

      The count of inspection submissions related to the Issue.

      last_inspection_submission_atdate-timenullable

      The date and time of the last inspection submission related to the Issue.

      failed_inspection_item_labelstringnullable

      The label associated with a failed inspection item.

      comments object[]

      A list of the comments made on this record.

    • Array [
    • 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
      commentable_typeCommentableType (string)required

      The type of record that the Comment will be left on. Must be associated with a matching commentable_id.

      Possible values: [Contact, FleetcorCard, FuelEntry, InventoryJournalEntry, Issue, Part, PurchaseOrder, ServiceEntry, ServiceReminder, SubmittedInspectionItem, Vehicle, VehicleAssignment, Vendor, WexCard, WorkOrder]

      commentable_idId (integer)required

      Possible values: >= 1

      user_idId (integer)required

      Possible values: >= 1

      titlestringdeprecated

      The title of the Comment.

      commentstringrequired

      The content of the Comment message body.

      user_full_namestringrequired

      The full name of the User who created the Comment.

      user_image_urlstringnullablerequired

      The image url for the User who created the Comment.

      rich_contentobjectnullablerequired
      html_contentstringnullablerequired

      The comment message body rendered as HTML.

      with_mentionsbooleanrequired

      Indicates if the message body contains @mentions.

    • ]
    • comments_countinteger

      The number of comments made on this record.

      Possible values: >= 0

      documents object[]

      A list of the documents attached to this record.

    • Array [
    • 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
      namestringrequired

      The name of the document.

      descriptionstringrequired

      The description of the document.

      documentable_idId (integer)required

      Possible values: >= 1

      documentable_typeDocumentableType (string)required

      Possible values: [ServiceEntry, FuelEntry, Issue, WorkOrder, ExpenseEntry]

      file_namestringrequired

      The name of the file.

      file_mime_typestringrequired

      The MIME type of the file.

      file_sizenumberrequired

      The size of the file in bytes.

      file_urlstringrequired

      The URL to access the file.

      full_file_urlstringrequired

      The full URL to access the file, including any necessary authentication or parameters.

    • ]
    • documents_countinteger

      The number of documents attached to this record.

      Possible values: >= 0

      images object[]

      A list of the images attached to this record.

    • Array [
    • 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
      imageable_idId (integer)

      Possible values: >= 1

      imageable_typeImageableType (string)

      Possible values: [ExpenseEntry, WorkOrder, Equipment, IssueResolution, ServiceEntry, Vendor, ServiceProgram, Issue, Contact, Part, Vehicle, FuelEntry, SubmittedInspectionItem]

      file_namestring

      The name of the image file.

      file_mime_typeImage MIME Type (string)

      Possible values: [image/jpeg, image/gif, image/jif, image/jfif, image/jfi, image/tiff, image/png, image/jpg, image/jpe, image/pdf, image/webp, image/tif, image/psd, image/raw, image/arw, image/cr2, image/nrw, image/k25, image/bmp, image/dip, image/ai, image/eps, image/heif, image/heic, image/ind, image/indd, image/indt, image/jp2, image/j2k, image/jpf, image/jpx, image/jpm, image/mj2, image/x-png]

      file_sizenumber

      The size of the image file in bytes.

      file_urlstring

      The URL to access the image file.

      full_urlstring

      The full URL to access the image file, including any necessary authentication or parameters.

    • ]
    • images_countinteger

      The number of images attached to this record.

      Possible values: >= 0

    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 -X PATCH 'https://secure.fleetio.com/api/v1/issues/:id' \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -H 'Authorization: Token <Authorization>' \
    -H 'Account-Token: <Authorization>' \
    -d '{
    "vehicle_id": 0,
    "custom_fields": {},
    "reported_at": "2023-03-14T13:46:27-06:00",
    "summary": "string",
    "description": "string",
    "reported_by_id": 0,
    "number": 0,
    "due_date": "2023-03-14T13:46:27-06:00",
    "due_meter_value": 0,
    "due_secondary_meter_value": 0,
    "fault_id": 0,
    "label_ids": [
    0
    ],
    "meter_entry_attributes": {
    "value": "108043",
    "void": true
    },
    "secondary_meter_entry_attributes": {
    "value": "108043",
    "void": true
    },
    "comments_attributes": [
    {
    "title": "string",
    "comment": "string"
    }
    ],
    "documents_attributes": [
    {
    "name": "string",
    "file_url": "string",
    "file_mime_type": "string",
    "file_name": "string",
    "file_size": 0
    }
    ],
    "images_attributes": [
    {
    "name": "string",
    "file_url": "string",
    "file_mime_type": "string",
    "file_name": "string",
    "file_size": 0
    }
    ],
    "issue_priority_id": 0,
    "assigned_contact_ids": [
    0
    ]
    }'
    Request Collapse all
    Base URL
    https://secure.fleetio.com/api
    Auth
    Parameters
    — pathrequired
    Body
    {
      "vehicle_id": 0,
      "custom_fields": {},
      "reported_at": "2023-03-14T13:46:27-06:00",
      "summary": "string",
      "description": "string",
      "reported_by_id": 0,
      "number": 0,
      "due_date": "2023-03-14T13:46:27-06:00",
      "due_meter_value": 0,
      "due_secondary_meter_value": 0,
      "fault_id": 0,
      "label_ids": [
        0
      ],
      "meter_entry_attributes": {
        "value": "108043",
        "void": true
      },
      "secondary_meter_entry_attributes": {
        "value": "108043",
        "void": true
      },
      "comments_attributes": [
        {
          "title": "string",
          "comment": "string"
        }
      ],
      "documents_attributes": [
        {
          "name": "string",
          "file_url": "string",
          "file_mime_type": "string",
          "file_name": "string",
          "file_size": 0
        }
      ],
      "images_attributes": [
        {
          "name": "string",
          "file_url": "string",
          "file_mime_type": "string",
          "file_name": "string",
          "file_size": 0
        }
      ],
      "issue_priority_id": 0,
      "assigned_contact_ids": [
        0
      ]
    }
    
    ResponseClear

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