div-action-submit

Sends variables from the container by link. Data sending configuration can be defined by the host app. By default, variables are sent as JSON in the request body using the POST method.

Parameters

Parameters Description
container_id

string

Required parameter.

ID of the container with the variables to be sent.

Available platforms: iOS.

request

object

Required parameter.

HTTP request parameters for configuring the sending of data.

The value has the type request.

Available platforms: iOS.

type

string

Required parameter.

The value must always be submit.

Available platforms: iOS.

on_fail_actions

array

Actions when sending data is unsuccessful.

Available platforms: iOS.

on_success_actions

array

Actions when sending data is successful.

Available platforms: iOS.

request

Parameters Description
url

string

Required parameter.

Link for sending data from the container.

The value must be a valid URL.

headers

array

HTTP request headers.

method

string

HTTP request method.

Possible values: get, post, put, patch, delete, head, options.

Default value: post.

Parameters Description
name

string

Required parameter.

value

string

Required parameter.

JSON
{
  type*: "submit",
  container_id*: "string",
  on_fail_actions: [
    {
      download_callbacks: {
        on_fail_actions: [ div-action, ... ],
        on_success_actions: [ div-action, ... ]
      },
      is_enabled: "bool_int",
      log_id*: "string",
      log_url: "string",
      menu_items: [
        {
          action: div-action,
          actions: [ div-action, ... ],
          text*: "string"
        },
        ...
      ],
      payload: "object",
      referer: "string",
      scope_id: "string",
      target: "string",
      typed: div-action-typed,
      url: "string"
    },
    ...
  ],
  on_success_actions: [
    {
      download_callbacks: {
        on_fail_actions: [ div-action, ... ],
        on_success_actions: [ div-action, ... ]
      },
      is_enabled: "bool_int",
      log_id*: "string",
      log_url: "string",
      menu_items: [
        {
          action: div-action,
          actions: [ div-action, ... ],
          text*: "string"
        },
        ...
      ],
      payload: "object",
      referer: "string",
      scope_id: "string",
      target: "string",
      typed: div-action-typed,
      url: "string"
    },
    ...
  ],
  request*: {
    headers: [
      {
        name*: "string",
        value*: "string"
      },
      ...
    ],
    method: "string",
    url*: "string"
  }
}