Skip to content

HubSpot: Pipelines schemas

12 HubSpot schemas with complete fields and constraints.

← Pipelines operations · All schemas

Create Stage — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
displayOrderintegerRequired within parentAn integer indicating the position of this stage within the pipeline. Lower numbers indicate earlier stages.
Format: int32
labelstringRequired within parentThe name of the pipeline stage. It is a string that provides a human-readable identifier for the stage.
metadataobjectRequired within parentAn object containing additional properties for the stage. Each property is a key-value pair where both key and value are strings.
Additional keys: see wildcard field
metadata.*stringAdditional keys
stageIdstringOptionalA string that uniquely identifies the stage within the pipeline.

Create Stage — response body

FieldTypePresenceDescription and constraints
$objectRoot
archivedbooleanRequired within parentA boolean indicating whether the stage is archived.
archivedAtstringOptionalThe date and time when the stage was archived, in ISO 8601 format.
Format: date-time
createdAtstringRequired within parentThe date and time when the stage was created, in ISO 8601 format.
Format: date-time
displayOrderJSONRequired within parent
displayOrder (anyOf 1)integerAlternativeAn integer indicating the position of this stage within the pipeline, determining its order relative to other stages.
Format: int32
displayOrder (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentA unique string identifier for the pipeline stage.
labelstringRequired within parentThe name or title of the pipeline stage, represented as a string.
metadataobjectRequired within parentAn object containing additional metadata for the stage, with string values for each property.
Additional keys: see wildcard field
metadata.*stringAdditional keys
updatedAtstringRequired within parentThe date and time when the stage was last updated, in ISO 8601 format.
Format: date-time
writePermissionsstringRequired within parentA string indicating the write permissions for the stage. Valid values include 'CRM_PERMISSIONS_ENFORCEMENT', 'READ_ONLY', and 'INTERNAL_ONLY'.
Known values: CRM_PERMISSIONS_ENFORCEMENT, INTERNAL_ONLY, READ_ONLY

Create pipeline — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
displayOrderintegerRequired within parentAn integer indicating the order in which the pipeline appears relative to other pipelines.
Format: int32
labelstringRequired within parentA string representing the name or title of the pipeline.
pipelineIdstringOptionalA string that uniquely identifies the pipeline. This property is optional when creating a new pipeline.
stagesarrayRequired within parentAn array of PipelineStageInput objects, each representing a stage within the pipeline.
stages[]ModelEach itemExpand Create Stage — request body — body

Referenced models: Create Stage — request body — body

Create pipeline — response body

FieldTypePresenceDescription and constraints
$objectRoot
archivedbooleanRequired within parentA boolean indicating whether the pipeline is archived.
archivedAtstringOptionalThe date and time when the pipeline was archived, in ISO 8601 format.
Format: date-time
createdAtstringRequired within parentThe date and time when the pipeline was created, in ISO 8601 format.
Format: date-time
displayOrderJSONRequired within parent
displayOrder (anyOf 1)integerAlternativeAn integer indicating the order in which the pipeline appears relative to other pipelines.
Format: int32
displayOrder (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
idstringRequired within parentA unique string identifier for the pipeline.
labelstringRequired within parentThe name or title of the pipeline, represented as a string.
stagesarrayRequired within parentAn array of PipelineStage objects that define the stages within this pipeline.
stages[]ModelEach itemExpand Create Stage — response body
updatedAtstringRequired within parentThe date and time when the pipeline was last updated, in ISO 8601 format.
Format: date-time

Referenced models: Create Stage — response body

List stages — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of pipeline stages, each represented by a PipelineStage object.
results[]ModelEach itemExpand Create Stage — response body

Referenced models: Create Stage — response body

Retrieve pipelines — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of Pipeline objects, each representing a specific pipeline within the collection.
results[]ModelEach itemExpand Create pipeline — response body

Referenced models: Create pipeline — response body

Retrieve stage audit — response body

FieldTypePresenceDescription and constraints
$objectRoot
resultsarrayRequired within parentAn array of PublicAuditInfo objects, each representing an individual audit log entry. These entries contain details about actions performed, identifiers, portal IDs, and other relevant audit information.
results[]ModelEach itemExpand Retrieve stage audit — response body — results item

Referenced models: Retrieve stage audit — response body — results item

Retrieve stage audit — response body — results item

FieldTypePresenceDescription and constraints
$objectRoot
actionstringRequired within parentA string describing the action that was performed, such as 'create', 'update', or 'delete'.
fromUserIdJSONOptional
fromUserId (anyOf 1)integerAlternativeThe unique identifier of the user who performed the action, represented as an integer.
Format: int32
fromUserId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
identifierstringRequired within parentA string that uniquely identifies the specific audit entry.
messagestringOptionalA string providing additional information or context about the action taken.
portalIdJSONRequired within parent
portalId (anyOf 1)integerAlternativeThe unique identifier for the HubSpot account (portal) where the action took place. It is an integer.
Format: int32
portalId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
rawObjectobjectOptionalAn object containing the raw data associated with the action. This can include detailed information about the state before and after the action.
timestampstringOptionalThe date and time when the action occurred, in ISO 8601 format.
Format: date-time

Update pipeline (Partial) — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
archivedbooleanOptionalA boolean value that indicates whether the pipeline is archived.
displayOrderintegerOptionalAn integer indicating the position of the pipeline in a list, which determines its display order.
Format: int32
labelstringOptionalThe name of the pipeline, represented as a string.

Update pipeline (Replace) — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
displayOrderintegerRequired within parentAn integer indicating the order in which the pipeline appears relative to other pipelines.
Format: int32
labelstringRequired within parentA string representing the name of the pipeline.
stagesarrayRequired within parentAn array of PipelineStageInput objects, each representing a stage within the pipeline.
stages[]ModelEach itemExpand Create Stage — request body — body

Referenced models: Create Stage — request body — body

Update stage (Partial) — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
archivedbooleanOptionalA boolean indicating whether the pipeline stage is archived.
displayOrderintegerOptionalAn integer specifying the order in which the stage appears relative to other stages.
Format: int32
labelstringOptionalA string representing the name or title of the pipeline stage.
metadataobjectRequired within parentAn object containing additional properties related to the pipeline stage, where each property is a string.
Additional keys: see wildcard field
metadata.*stringAdditional keys

Update stage — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
displayOrderintegerRequired within parentAn integer indicating the position of the stage within the pipeline.
Format: int32
labelstringRequired within parentThe name of the pipeline stage, represented as a string.
metadataobjectRequired within parentAn object containing additional properties related to the stage, where each property is a string.
Additional keys: see wildcard field
metadata.*stringAdditional keys

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.