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