Skip to main content
PATCH
/
pipeline-stages
/
{id}
Update a deal pipeline stage
curl --request PATCH \
  --url https://api.heffl.com/api/v2/pipeline-stages/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "position": 123,
  "probability": 123,
  "rottingInDays": 123
}
'
{
  "id": "<string>",
  "name": "<string>",
  "position": 123,
  "probability": 123
}

Authorizations

x-api-key
string
header
required

API key for authentication. Get yours at app.heffl.com/settings/developers

Path Parameters

id
string
required

Pipeline stage ID (dps_ prefix)

Body

application/json
name
string

Stage name

position
number

Display order in the pipeline (lower comes first)

probability
number

Win probability percentage (0-100)

rottingInDays
number

Days a deal can sit in this stage before it is flagged as rotting

type
enum<string>

Stage type

Available options:
ACTIVE,
WON,
LOST

Response

OK

id
string
required

Pipeline stage ID (dps_ prefix)

name
string
required

Stage name

position
number
required

Display order in the pipeline

probability
number
required

Win probability percentage

type
enum<string>
required

Stage type. Moving a deal to a WON or LOST stage updates deal status.

Available options:
ACTIVE,
WON,
LOST