---
title: "Updates a Price Book Entry's Custom Image Field"
method: PUT
path: "/PricebookEntry/{id}/ImageField/{fieldName}/{fileName}"
tags: ["PriceBookEntries"]
---

# Updates a Price Book Entry's Custom Image Field

`PUT /PricebookEntry/{id}/ImageField/{fieldName}/{fileName}`

## Request

- Base URL: `https://api.insightly.com/v3.1`
- URL: `https://api.insightly.com/v3.1/PricebookEntry/{id}/ImageField/{fieldName}/{fileName}`
- Auth: none declared. Required headers: `Authorization`

This action will replace any existing Image attached to the Price Book Entry's image field. The contents of the image data should be sent as binary data in the request payload. See our <a href="http://github.com/Insightly" target="_blank">client libraries</a> for an example of how this is done.

## Path parameters

- `id` integer, required
- `fieldName` string, required
- `fileName` string, required

## Headers

- `Authorization` string, required

## Request body `application/octet-stream`

- string, binary

## Response `201`

Request succeeded.

- object[]
  - `PRICEBOOK_ENTRY_ID` integer, required
  - `PRICEBOOK_ID` integer, required
  - `PRODUCT_ID` integer, required
  - `CURRENCY_CODE` string, string
  - `PRICE` number, required
  - `USE_STANDARD_PRICE` boolean
  - `ACTIVE` boolean
  - `CREATED_USER_ID` integer
  - `DATE_CREATED_UTC` string, date-time
  - `DATE_UPDATED_UTC` string, date-time
  - `CUSTOMFIELDS` APICustomField[]
    - `FIELD_NAME` string
    - `FIELD_VALUE` object

## Other responses

- `400`: Data validation error.
- `401`: Authentication failed.
- `402`: Storage limit reached.
- `403`: API User does not have access to Record.
- `404`: Record not found.
- `417`: Image update failed.

---

[API](https://skmtc.dev/insightly/apis/insightly-api-v3-1.md) - [All operations](https://skmtc.dev/insightly/apis/insightly-api-v3-1/llms.txt) - [OpenAPI document](https://skmtc.dev/insightly/apis/insightly-api-v3-1/revisions/e7df0c3b65fb?raw)
