Create Campaign group

Create Campaign group

POST https://api.ocamba.com/api/v1/adex/campaign-groups

Creates a new Campaign group object

Request schema

body
POST https://api.ocamba.com/api/v1/adex/campaign-groups HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
  "name": "My-group",
  "color": "#00efa7",
  "campaign_count": "8"
}
curl -X POST "https://api.ocamba.com/api/v1/adex/campaign-groups" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"My-group","color":"#00efa7","campaign_count":"8"}'
fetch("https://api.ocamba.com/api/v1/adex/campaign-groups", {
  method: "POST",
  headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify(
    {
      "name": "My-group",
      "color": "#00efa7",
      "campaign_count": "8"
    }
  )
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/api/v1/adex/campaign-groups");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer $token",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
  [
    "name" => "My-group",
    "color" => "#00efa7",
    "campaign_count" => "8"
  ]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

201 Created

HTTP/1.1 201 Created
Content-Type: application/json
Responses