Skip to main content

Update Service Entry

PATCH 

https://secure.fleetio.com/api/v2/service_entries/:service_entry_id/service_entry_line_items/:id

Update a Service Entry

Request

Path Parameters

    service_entry_id stringrequired

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

    The id of the associated Service Entry

    id stringrequired

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

    The id of the relevant record

Body

    typeServiceEntryLineItemType (string)

    Denotes the type of the ServiceEntryLineItem

    Possible values: [ServiceEntryServiceTaskLineItem, ServiceEntryLaborLineItem, ServiceEntryPartLineItem, ServiceEntryTaxLineItem, ServiceEntryFeeLineItem, ServiceEntryTireLineItem, ServiceEntryFreeTextLineItem]

    service_task_idId (integer)

    Possible values: >= 1

    descriptionstring

    A description of the service performed for this line item.

    issue_idsId (integer)[]

    IDs of any Issues this line item is linked to.

    Possible values: >= 1

    labor_costfloat

    The cost of labor for this line item.

    parts_costfloat

    The cost of Parts for this line item.

    subtotalfloat

    Ignored if labor_cost and parts_cost is present.

Responses

OK

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/v2/service_entries/:service_entry_id/service_entry_line_items/:id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"type": "ServiceEntryServiceTaskLineItem",
"service_task_id": 0,
"description": "string",
"issue_ids": [
0
],
"labor_cost": 0,
"parts_cost": 0,
"subtotal": 0
}'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
— pathrequired
Body
{
  "type": "ServiceEntryServiceTaskLineItem",
  "service_task_id": 0,
  "description": "string",
  "issue_ids": [
    0
  ],
  "labor_cost": 0,
  "parts_cost": 0,
  "subtotal": 0
}
ResponseClear

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