PATCH
/
automation
/
v4
/
actions
/
{appId}
/
{definitionId}
既存のアクション定義を更新
curl --request PATCH \
  --url https://api.hubapi.com/automation/v4/actions/{appId}/{definitionId} \
  --header 'Content-Type: application/json' \
  --data '{
  "inputFields": [
    {
      "isRequired": true,
      "automationFieldType": "<string>",
      "typeDefinition": {
        "helpText": "<string>",
        "referencedObjectType": "CONTACT",
        "name": "<string>",
        "options": [
          {
            "hidden": false,
            "displayOrder": 123,
            "doubleData": 123,
            "description": "",
            "readOnly": false,
            "label": "",
            "value": ""
          }
        ],
        "description": "<string>",
        "externalOptionsReferenceType": "<string>",
        "label": "<string>",
        "type": "string",
        "fieldType": "booleancheckbox",
        "optionsUrl": "<string>",
        "externalOptions": true
      },
      "supportedValueTypes": [
        "STATIC_VALUE"
      ]
    }
  ],
  "outputFields": [
    {
      "typeDefinition": {
        "helpText": "<string>",
        "referencedObjectType": "CONTACT",
        "name": "<string>",
        "options": [
          {
            "hidden": false,
            "displayOrder": 123,
            "doubleData": 123,
            "description": "",
            "readOnly": false,
            "label": "",
            "value": ""
          }
        ],
        "description": "<string>",
        "externalOptionsReferenceType": "<string>",
        "label": "<string>",
        "type": "string",
        "fieldType": "booleancheckbox",
        "optionsUrl": "<string>",
        "externalOptions": true
      }
    }
  ],
  "actionUrl": "<string>",
  "inputFieldDependencies": [
    {
      "dependencyType": "SINGLE_FIELD",
      "controllingFieldName": "<string>",
      "dependentFieldNames": [
        "<string>"
      ]
    }
  ],
  "published": true,
  "executionRules": [
    {
      "labelName": "<string>",
      "conditions": {}
    }
  ],
  "objectTypes": [
    "<string>"
  ],
  "objectRequestOptions": {
    "properties": [
      "<string>"
    ]
  },
  "labels": {}
}'
{
  "functions": [
    {
      "functionType": "PRE_ACTION_EXECUTION",
      "id": "<string>"
    }
  ],
  "actionUrl": "<string>",
  "published": true,
  "labels": {},
  "inputFields": [
    {
      "isRequired": true,
      "automationFieldType": "<string>",
      "typeDefinition": {
        "helpText": "<string>",
        "referencedObjectType": "CONTACT",
        "name": "<string>",
        "options": [
          {
            "hidden": false,
            "displayOrder": 123,
            "doubleData": 123,
            "description": "",
            "readOnly": false,
            "label": "",
            "value": ""
          }
        ],
        "description": "<string>",
        "externalOptionsReferenceType": "<string>",
        "label": "<string>",
        "type": "string",
        "fieldType": "booleancheckbox",
        "optionsUrl": "<string>",
        "externalOptions": true
      },
      "supportedValueTypes": [
        "STATIC_VALUE"
      ]
    }
  ],
  "outputFields": [
    {
      "typeDefinition": {
        "helpText": "<string>",
        "referencedObjectType": "CONTACT",
        "name": "<string>",
        "options": [
          {
            "hidden": false,
            "displayOrder": 123,
            "doubleData": 123,
            "description": "",
            "readOnly": false,
            "label": "",
            "value": ""
          }
        ],
        "description": "<string>",
        "externalOptionsReferenceType": "<string>",
        "label": "<string>",
        "type": "string",
        "fieldType": "booleancheckbox",
        "optionsUrl": "<string>",
        "externalOptions": true
      }
    }
  ],
  "revisionId": "<string>",
  "archivedAt": 123,
  "inputFieldDependencies": [
    {
      "dependencyType": "SINGLE_FIELD",
      "controllingFieldName": "<string>",
      "dependentFieldNames": [
        "<string>"
      ]
    }
  ],
  "executionRules": [
    {
      "labelName": "<string>",
      "conditions": {}
    }
  ],
  "id": "<string>",
  "objectTypes": [
    "<string>"
  ],
  "objectRequestOptions": {
    "properties": [
      "<string>"
    ]
  }
}
サポートされる製品
次のいずれかの製品またはそれ以上が必要です。
Marketing HubMarketing HubProfessional
Sales HubSales HubProfessional
Service HubService HubProfessional
Content HubContent Hub無料ツール

Authorizations

hapikey
string
query
required

Path Parameters

definitionId
string
required

カスタムアクション定義のID。

appId
integer
required

アプリのID。

Body

application/json
inputFields
object[]
outputFields
object[]
actionUrl
string
inputFieldDependencies
(SINGLE_FIELD · object | CONDITIONAL_SINGLE_FIELD · object)[]
published
boolean
executionRules
object[]
objectTypes
string[]
objectRequestOptions
object
labels
object

Response

successful operation

functions
object[]
required
actionUrl
string
required
published
boolean
required
labels
object
required
inputFields
object[]
required
revisionId
string
required
id
string
required
objectTypes
string[]
required
outputFields
object[]
archivedAt
integer
inputFieldDependencies
(SINGLE_FIELD · object | CONDITIONAL_SINGLE_FIELD · object)[]
executionRules
object[]
objectRequestOptions
object