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

# Update Purchase Invoice Line Item



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#DYNAMICS_BUSINESS_CENTRAL_UPDATE_PURCHASE_INVOICE_LINE_ITEM
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#DYNAMICS_BUSINESS_CENTRAL_UPDATE_PURCHASE_INVOICE_LINE_ITEM:
    post:
      summary: Update Purchase Invoice Line Item
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: DYNAMICS_BUSINESS_CENTRAL_UPDATE_PURCHASE_INVOICE_LINE_ITEM
                parameters:
                  type: object
                  properties:
                    purchaseInvoiceLineId:
                      type: string
                      description: >-
                        Purchase Invoice Line ID : The record ID of the Purchase
                        Invoice Line to update.
                    lineType:
                      type: string
                      description: Line Type
                      enum:
                        - Item
                        - Resource
                        - Comment
                        - Account
                        - Fixed Asset
                        - Charge
                    resourceNumber:
                      type: string
                      description: >-
                        Number : Specify the number of the item, account,
                        resource, charge, or fixed asset associated with the
                        Purchase Invoice Line. Items and resources will be
                        created if they do not exist. (example: "1896-S")
                    lineDescription:
                      type: string
                      description: 'Description (example: "ATHENS Desk")'
                    quantity:
                      type: string
                      description: 'Quantity (example: "20")'
                    unitCost:
                      type: string
                      description: 'Unit Cost (example: "10.99")'
                    accountId:
                      type: string
                      description: >-
                        Account ID : Specify the ID of the Account that the
                        Purchase Invoice Line is related to. (example:
                        "00000000-0000-0000-0000-000000000000")
                    measureCodeUnit:
                      type: string
                      description: 'Unit of Measure Code (example: "PCS")'
                    taxPercent:
                      type: string
                      description: 'Tax Percent (example: "6.00004")'
                    taxGroupCode:
                      type: string
                      description: 'Tax Group Code (example: "FURNITURE")'
                    purchaseInvoiceLineAdditionalFields:
                      type: object
                      description: >-
                        Additional Fields : Specify additional fields to include
                        on this Purchase Invoice Line as JSON. See the docs
                        (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchaseinvoiceline)
                        for available fields. (example: "{
                          documentId: "5d115c9c-44e3-ea11-bb43-000d3a2feca1",
                        }")
                      properties: {}
                  required:
                    - purchaseInvoiceLineId
                    - lineType
                    - resourceNumber
                    - lineDescription
                    - quantity
                    - unitCost
                  x-integration: dynamicsbusinesscentral
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````