HubSpot · JSON Structure

Hubspot Custom Workflow Actions Action Function Collection Structure

A collection of action functions

Type: object Properties: 1 Required: 1
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

ActionFunctionCollection is a JSON Structure definition published by HubSpot, describing 1 property, of which 1 is required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

results

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "A collection of action functions",
  "name": "ActionFunctionCollection",
  "properties": {
    "results": {
      "type": "array",
      "description": "List of action functions",
      "items": {
        "type": "object",
        "description": "A serverless function associated with an action",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the function"
          },
          "functionType": {
            "type": "string",
            "description": "The type of function",
            "enum": [
              "PRE_ACTION_EXECUTION",
              "PRE_FETCH_OPTIONS",
              "POST_FETCH_OPTIONS",
              "POST_ACTION_EXECUTION"
            ]
          },
          "functionSource": {
            "type": "string",
            "description": "The JavaScript source code of the function"
          }
        },
        "required": [
          "id",
          "functionType",
          "functionSource"
        ]
      }
    }
  },
  "required": [
    "results"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}