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

# Edit Listings

> Update price, promotion status, or user notes for existing listings

## Overview

Edits one or more existing listings. You can update the price, promotion status, and user notes. Max 100 listings per request.

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Your site API key
</ParamField>

## Rate Limit

**5 requests per minute**

## Request Body

<ParamField body="items" type="array" required>
  Array of listings to edit (max 100 items)

  <Expandable title="Item Object">
    <ParamField body="listing_id" type="string" required>
      MongoDB ObjectId of the listing to edit
    </ParamField>

    <ParamField body="price" type="integer" required>
      New listing price in cents
    </ParamField>

    <ParamField body="promoted" type="integer" required>
      Promotion status: `0` = not promoted, `1` = promoted
    </ParamField>

    <ParamField body="user_note" type="string">
      Custom note to display on the listing (max 180 characters).
      Pass empty string `""` to remove the note.
    </ParamField>
  </Expandable>
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Returns `true` if listings were successfully updated
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://api.liquid.tf/api/dev/listing" \
    -H "Content-Type: application/json" \
    -H "X-API-Key: YOUR_SITE_API_KEY" \
    -d '{
      "items": [{
        "listing_id": "66f2b3f4c4a1f7b9a8a4f123",
        "price": 17000,
        "promoted": 0,
        "user_note": "Updated condition notes"
      }]
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.liquid.tf/api/dev/listing', {
    method: 'PATCH',
    headers: {
      'Content-Type': 'application/json',
      'X-API-Key': 'YOUR_SITE_API_KEY'
    },
    body: JSON.stringify({
      items: [{
        listing_id: '66f2b3f4c4a1f7b9a8a4f123',
        price: 17000,
        promoted: 0,
        user_note: 'Updated condition notes'
      }]
    })
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.patch(
      'https://api.liquid.tf/api/dev/listing',
      headers={'X-API-Key': 'YOUR_SITE_API_KEY'},
      json={
          'items': [{
              'listing_id': '66f2b3f4c4a1f7b9a8a4f123',
              'price': 17000,
              'promoted': 0,
              'user_note': 'Updated condition notes'
          }]
      }
  )

  data = response.json()
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>

## Common Use Cases

<CardGroup cols={2}>
  <Card title="Price Updates" icon="dollar-sign">
    Adjust prices based on market conditions
  </Card>

  <Card title="Promotion Toggle" icon="star">
    Feature or un-feature listings
  </Card>

  <Card title="Note Updates" icon="note">
    Update item descriptions or details
  </Card>

  <Card title="Remove Notes" icon="trash">
    Pass `user_note: ""` to remove
  </Card>
</CardGroup>

<Tip>
  Price changes take effect immediately and update the listing's timestamp in search results.
</Tip>
