Create Work Order Line Item
POSThttps://secure.fleetio.com/api/v2/work_orders/:work_order_id/work_order_line_items
Creates a new Work Order Line Item
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the associated Work Order
- application/json
Body
Possible values: [WorkOrderServiceTaskLineItem
, WorkOrderFreeTextLineItem
]
The Type of the item associated with the Work Order Line Item
Possible values: [Issue
, ServiceTask
]
The ID of the item associated with this Work Order Line Item.
The IDs of any Issues
associated with this Work Order Line Item.
The cost of labor of this line item.
The cost of Parts
of this line item.
The subtotal of this line item.
The ID of the VMRS Reason for Repair associated with this Work Order Line Item.
The ID of the VMRS System Group associated with this Work Order Line Item.
The ID of the VMRS System associated with this Work Order Line Item.
The ID of the VMRS Assembly associated with this Work Order Line Item.
The ID of the VMRS Component associated with this Work Order Line Item.
work_order_sub_line_items_attributes object[]
work_order_part_line_items_attributes object[]
work_order_labor_line_items_attributes object[]
Responses
- 201
- 401
- 403
- 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
The title of this line item.
A description of this Work Order Line Item.
The position of this Work Order Line Item in a list of Work Order Line Items.
The ID of the item associated with this Work Order Line Item.
The type of item associated with this Work Order Line Item.
Possible values: [Issue
, ServiceTask
]
The ID of the Work Order
that this line item belongs to.
The cost of Parts
in cents of this line item.
The cost of labor in cents of this line item.
The ID of the Service Reminder
associated with this line item, if applicable.
The subtotal in cents of this line item.
2023-03-14T13:46:27-06:00
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
Possible values: >= 1
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"title": "string",
"description": "string",
"position": 0,
"item_id": 0,
"item_type": "Issue",
"work_order_id": 0,
"parts_cost_cents": 0,
"labor_cost_cents": 0,
"service_reminder_id": 0,
"subtotal_cents": "string",
"work_order_line_item_id": 0,
"vehicle_id": 0,
"vehicle_archived_at": "2023-03-14T13:46:27-06:00",
"vmrs_system_id": 0,
"vmrs_assembly_id": 0,
"vmrs_component_id": 0,
"vmrs_reason_for_repair_id": 0,
"vmrs_system_group_id": 0
}
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"
}
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