AdminAgentsController_saveCallLimits
PUT
/api/agents/admin/call-limits
const url = 'https://api.streams.chat/api/agents/admin/call-limits';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"expectedRevision":1,"streams":{"mode":"limited","limit":1},"directMessages":{"mode":"limited","limit":1}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.streams.chat/api/agents/admin/call-limits \ --header 'Content-Type: application/json' \ --data '{ "expectedRevision": 1, "streams": { "mode": "limited", "limit": 1 }, "directMessages": { "mode": "limited", "limit": 1 } }'