curl --request PUT \
--url 'https://api.hubapi.com/automation/v4/actions/{appId}/{definitionId}/functions/{functionType}?hapikey=' \
--header 'Content-Type: text/plain' \
--data '<string>'{
"functionType": "POST_ACTION_EXECUTION",
"id": "<string>"
}Add a function for a given definition.
curl --request PUT \
--url 'https://api.hubapi.com/automation/v4/actions/{appId}/{definitionId}/functions/{functionType}?hapikey=' \
--header 'Content-Type: text/plain' \
--data '<string>'{
"functionType": "POST_ACTION_EXECUTION",
"id": "<string>"
}Supported products
The ID of the app to which the function will be added.
The ID of the definition to which the function will be added.
The type of function to add, with accepted values: POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS.
POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS The body is of type string.
successful operation
The type of function, with accepted values: POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS.
POST_ACTION_EXECUTION, POST_FETCH_OPTIONS, PRE_ACTION_EXECUTION, PRE_FETCH_OPTIONS The unique identifier for the function.
Was this page helpful?