PUT
Update a funnel
Scope:
crm:funnels.writehttps://api.holded.com/api/v2/funnels/{funnelId}Updates an existing funnel.
Parameters
Path parameters
funnelId
stringrequiredFunnel ID
Request body
object
namestring
Funnel name
stages[]object[]
Funnel stages
idstring
Existing stage ID to update
namestring
Stage name
descriptionstring
Stage description
deal_probabilityinteger
Deal probability percentage
rotting_daysinteger
Days before a deal is considered rotting
Request
python
import requests
url = "https://api.holded.com/api/v2/funnels/{funnelId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"name": "string",
"stages": [
{
"id": "507f1f77bcf86cd799439011",
"name": "string",
"description": "string",
"deal_probability": 0,
"rotting_days": 0
}
]
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Response
json
{
"id": "string"
}Success responses
200Funnel updatedapplication/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Funnel not foundapplication/json422Validation errorapplication/json429Rate limit exceededapplication/json