Skip to main content
POST
Create a new custom action definition

Supported products

Authorizations

hapikey
string
query
required

Path Parameters

appId
integer<int32>
required

The unique identifier of the app for which the extension definition is being created.

Body

application/json
actionUrl
string
required

The URL endpoint where the action is executed.

functions
object[]
required

An array of PublicActionFunction objects that define the functions associated with the action, including their type and source.

inputFields
object[]
required

An array of PublicInputFieldDefinition objects defining the input fields required for the action.

labels
object
required

Holds various labels associated with the action, including names and descriptions.

objectTypes
string[]
required

An array of strings representing the types of objects associated with the action.

published
boolean
required

Indicates whether the action is published and available for use.

archivedAt
integer<int64>

The timestamp indicating when the action was archived.

executionRules
object[]

An array of PublicExecutionTranslationRule objects that define rules for executing the action.

inputFieldDependencies
(SINGLE_FIELD · object | CONDITIONAL_SINGLE_FIELD · object)[]

An array that can contain either PublicSingleFieldDependency or PublicConditionalSingleFieldDependency objects, defining dependencies between input fields.

objectRequestOptions
object
outputFields
object[]

An array of OutputFieldDefinition objects specifying the output fields of the action.

Response

successful operation

actionUrl
string
required

The URL endpoint where the action is executed. It is a string.

functions
object[]
required

An array of function identifiers associated with the action, where each item is a PublicActionFunctionIdentifier.

id
string
required

The unique identifier for the action definition. It is a string.

inputFields
object[]
required

An array of input field definitions required for the action. Each item is a PublicInputFieldDefinition object.

labels
object
required

An object containing labels for the action, with each property being a PublicActionLabels object.

objectTypes
string[]
required

An array of strings representing the types of objects associated with the action.

published
boolean
required

A boolean indicating whether the action is published and available for use.

revisionId
string
required

The unique identifier for the current revision of the action definition. It is a string.

archivedAt
integer<int64>

A Unix timestamp in milliseconds representing when the action was archived. It is an integer.

executionRules
object[]

An array of execution translation rules for the action, where each item is a PublicExecutionTranslationRule.

inputFieldDependencies
(SINGLE_FIELD · object | CONDITIONAL_SINGLE_FIELD · object)[]

An array of dependencies between input fields, where each item can be a PublicSingleFieldDependency or PublicConditionalSingleFieldDependency.

objectRequestOptions
object
outputFields
object[]

An array of output field definitions produced by the action. Each item is an OutputFieldDefinition object.

Last modified on September 9, 2026