Get Event Template Elements

Get all elements of the specified event template.

Get Event Template Elements

GET https://environment.monterosa.cloud/api/v2/event_templates/:event_template_id/elements

Path Parameters

Name
Type
Description

event_template_id

string

Event Template ID.

Query Parameters

Name
Type
Description

include

string

Include additional relation to the response. For example, include=stats adds element stats to the response. Possible values: stats.

Headers

Name
Type
Description

Authorization

string

Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb

Content-Type

string

application/vnd.api+json

{
  "data": [
    {
      "id": "ee05b935-0dbc-476c-9417-6075a7e2ec1d",
      "type": "elements",
      "attributes": {
        "offset": 0,
        "duration": 60,
        "content_type": "rpoll-custom",
        "start_mode": "manual",
        "state": "non_scheduled",
        "updated_at": null,
        "updated_at_iso": null,
        "revoked_at": null,
        "revoked_at_iso": null,
        "custom_fields": [],
        "label": "Question",
        "question": {
          "label": "Question",
          "fields": [
            {
              "key": "text",
              "values": {
                "en": "Question"
              }
            }
          ],
          "filter_keywords": [],
          "options": [
            {
              "label": "Option #1",
              "fields": [
                {
                  "key": "text",
                  "values": {
                    "en": "Option #1"
                  }
                }
              ],
              "filter_keywords": []
            },
            {
              "label": "Option #2",
              "fields": [
                {
                  "key": "text",
                  "values": {
                    "en": "Option #2"
                  }
                }
              ],
              "filter_keywords": []
            }
          ]
        },
        "reveal_results_mode": "vote",
        "require_verified_user": false,
        "include_in_latest_results_feed": true,
        "certification": false,
        "enmasse_id": null,
        "max_votes_per_user": 5,
        "max_votes_per_option": 2,
        "min_options_per_vote": 1,
        "max_options_per_vote": 2
      },
      "relationships": {
        "event_template": {
          "data": {
            "id": "cafc2ae8-2cd6-4664-bb20-e9e30a5f0e8d",
            "type": "event_templates"
          }
        },
        "stats": {
          "data": {
            "id": "ee05b935-0dbc-476c-9417-6075a7e2ec1d",
            "type": "stats"
          }
        }
      },
      "links": {
        "self": "https://environment.lvis.io/api/v2/elements/ee05b935-0dbc-476c-9417-6075a7e2ec1d"
      }
    }
  ],
  "links": {
    "self": "https://environment.lvis.io/api/v2/event_templates/6977197a-51b1-4579-8785-dcd0e266d6dd/elements"
  }  
}

Example

curl --request GET \
  --url https://environment.monterosa.cloud/api/v2/event_templates/6977197a-51b1-4579-8785-dcd0e266d6dd/elements \
  --header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
  --header 'Content-Type: application/vnd.api+json'

Element attributes described in the Element Resource section.