Last updated 5 months ago
OK
The ID of the category
1234
Your categories custom fields as a JSON object
The Category ID
1
Your category custom fields as a JSON object
const response = await fetch('/api/public/site/categories', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/api/public/site/categories/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('/api/public/site/categories/create', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text", "enabled": "text" }), }); const data = await response.json();
const response = await fetch('/api/public/site/categories/{id}', { method: 'PUT', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text", "enabled": "text" }), }); const data = await response.json();