curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/campaigns \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"id": 123,
"dataCampaignDashboardId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"coordinatorUids": [
123
],
"logo": "<string>",
"queries": [
{
"name": "<string>",
"dataset": "<string>",
"query": "<string>"
}
],
"links": [
{
"icon": "<string>",
"name": "<string>",
"link": "<string>"
}
],
"datasets": [
"<string>"
],
"pipelineIds": [
123
],
"projectIds": [
123
]
}'
{
"success": true,
"error": "<string>",
"dataCampaignId": 123
}
Add a new data campaign to a data campaign dashboard
curl --request POST \
--url https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/campaigns \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"id": 123,
"dataCampaignDashboardId": 123,
"created": "2023-11-07T05:31:56Z",
"name": "<string>",
"description": "<string>",
"coordinatorUids": [
123
],
"logo": "<string>",
"queries": [
{
"name": "<string>",
"dataset": "<string>",
"query": "<string>"
}
],
"links": [
{
"icon": "<string>",
"name": "<string>",
"link": "<string>"
}
],
"datasets": [
"<string>"
],
"pipelineIds": [
123
],
"projectIds": [
123
]
}'
{
"success": true,
"error": "<string>",
"dataCampaignId": 123
}
Organization ID
OK
The response is of type object
.