---
title: "Edit a location (any field; a pin or a changed address re-places the fence; status archived hides it)"
---

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

Path: Channel Automation API › Field Sales

`PATCH /api/field-sales/locations/{id}`

## Code samples

### cURL

```bash
curl --request PATCH \
  --url https://api.channelautomation.com/api/field-sales/locations/%7Bid%7D
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/field-sales/locations/%7Bid%7D';
const options = {method: 'PATCH'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/field-sales/locations/%7Bid%7D"

response = requests.patch(url)

print(response.text)
```


Source: https://developer.channelautomations.com/api/patch-api-field-sales-locations-id/index.md
