PUT
Update a sales channel
Scope:
sales:sales-channels.writehttps://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
salesChannelId
stringrequiredSales 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/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Sales channel not foundapplication/json422Validation errorapplication/json