Comment on page
Get Elements
Get all elements of the specified event.
Elements are returned in chronological order according their publishing time.
get
https://environment.monterosa.cloud
/api/v2/events/:event_id/elements
Get Elements
Filter elements by
non_scheduled
state.cURL
Response
curl --request GET \
--globoff --url 'https://environment.monterosa.cloud/api/v2/events/6977197a-51b1-4579-8785-dcd0e266d6dd/elements?filter[state]=non_scheduled' \
--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
--header 'Content-Type: 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,
"duration_mode": "fixed",
"name": "Element",
"results_revealed_at_iso": null
},
"relationships": {
"event": {
"data": {
"id": "cafc2ae8-2cd6-4664-bb20-e9e30a5f0e8d",
"type": "events"
}
},
"stats": {
"data": {
"id": "ee05b935-0dbc-476c-9417-6075a7e2ec1d",
"type": "stats"
}
}
},
"links": {
"self": "https://environment.monterosa.cloud/api/v2/elements/ee05b935-0dbc-476c-9417-6075a7e2ec1d"
}
}
],
"links": {
"self": "https://environment.monterosa.cloud/api/v2/events/6977197a-51b1-4579-8785-dcd0e266d6dd/elements"
}
}
Last modified 2mo ago