For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Actions

Operations related to Custom Actions, the plugins that execute bespoke logic within Marketing Automation scenarios to trigger unique actions not native to the platform. Enable integration of custom workflows such as:

  • Sending SMS messages

  • Updating CRM or support tickets

  • Calling internal APIs

  • Triggering webhooks

  • Interacting with third-party systems

Relevant documentation:

List of the custom action properties

get
/scenario_custom_actions/{custom_action_id}/properties
Path parameters
custom_action_idstringRequired

The custom action id

Query parameters
plugin_version_idstringOptional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
countintegerRequired
get/scenario_custom_actions/{custom_action_id}/properties
GET /v1/scenario_custom_actions/{custom_action_id}/properties HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": [
    {
      "writable": false,
      "value": {},
      "origin": "PLUGIN_STATIC",
      "technical_name": "text",
      "deletable": false
    }
  ],
  "count": 1
}

Add a property to the custom action

post
/scenario_custom_actions/{custom_action_id}/properties
Path parameters
custom_action_idstringRequired

The custom action id

Query parameters
plugin_version_idstringOptional
Body
writablebooleanRequiredDefault: false
valueobject · PropertyValueResourceRequired
originstring · enumRequiredPossible values:
technical_namestringRequired
deletablebooleanRequiredDefault: false
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/scenario_custom_actions/{custom_action_id}/properties
POST /v1/scenario_custom_actions/{custom_action_id}/properties HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "writable": false,
  "value": {},
  "origin": "PLUGIN_STATIC",
  "technical_name": "text",
  "deletable": false
}
{
  "status": "ok",
  "data": {
    "writable": false,
    "value": {},
    "origin": "PLUGIN_STATIC",
    "technical_name": "text",
    "deletable": false
  }
}

Search custom action by Id

get
/scenario_custom_actions/{custom_action_id}
Path parameters
custom_action_idstringRequired

The custom action id

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/scenario_custom_actions/{custom_action_id}
GET /v1/scenario_custom_actions/{custom_action_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "group_id": "text",
    "artifact_id": "text",
    "name": "text",
    "organisation_id": "text",
    "version_value": "text",
    "created_by": "text",
    "id": "text",
    "creation_ts": 0,
    "version_id": "text"
  }
}

Update custom action

put
/scenario_custom_actions/{custom_action_id}
Path parameters
custom_action_idstringRequired

The custom action id

Body
group_idstringRequired
artifact_idstringRequired
namestringRequired
organisation_idstringRequired
version_valuestringRead-onlyRequired
created_bystringRead-onlyRequired
idstringRead-onlyRequired
creation_tsinteger · int64Read-onlyRequiredDefault: 0
version_idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/scenario_custom_actions/{custom_action_id}
PUT /v1/scenario_custom_actions/{custom_action_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 79

{
  "group_id": "text",
  "artifact_id": "text",
  "name": "text",
  "organisation_id": "text"
}
{
  "status": "ok",
  "data": {
    "group_id": "text",
    "artifact_id": "text",
    "name": "text",
    "organisation_id": "text",
    "version_value": "text",
    "created_by": "text",
    "id": "text",
    "creation_ts": 0,
    "version_id": "text"
  }
}

Delete custom action

delete
/scenario_custom_actions/{custom_action_id}
Path parameters
custom_action_idstringRequired

The custom action id

Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/scenario_custom_actions/{custom_action_id}
DELETE /v1/scenario_custom_actions/{custom_action_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Search plugins custom action

get
/scenario_custom_actions
Query parameters
organisation_idstringOptional

The organisation owning the plugin custom action

community_idstringOptional

The community owning the custom action

namestringOptional

The name of the plugin instance

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
totalintegerRequired
first_resultintegerRequired
max_resultsintegerRequired
countintegerRequired
statusstring · enumRequiredPossible values:
get/scenario_custom_actions
GET /v1/scenario_custom_actions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "total": 1,
  "first_result": 1,
  "max_results": 1,
  "data": [
    {
      "group_id": "text",
      "artifact_id": "text",
      "name": "text",
      "organisation_id": "text",
      "version_value": "text",
      "created_by": "text",
      "id": "text",
      "creation_ts": 0,
      "version_id": "text"
    }
  ],
  "count": 1,
  "status": "ok"
}

Create custom actions

post
/scenario_custom_actions
Body
group_idstringRequired
artifact_idstringRequired
namestringRequired
organisation_idstringRequired
version_valuestringRead-onlyRequired
created_bystringRead-onlyRequired
idstringRead-onlyRequired
creation_tsinteger · int64Read-onlyRequiredDefault: 0
version_idstringRead-onlyRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/scenario_custom_actions
POST /v1/scenario_custom_actions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 79

{
  "group_id": "text",
  "artifact_id": "text",
  "name": "text",
  "organisation_id": "text"
}
{
  "status": "ok",
  "data": {
    "group_id": "text",
    "artifact_id": "text",
    "name": "text",
    "organisation_id": "text",
    "version_value": "text",
    "created_by": "text",
    "id": "text",
    "creation_ts": 0,
    "version_id": "text"
  }
}

Update The custom action property

put
/scenario_custom_actions/{custom_action_id}/properties/technical_name={technical_name}
Path parameters
custom_action_idstringRequired

The custom action id

technical_namestringRequired

The property technical name

Query parameters
plugin_version_idstringOptional
Body
writablebooleanRequiredDefault: false
valueobject · PropertyValueResourceRequired
originstring · enumRequiredPossible values:
technical_namestringRequired
deletablebooleanRequiredDefault: false
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/scenario_custom_actions/{custom_action_id}/properties/technical_name={technical_name}
PUT /v1/scenario_custom_actions/{custom_action_id}/properties/technical_name={technical_name} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "writable": false,
  "value": {},
  "origin": "PLUGIN_STATIC",
  "technical_name": "text",
  "deletable": false
}
{
  "status": "ok",
  "data": {
    "writable": false,
    "value": {},
    "origin": "PLUGIN_STATIC",
    "technical_name": "text",
    "deletable": false
  }
}

Last updated

Was this helpful?