curl --request GET \
--url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/campaign-dashboard/{campaignDashboardId}/campaigns \
--header 'x-api-key: <api-key>'{
"success": true,
"campaigns": [
{
"campaign": {
"id": 123,
"dataCampaignDashboardId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"coordinatorUids": [
123
],
"queries": [
{
"name": "<string>",
"dataset": "<string>",
"query": "<string>"
}
],
"links": [
{
"icon": "<string>",
"name": "<string>",
"link": "<string>"
}
],
"datasets": [
"<string>"
],
"pipelineIds": [
123
],
"projectIds": [
123
],
"logo": "<string>"
},
"graphs": [
{
"title": "<string>",
"link": "<string>",
"xData": [
{
"color": "<string>",
"legendText": "<string>",
"popupText": "<string>",
"values": [
{
"id": 123,
"value": 123
}
],
"dataType": "dataItems",
"dataset": "<string>",
"query": "<string>"
}
],
"yTicks": [
"2023-11-07T05:31:56Z"
],
"nextUpdate": "2023-11-07T05:31:56Z"
}
]
}
],
"error": "<string>"
}Get a list of all data campaigns for a dashboard
curl --request GET \
--url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/campaign-dashboard/{campaignDashboardId}/campaigns \
--header 'x-api-key: <api-key>'{
"success": true,
"campaigns": [
{
"campaign": {
"id": 123,
"dataCampaignDashboardId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"coordinatorUids": [
123
],
"queries": [
{
"name": "<string>",
"dataset": "<string>",
"query": "<string>"
}
],
"links": [
{
"icon": "<string>",
"name": "<string>",
"link": "<string>"
}
],
"datasets": [
"<string>"
],
"pipelineIds": [
123
],
"projectIds": [
123
],
"logo": "<string>"
},
"graphs": [
{
"title": "<string>",
"link": "<string>",
"xData": [
{
"color": "<string>",
"legendText": "<string>",
"popupText": "<string>",
"values": [
{
"id": 123,
"value": 123
}
],
"dataType": "dataItems",
"dataset": "<string>",
"query": "<string>"
}
],
"yTicks": [
"2023-11-07T05:31:56Z"
],
"nextUpdate": "2023-11-07T05:31:56Z"
}
]
}
],
"error": "<string>"
}OK
Whether the operation succeeded
Show child attributes
Show child attributes
List of user IDs that coordinate this campaign
Show child attributes
Show child attributes
dataItems, time, percentage Optional error description (set if 'success' was false)
Was this page helpful?