{
  "opencollection": "1.0.0",
  "info": {
    "name": "HubSpot Analytics Events Access Tokens Action Functions API",
    "version": "3.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Action Functions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Hubspot List Action Functions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/automation/v4/actions/:appId/:definitionId/functions",
            "params": [
              {
                "name": "appId",
                "value": "12345",
                "type": "path",
                "description": "The unique identifier of the HubSpot application"
              },
              {
                "name": "definitionId",
                "value": "action-def-001",
                "type": "path",
                "description": "The unique identifier of the action definition"
              }
            ]
          },
          "docs": "Retrieves all serverless functions associated with a custom action definition. \nFunctions can execute before or after the main action to transform data or \nperform additional processing.\n"
        },
        {
          "info": {
            "name": "Hubspot Retrieve Function by Type",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/automation/v4/actions/:appId/:definitionId/functions/:functionType",
            "params": [
              {
                "name": "appId",
                "value": "12345",
                "type": "path",
                "description": "The unique identifier of the HubSpot application"
              },
              {
                "name": "definitionId",
                "value": "action-def-001",
                "type": "path",
                "description": "The unique identifier of the action definition"
              },
              {
                "name": "functionType",
                "value": "PRE_ACTION_EXECUTION",
                "type": "path",
                "description": "The type of function to operate on"
              }
            ]
          },
          "docs": "Retrieves a function of a specific type for a custom action definition. \nFunction types include PRE_ACTION_EXECUTION and POST_ACTION_EXECUTION.\n"
        },
        {
          "info": {
            "name": "Hubspot Create or Update a Function",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/automation/v4/actions/:appId/:definitionId/functions/:functionType",
            "params": [
              {
                "name": "appId",
                "value": "12345",
                "type": "path",
                "description": "The unique identifier of the HubSpot application"
              },
              {
                "name": "definitionId",
                "value": "action-def-001",
                "type": "path",
                "description": "The unique identifier of the action definition"
              },
              {
                "name": "functionType",
                "value": "PRE_ACTION_EXECUTION",
                "type": "path",
                "description": "The type of function to operate on"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates or updates a serverless function for a custom action definition. \nIf a function of the specified type already exists, it will be replaced \nwith the new function source code.\n"
        },
        {
          "info": {
            "name": "Hubspot Delete a Function by Type",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/automation/v4/actions/:appId/:definitionId/functions/:functionType",
            "params": [
              {
                "name": "appId",
                "value": "12345",
                "type": "path",
                "description": "The unique identifier of the HubSpot application"
              },
              {
                "name": "definitionId",
                "value": "action-def-001",
                "type": "path",
                "description": "The unique identifier of the action definition"
              },
              {
                "name": "functionType",
                "value": "PRE_ACTION_EXECUTION",
                "type": "path",
                "description": "The type of function to operate on"
              }
            ]
          },
          "docs": "Permanently deletes a function of the specified type from a custom action definition. \nThis action cannot be undone.\n"
        },
        {
          "info": {
            "name": "Hubspot Retrieve a Specific Function",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/automation/v4/actions/:appId/:definitionId/functions/:functionType/:functionId",
            "params": [
              {
                "name": "appId",
                "value": "12345",
                "type": "path",
                "description": "The unique identifier of the HubSpot application"
              },
              {
                "name": "definitionId",
                "value": "action-def-001",
                "type": "path",
                "description": "The unique identifier of the action definition"
              },
              {
                "name": "functionType",
                "value": "PRE_ACTION_EXECUTION",
                "type": "path",
                "description": "The type of function to operate on"
              },
              {
                "name": "functionId",
                "value": "func-xyz789",
                "type": "path",
                "description": "The unique identifier of the function"
              }
            ]
          },
          "docs": "Retrieves a specific function by its ID from a custom action definition. \nThis provides the complete function details including source code.\n"
        },
        {
          "info": {
            "name": "Hubspot Delete a Specific Function",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/automation/v4/actions/:appId/:definitionId/functions/:functionType/:functionId",
            "params": [
              {
                "name": "appId",
                "value": "12345",
                "type": "path",
                "description": "The unique identifier of the HubSpot application"
              },
              {
                "name": "definitionId",
                "value": "action-def-001",
                "type": "path",
                "description": "The unique identifier of the action definition"
              },
              {
                "name": "functionType",
                "value": "PRE_ACTION_EXECUTION",
                "type": "path",
                "description": "The type of function to operate on"
              },
              {
                "name": "functionId",
                "value": "func-xyz789",
                "type": "path",
                "description": "The unique identifier of the function"
              }
            ]
          },
          "docs": "Permanently deletes a specific function by its ID from a custom action definition. \nThis action cannot be undone.\n"
        }
      ]
    }
  ],
  "bundled": true
}