Create List

Create List

POST https://api.ocamba.com/v2/adex/lists

Create a new List object

Request schema

body
POST https://api.ocamba.com/v2/adex/lists HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
{
  "name": "demo_list",
  "type": "country",
  "items": {}
}
curl -X POST "https://api.ocamba.com/v2/adex/lists" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"demo_list","type":"country","items":{}}'
fetch("https://api.ocamba.com/v2/adex/lists", {
  method: "POST",
  headers: { Authorization: `Bearer ${TOKEN}`, "Content-Type": "application/json" },
  body: JSON.stringify(
    {
      "name": "demo_list",
      "type": "country",
      "items": {}
    }
  )
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/adex/lists");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer $token",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
  [
    "name" => "demo_list",
    "type" => "country",
    "items" => []
  ]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

201 Created

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