---
title: "Replace who works a shift (user_ids)"
---

> 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

`PUT /api/field-sales/shifts/{id}/assignments`

## Code samples

### cURL

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

### TypeScript

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

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/shifts/%7Bid%7D/assignments"

response = requests.put(url)

print(response.text)
```


Source: https://developer.channelautomations.com/api/put-api-field-sales-shifts-id-assignments/index.md
