Zum Hauptinhalt springen
PUT
/
crm
/
v3
/
pipelines
/
{objectType}
/
{pipelineId}
パイプラインを置換
curl --request PUT \
  --url https://api.hubapi.com/crm/v3/pipelines/{objectType}/{pipelineId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "My replaced pipeline",
  "displayOrder": 0,
  "stages": [
    {
      "label": "In Progress",
      "displayOrder": 0,
      "metadata": {
        "ticketState": "OPEN"
      }
    },
    {
      "label": "Done",
      "displayOrder": 1,
      "metadata": {
        "ticketState": "CLOSED"
      }
    }
  ]
}'
{
  "label": "My ticket pipeline",
  "displayOrder": 0,
  "createdAt": "2019-10-30T03:30:17.883Z",
  "updatedAt": "2019-12-07T16:50:06.678Z",
  "archived": false,
  "id": "812723471",
  "stages": [
    {
      "label": "In Progress",
      "displayOrder": 0,
      "metadata": {
        "ticketState": "OPEN"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false,
      "id": "1234912"
    },
    {
      "label": "Done",
      "displayOrder": 0,
      "metadata": {
        "ticketState": "CLOSED"
      },
      "createdAt": "2019-10-30T03:30:17.883Z",
      "updatedAt": "2019-12-07T16:50:06.678Z",
      "archived": false,
      "id": "1234914"
    }
  ]
}
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing Hub -無料ツール
Sales HubSales Hub -無料ツール
Service HubService Hub -無料ツール
Content HubContent Hub -Starter
この API には、次のいずれかのスコープが必要です。
crm.objects.carts.write
crm.objects.orders.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.deals.write
crm.schemas.invoices.write
crm.schemas.listings.write
crm.schemas.orders.write
crm.schemas.services.write
crm.schemas.subscriptions.write
e-commerce
tickets
tickets.highly_sensitive.v2
tickets.sensitive.v2

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

objectType
string
required
pipelineId
string
required

Query Parameters

validateReferencesBeforeDelete
boolean
default:false
validateDealStageUsagesBeforeDelete
boolean
default:false

Body

application/json

An input used to create or replace a pipeline's definition.

displayOrder
integer
required

このパイプラインを表示する順序。2つのパイプラインの「displayOrder」が同じ場合、ラベルのアルファベット順に並べ替えられます。

Example:

0

stages
object[]
required

新規パイプランまたは代替パイプラインの作成に使用されるパイプラインステージの入力。

Example:

"[{\"label\":\"In Progress\",\"metadata\":{\"ticketState\":\"OPEN\"},\"displayOrder\":0},{\"label\":\"Done\",\"metadata\":{\"ticketState\":\"CLOSED\"},\"displayOrder\":1}]"

label
string
required

HubSpotのUIでパイプラインを整理するために使用される固有ラベル

Example:

"My replaced pipeline"

Response

successful operation

A pipeline definition.

createdAt
string<date-time>
required

The date the pipeline was created. The default pipelines will have createdAt = 0.

Example:

"2019-10-30T03:30:17.883+00:00"

archived
boolean
required

パイプラインがアーカイブされているかどうか。

Example:

false

displayOrder
integer
required

The order for displaying this pipeline. If two pipelines have a matching displayOrder, they will be sorted alphabetically by label.

Example:

0

stages
object[]
required

パイプラインに関連付けられたステージ。これは、パイプライン ステージ エンドポイントで取得して更新できます。

Example:

"[{\"id\":\"1234912\",\"label\":\"In Progress\",\"archived\":false,\"metadata\":{\"ticketState\":\"OPEN\"},\"createdAt\":\"2019-10-30T03:30:17.883Z\",\"updatedAt\":\"2019-12-07T16:50:06.678Z\",\"displayOrder\":0},{\"id\":\"1234914\",\"label\":\"Done\",\"archived\":false,\"metadata\":{\"ticketState\":\"CLOSED\"},\"createdAt\":\"2019-10-30T03:30:17.883Z\",\"updatedAt\":\"2019-12-07T16:50:06.678Z\",\"displayOrder\":0}]"

label
string
required

A unique label used to organize pipelines in HubSpot's UI

Example:

"My ticket pipeline"

id
string
required

A unique identifier generated by HubSpot that can be used to retrieve and update the pipeline.

Example:

"812723471"

updatedAt
string<date-time>
required

パイプラインが最後に更新された日付。

Example:

"2019-12-07T16:50:06.678+00:00"

archivedAt
string<date-time>

パイプラインがアーカイブされた日付。「archivedAt」はパイプラインがアーカイブされている場合にのみ存在します。

I