# Update Price List

#### Structure

##### Price List

<table border="1" id="bkmrk-name-type-descriptio" style="border-collapse: collapse; width: 100%; height: 737.907px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td><td style="height: 29.7969px;">**Required**  
</td></tr><tr><td>`name`</td><td>string</td><td>The name of the price list</td><td>No</td></tr><tr><td>`applies_to`</td><td>string</td><td>The applies to of the price list (everyone, not-customers, customers, groups)</td><td>No</td></tr><tr><td>`start_at`</td><td>timestamp</td><td>The start at of the price list</td><td>No</td></tr><tr><td>`end_at`</td><td>timestamp</td><td>The end at of the price list</td><td>No</td></tr><tr><td>`customer_groups`</td><td>array</td><td>An array of [Customer Group](https://support.aerocommerce.com/books/api/page/update-price-list/update-price-list#bkmrk-customer-group) objects (only required when `applies_to` = "groups")</td><td>No</td></tr></tbody></table>

##### Customer Group

<table border="1" id="bkmrk-name-type-descriptio-3" style="border-collapse: collapse; width: 100%; height: 737.907px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td><td style="height: 29.7969px;">**Required**  
</td></tr><tr><td>`id`</td><td>int</td><td>The id of the customer group</td><td>Yes</td></tr><tr><td>`start_at`</td><td>timestamp</td><td>The start at for the customer group</td><td>No</td></tr><tr><td>`end_at`</td><td>timestamp</td><td>The end at for the customer group</td><td>No</td></tr></tbody></table>

#### Example Request

```
PUT /api/price-lists/{id}
```

```json
{
    "name": "API Test Updated",
    "applies_to": "customers"
}
```

#### Example Response

```json
{
    "priceList": {
        "id": 1
    }
}
```