Skip to main content
PUT

Update a sales channel

Scope:sales:sales-channels.write
https://api.holded.com/api/v2/sales-channels/{salesChannelId}

Updates an existing sales channel. You can change the name, color, and account number. Updating a sales channel does not affect documents or contacts that already reference it.

Parameters

Path parameters

salesChannelIdstringrequired

Sales Channel ID (24-char hex ObjectId)

Request body

object
namestring

Display name for the sales channel

colorstring | null

Hex color code for UI display

Request

python
import requests

url = "https://api.holded.com/api/v2/sales-channels/{salesChannelId}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "name": "string",
    "color": "#FF5733"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "string"
}

Success responses

200Sales channel updatedapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Sales channel not foundapplication/json
422Validation errorapplication/json