Last updated 8 months ago
Set suggestions config. Only users with the Standard Registry role are allowed to make the request.
Successful operation. Response setted suggestions config.
const response = await fetch('/api/v1/suggestions/config', { method: 'POST', headers: { "Authorization": "Bearer JWT", "Content-Type": "application/json" }, body: JSON.stringify({ "items": { "id": "text", "type": "Policy", "index": 0 } }), }); const data = await response.json();
{ "items": { "id": "text", "type": "Policy", "index": 0 } }