---
title: "Rename, change the role or remind days, or archive (status) a required credential."
---

> 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/credentials/types/{id}`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/field-sales/credentials/types/%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/credentials/types/%7Bid%7D"

response = requests.patch(url)

print(response.text)
```


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