List Zone layouts

List Zone layouts

GET https://api.ocamba.com/v2/adex/zone-layouts

Returns a list of Zone layouts

Query parameters

parameters

Response schemas

GET https://api.ocamba.com/v2/adex/zone-layouts HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v2/adex/zone-layouts" \
  -H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/adex/zone-layouts", {
  method: "GET",
  headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/adex/zone-layouts");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer $token"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

HTTP/1.1 200 OK
Content-Type: application/json

{
  "total": 8,
  "items": [
    {
      "id": "banner",
      "layout": "banner",
      "type": "system",
      "name": "Banner layout",
      "content": "Content goes here.",
      "description": "Example goes here.",
      "create_time": "2021-10-29 12:47:23",
      "update_time": "2021-10-30 14:27:26"
    }
  ]
}
Responses
Tip
1
Searchable fields are name and layout.
2
Sortable fields are: name, layout, type, create_time and update_time.
3
Filterable fields are: id, name, layout, type, create_time and update_time.