> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upwell.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update One Purchase Order Line Item

> Update parsed purchase order line item fields. Body: `{ "input": { ...fields to set... } }` using the record's camelCase field names (amounts in integer cents). System-managed columns (ids, tenant/document linkage, party references, match state) are not updatable and are rejected.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/rest/purchase-order-line-items/{id}
openapi: 3.1.0
info:
  description: >-
    Upwell is Accounts Receivable automation software for the logistics
    industry. We serve freight brokers, carriers, factors, and anyone who needs
    to get transportation invoices paid.


    Learn more at:


    - [Upwell.com](https://upwell.com)
  title: Upwell REST API
  version: 3.30.2
  termsOfService: https://upwell.com/legal
  contact:
    name: Upwell
    url: https://upwell.com
    email: contact@upwell.com
servers:
  - url: https://api.upwell.com
    description: Production server
  - url: https://staging.api.upwell.com
    description: Staging server
security: []
tags:
  - name: Invoice Approval
    description: Endpoints for managing customer invoice approval workflow
paths:
  /api/rest/purchase-order-line-items/{id}:
    patch:
      tags:
        - Purchase Orders
      summary: Update One Purchase Order Line Item
      description: >-
        Update parsed purchase order line item fields. Body: `{ "input": {
        ...fields to set... } }` using the record's camelCase field names
        (amounts in integer cents). System-managed columns (ids, tenant/document
        linkage, party references, match state) are not updatable and are
        rejected.
      parameters:
        - description: >-
            Your API key will be used for authentication of the request.
            `Authorization: YOUR_API_KEY`
          in: header
          name: authorization
          schema:
            type: string
        - description: _"id" is required (enter it either in parameters or request body)_
          in: path
          name: id
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  nullable: false
                  title: String
                  type: string
                input:
                  $ref: >-
                    #/components/schemas/SupportingDocsPurchaseOrderLineItemsSetInput
              type: object
        description: >-
          Query parameters can also be provided in the request body as a JSON
          object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  updatePurchaseOrderLineItem:
                    description: Purchase Order line items (EDI 850 PO1-loop-shaped)
                    nullable: true
                    properties:
                      id:
                        nullable: false
                        title: String
                        type: string
                    title: SupportingDocsPurchaseOrderLineItems
                    type: object
          description: Responses for PATCH /api/rest/purchase-order-line-items/{id}
components:
  schemas:
    SupportingDocsPurchaseOrderLineItemsSetInput:
      description: >-
        input type for updating data in table
        "supporting_docs.purchase_order_line_items"
      nullable: true
      properties:
        brand:
          nullable: true
          title: String
          type: string
        buyerPartNumber:
          nullable: true
          title: String
          type: string
        contractLineNumber:
          nullable: true
          title: String
          type: string
        contractNumber:
          nullable: true
          title: String
          type: string
        deliverTo:
          nullable: true
          title: String
          type: string
        description:
          nullable: true
          title: String
          type: string
        extendedAmount:
          nullable: true
          title: Int
          type: integer
        lineNumber:
          nullable: true
          title: Int
          type: integer
        lineStatus:
          nullable: true
          title: String
          type: string
        manufacturerName:
          nullable: true
          title: String
          type: string
        manufacturerPartNumber:
          nullable: true
          title: String
          type: string
        notes:
          nullable: true
          title: String
          type: string
        packSize:
          nullable: true
          title: String
          type: string
        priceComponents:
          $ref: '#/components/schemas/jsonb'
        promisedDeliveryDate:
          $ref: '#/components/schemas/date'
        quantity:
          $ref: '#/components/schemas/numeric'
        requestedDeliveryDate:
          $ref: '#/components/schemas/date'
        revision:
          nullable: true
          title: String
          type: string
        schedules:
          $ref: '#/components/schemas/jsonb'
        taxAmount:
          nullable: true
          title: Int
          type: integer
        taxable:
          nullable: true
          title: Boolean
          type: boolean
        unitOfMeasure:
          nullable: true
          title: String
          type: string
        unitPriceAmount:
          nullable: true
          title: Int
          type: integer
        unitPriceBasis:
          $ref: '#/components/schemas/numeric'
        upc:
          nullable: true
          title: String
          type: string
        vendorPartNumber:
          nullable: true
          title: String
          type: string
        volume:
          $ref: '#/components/schemas/numeric'
        weight:
          $ref: '#/components/schemas/numeric'
        weightUnit:
          nullable: true
          title: String
          type: string
      title: SupportingDocsPurchaseOrderLineItemsSetInput
      type: object
    jsonb:
      nullable: false
      title: jsonb
    date:
      nullable: false
      title: date
      type: string
      format: date
      description: A date string, such as 2024-02-03 (YYYY-MM-DD)
    numeric:
      nullable: false
      title: numeric

````