Back to Pipedrive OauthAdd a new stage
Adds a new stage, returns the ID upon success.
Input
type: object
properties:
data:
title: addStageRequest
required:
- name
- pipeline_id
type: object
properties:
name:
type: string
description: The name of the stage
pipeline_id:
type: integer
description: The ID of the pipeline to add stage to
deal_probability:
type: integer
description: >-
The success probability percentage of the deal. Used/shown when deal
weighted values are used.
rotten_flag:
type: boolean
enum:
- true
- false
description: Whether deals in this stage can become rotten
rotten_days:
type: integer
description: >-
The number of days the deals not updated in this stage would become
rotten. Applies only if the `rotten_flag` is set.
Output
title: stageResponse200
type: object
properties:
success:
type: boolean
description: If the request was successful or not
data:
type: object
description: Updated stage object
properties:
id:
type: integer
description: The ID of the stage
order_nr:
type: integer
description: Defines the order of the stage
name:
type: string
description: The name of the stage
active_flag:
type: boolean
description: Whether the stage is active or deleted
deal_probability:
type: integer
description: >-
The success probability percentage of the deal. Used/shown when the
deal weighted values are used.
pipeline_id:
type: integer
description: The ID of the pipeline to add the stage to
rotten_flag:
type: boolean
enum:
- true
- false
description: Whether deals in this stage can become rotten
rotten_days:
type: integer
description: >-
The number of days the deals not updated in this stage would become
rotten. Applies only if the `rotten_flag` is set.
add_time:
type: string
description: 'The stage creation time. Format: YYYY-MM-DD HH:MM:SS.'
update_time:
type: string
description: 'The stage update time. Format: YYYY-MM-DD HH:MM:SS.'