List Zone layouts
List Zone layouts
GET
https://api.ocamba.com/v2/adex/zone-layouts
Returns a list of Zone layouts
Tip
Searchable fields are name and layout. Sortable fields are: name, layout, type, create_time and update_time.
Filterable fields are: id, name, layout, type, create_time and update_time.
Query parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/zone-layouts" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/zone-layouts';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$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
{
"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