POST
/
api
/
organizations
/
{organizationId}
/
campaigns
Add a data campaign
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
}

Authorizations

x-api-key
string
header
required

Path Parameters

organizationId
integer
required

Organization ID

Body

application/json

Response

200 - application/json

OK

The response is of type object.