---
title: "Update expense artifact"
method: PUT
path: "/expense_lines/expense_artifacts/{id}"
tags: ["ExpenseArtifact"]
---

# Update expense artifact

`PUT /expense_lines/expense_artifacts/{id}`

## Request

- Base URL: `https://r38.coupadev.com/api`
- URL: `https://r38.coupadev.com/api/expense_lines/expense_artifacts/{id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://r38.coupadev.com/oauth2/authorizations/new`
    - Token URL: `https://r38.coupadev.com/oauth2/token`
  - OAuth 2
    - Client credentials
    - Token URL: `https://r38.coupadev.com/oauth2/access_tokens`
- TypeScript: <https://skmtc.dev/coupa/apis/coupa-api-4/docs/expense_lines/expense_artifacts/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update expense artifact

## Path parameters

- `id` integer, required

## Query parameters

- `return_object` 'limited' | 'shallow' | 'none'
- `filter` string

## Request body

- ExpenseArtifact
  - `created-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `created-by` UserSimple
    - `avatar-thumb-url` string, string: Avatar url
    - `created-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
    - `email` string, string(255), required: email
    - `employee-number` string, string(255): employee number
    - `firstname` string, string(40), required: first name
    - `fullname` string, string(255): full name
    - `id` integer: Coupa unique identifier
    - `lastname` string, string(40), required: last name
    - `login` string, string(255), required: login
    - `salesforce-id` string, string(255), required: salesforce_id
    - `updated-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `digitization-error` string, string: digitization error
  - `digitization-status` string, string(25): digitization status
  - `digitized-receipt-content-type` string, string(255): digitized_receipt_content_type
  - `digitized-receipt-file-name` string, string(255): digitized_receipt_file_name
  - `digitized-receipt-file-size` integer: digitized_receipt_file_size
  - `external-src-ref` string, string(255): External system's unique identifier for transaction
  - `id` integer: Coupa unique identifier
  - `image-content-type` string, string(255): image_content_type
  - `image-file-name` string, string(255): image_file_name
  - `image-file-size` string, string(255): image_file_size
  - `image-rotation` integer: Image rotation angle
  - `ocr-status` string, string(50): OCR Status
  - `placeholder` boolean: Placeholder flag, pending parsing
  - `source-content-type` string, string(255): source_content_type
  - `source-file-name` string, string(255): source_file_name
  - `source-file-size` string, string(255): source_file_size
  - `updated-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `updated-by` UserSimple
    - `avatar-thumb-url` string, string: Avatar url
    - `created-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
    - `email` string, string(255), required: email
    - `employee-number` string, string(255): employee number
    - `firstname` string, string(40), required: first name
    - `fullname` string, string(255): full name
    - `id` integer: Coupa unique identifier
    - `lastname` string, string(40), required: last name
    - `login` string, string(255), required: login
    - `salesforce-id` string, string(255), required: salesforce_id
    - `updated-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `url` string, string: External link to artifact

## Response `200`

ExpenseArtifact object

- ExpenseArtifact[]
  - `created-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `created-by` UserSimple
    - `avatar-thumb-url` string, string: Avatar url
    - `created-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
    - `email` string, string(255), required: email
    - `employee-number` string, string(255): employee number
    - `firstname` string, string(40), required: first name
    - `fullname` string, string(255): full name
    - `id` integer: Coupa unique identifier
    - `lastname` string, string(40), required: last name
    - `login` string, string(255), required: login
    - `salesforce-id` string, string(255), required: salesforce_id
    - `updated-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `digitization-error` string, string: digitization error
  - `digitization-status` string, string(25): digitization status
  - `digitized-receipt-content-type` string, string(255): digitized_receipt_content_type
  - `digitized-receipt-file-name` string, string(255): digitized_receipt_file_name
  - `digitized-receipt-file-size` integer: digitized_receipt_file_size
  - `external-src-ref` string, string(255): External system's unique identifier for transaction
  - `id` integer: Coupa unique identifier
  - `image-content-type` string, string(255): image_content_type
  - `image-file-name` string, string(255): image_file_name
  - `image-file-size` string, string(255): image_file_size
  - `image-rotation` integer: Image rotation angle
  - `ocr-status` string, string(50): OCR Status
  - `placeholder` boolean: Placeholder flag, pending parsing
  - `source-content-type` string, string(255): source_content_type
  - `source-file-name` string, string(255): source_file_name
  - `source-file-size` string, string(255): source_file_size
  - `updated-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `updated-by` UserSimple
    - `avatar-thumb-url` string, string: Avatar url
    - `created-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
    - `email` string, string(255), required: email
    - `employee-number` string, string(255): employee number
    - `firstname` string, string(40), required: first name
    - `fullname` string, string(255): full name
    - `id` integer: Coupa unique identifier
    - `lastname` string, string(40), required: last name
    - `login` string, string(255), required: login
    - `salesforce-id` string, string(255), required: salesforce_id
    - `updated-at` string, datetime: Automatically created by Coupa in the format YYYY-MM-DDTHH:MM:SS+HH:MMZ
  - `url` string, string: External link to artifact

## Other responses

- `400`: Bad Request
- `404`: Not Found

---

[API](https://skmtc.dev/coupa/apis/coupa-api-4.md) - [All operations](https://skmtc.dev/coupa/apis/coupa-api-4/llms.txt) - [OpenAPI document](https://skmtc.dev/coupa/apis/coupa-api-4/revisions/adc09cabd758?raw)
