Retrieve details of tenant custom headers.
OK
const response = await fetch('https://HOSTNAME:8887/api/tenant/custom_headers', { method: 'GET', headers: {}, }); const data = await response.json();
{ "add": [ { "name": "text", "value": "text", "scope": "ALL" } ], "relay": [ { "name": "text", "scope": "ALL" } ] }
Update tenant custom headers.
const response = await fetch('https://HOSTNAME:8887/api/tenant/custom_headers', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();