Update Issue
PATCHhttps://secure.fleetio.com/api/v2/issues/:id
Update an Issue
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the relevant record
- application/json
Body
The ID of the asset associated with the Issue.
The type of the asset associated with the Issue.
Possible values: [Vehicle
, Equipment
]
A short summary of the Issue.
A longer description of the Issue.
The id of the Contact
who reported this Issue.
The date and time this Issue is reported. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
The id of the associated IssuePriority
for this Issue.
A unique identifier for the Issue.
The date on which this Issue should be resolved by. We recommend using ISO-8601 formatted dates to avoid ambiguity.
2023-03-14T13:46:27-06:00
The meter value at which this Issue should be resolved by.
The secondary meter value at which this Issue should be resolved by.
The id of the Fault
associated with this Issue.
*Full details on working with Custom Fields here.
meter_entry_attributes object
secondary_meter_entry_attributes object
comments_attributes object[]
documents_attributes object[]
images_attributes object[]
An array of ids of assigned Contacts
related to the Issue.
Responses
- 200
- 401
- 403
- 404
- 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
A unique identifier for the Issue.
Possible values: >= 1
A summary of the Issue.
A longer description of the Issue.
The Issue's current state.
Possible values: [open
, closed
, resolved
]
The date and time at which this Issue was reported.
2023-03-14T13:46:27-06:00
reported_by objectnullablerequired
The type of the object which can resolve this Issue.
Possible values: [ServiceEntry
, WorkOrder
]
The date and time at which this Issue was resolved.
2023-03-14T13:46:27-06:00
resolved_by objectnullablerequired
Any notes associated with resolving this Issue.
The date and time at which this Issue was closed.
2023-03-14T13:46:27-06:00
closed_by objectnullablerequired
Any notes associated with closing this Issue.
The date on which this Issue should be resolved by.
Formatted according to ISO-8601 in User
's local time zone.
2023-03-14
The meter value at which this Issue should be resolved by.
The secondary meter value at which this Issue should be resolved by.
Indicates whether the Issue is overdue.
issue_priority object
resolvable objectnullablerequired
Indicates if this Issue was created manually or by a workflow.
Possible values: [manual
, workflow
]
attachment_permissions objectnullablerequired
asset objectrequired
The asset type that has the Issue.
Possible values: [Vehicle
, Equipment
]
submitted_inspection_form objectnullablerequired
fault objectnullablerequired
The count of watchers associated with the Issue.
The count of Comments
associated with the Issue.
The count of images associated with the Issue.
The count of documents associated with the Issue.
*Full details on working with Custom Fields here.
labels object[]
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"number": 0,
"summary": "string",
"description": "string",
"state": "open",
"reported_at": "2023-03-14T13:46:27-06:00",
"reported_by": {
"id": 0
},
"resolvable_type": "ServiceEntry",
"resolved_at": "2023-03-14T13:46:27-06:00",
"resolved_by": {
"id": 0
},
"resolved_note": "string",
"closed_at": "2023-03-14T13:46:27-06:00",
"closed_by": {
"id": 0
},
"closed_note": "string",
"due_date": "2023-03-14",
"due_meter_value": 0,
"due_secondary_meter_value": 0,
"is_overdue": true,
"issue_priority": {
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"account_id": 0,
"alias": "string",
"name": "string",
"slug": "string",
"description": "string",
"default": true,
"enabled": true,
"position": 0
},
"resolvable": {
"id": 0
},
"creation_type": "manual",
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"asset": {
"id": 0,
"name": "string",
"image_url_medium": "string"
},
"asset_type": "Vehicle",
"submitted_inspection_form": {
"id": 0
},
"fault": {
"id": 0
},
"watchers_count": 0,
"comments_count": 0,
"images_count": 0,
"documents_count": 0,
"custom_fields": {},
"labels": [
{
"id": 0,
"name": "string",
"color": "string"
}
]
}
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"
}
Insufficient permission to perform this operation
- 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"
}
The requested resource could not be located
- 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 -X PATCH 'https://secure.fleetio.com/api/v2/issues/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"asset_id": 0,
"asset_type": "Vehicle",
"summary": "string",
"description": "string",
"reported_by_id": 0,
"reported_at": "2023-03-14T13:46:27-06:00",
"issue_priority_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,
"custom_fields": {},
"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
}
],
"assigned_contact_ids": [
0
],
"label_ids": [
0
]
}'