Skip to main content

Update Purchase Order Line Item

PATCH 

https://secure.fleetio.com/api/v1/purchase_orders/:number/purchase_order_line_items/:id

Update a Line Item for the associated Purchase Order

Request

Path Parameters

    number stringrequired

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

    The Purchase Order Number

    id stringrequired

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

    The id of the relevant record

Body

    part_idinteger

    The Fleetio ID of the Part being purchased.

    Possible values: >= 1

    quantityinteger

    How many of this Part to be purchased.

    Possible values: >= 0

    unit_costfloat

    The cost of this Part (per unit).

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/v1/purchase_orders/:number/purchase_order_line_items/:id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"part_id": 0,
"quantity": 0,
"unit_cost": 0
}'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
— pathrequired
Body
{
  "part_id": 0,
  "quantity": 0,
  "unit_cost": 0
}
ResponseClear

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