HubSpot: Update pipeline (Partial)
HubSpot pipelines.partiallyUpdatePipeline: arguments, response, policy and SDK examples.
← Pipelines operations · Get started
Operation hubspot.pipelines_partially_update_pipeline
Provider route: PATCH /crm/pipelines/2026-09/{objectType}/{pipelineId}. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/hubspot with npm, or alter-sdk-hubspot with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { HubSpotIntegration } from "@alter-ai/hubspot";
async function execute(input: Parameters<HubSpotIntegration["pipelines"]["partiallyUpdatePipeline"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new HubSpotIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.pipelines.partiallyUpdatePipeline(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_hubspot import HubSpotIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = HubSpotIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.pipelines.partially_update_pipeline(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.objectType | string | Required within parent | |
path.pipelineId | string | Required within parent | |
query | object | Optional | Additional keys: not allowed |
query.validateDealStageUsagesBeforeDelete | boolean | Optional | Default: true |
query.validateReferencesBeforeDelete | boolean | Optional | Default: true |
body | Model | Required within parent | Expand Update pipeline (Partial) — request body — body |
Referenced models: Update pipeline (Partial) — request body — body
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Create pipeline — response body |
Referenced models: Create pipeline — response body
Schemas
Section titled “Schemas”Create pipeline — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
archived | boolean | Required within parent | A boolean indicating whether the pipeline is archived. |
archivedAt | string | Optional | The date and time when the pipeline was archived, in ISO 8601 format. Format: date-time |
createdAt | string | Required within parent | The date and time when the pipeline was created, in ISO 8601 format. Format: date-time |
displayOrder | JSON | Required within parent | |
displayOrder (anyOf 1) | integer | Alternative | An integer indicating the order in which the pipeline appears relative to other pipelines. Format: int32 |
displayOrder (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
id | string | Required within parent | A unique string identifier for the pipeline. |
label | string | Required within parent | The name or title of the pipeline, represented as a string. |
stages | array | Required within parent | An array of PipelineStage objects that define the stages within this pipeline. |
stages[] | Model | Each item | Expand Create Stage — response body |
updatedAt | string | Required within parent | The date and time when the pipeline was last updated, in ISO 8601 format. Format: date-time |
Referenced models: Create Stage — response body
Update pipeline (Partial) — request body — body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
archived | boolean | Optional | A boolean value that indicates whether the pipeline is archived. |
displayOrder | integer | Optional | An integer indicating the position of the pipeline in a list, which determines its display order. Format: int32 |
label | string | Optional | The name of the pipeline, represented as a string. |
Create Stage — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
archived | boolean | Required within parent | A boolean indicating whether the stage is archived. |
archivedAt | string | Optional | The date and time when the stage was archived, in ISO 8601 format. Format: date-time |
createdAt | string | Required within parent | The date and time when the stage was created, in ISO 8601 format. Format: date-time |
displayOrder | JSON | Required within parent | |
displayOrder (anyOf 1) | integer | Alternative | An integer indicating the position of this stage within the pipeline, determining its order relative to other stages. Format: int32 |
displayOrder (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
id | string | Required within parent | A unique string identifier for the pipeline stage. |
label | string | Required within parent | The name or title of the pipeline stage, represented as a string. |
metadata | object | Required within parent | An object containing additional metadata for the stage, with string values for each property. Additional keys: see wildcard field |
metadata.* | string | Additional keys | |
updatedAt | string | Required within parent | The date and time when the stage was last updated, in ISO 8601 format. Format: date-time |
writePermissions | string | Required within parent | A 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 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: hubspot.pipelines_partially_update_pipeline. Catalog operation: pipelines_partially_update_pipeline. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["crm.objects.carts.write", "crm.objects.orders.write", "crm.objects.tickets.highly_sensitive.write", "crm.objects.tickets.sensitive.write", "crm.objects.users.write", "crm.pipelines.orders.write", "crm.schemas.appointments.write", "crm.schemas.carts.write", "crm.schemas.commercepayments.write", "crm.schemas.companies.write", "crm.schemas.contacts.write", "crm.schemas.courses.write", "crm.schemas.custom.write", "crm.schemas.deals.write", "crm.schemas.invoices.write", "crm.schemas.listings.write", "crm.schemas.orders.write", "crm.schemas.projects.write", "crm.schemas.quotes.write", "crm.schemas.services.write", "crm.schemas.subscriptions.write", "crm.schemas.tickets.write", "e-commerce", "tickets", "tickets.highly_sensitive.v2", "tickets.sensitive.v2"]