Last updated 2 months ago
Successful operation
Retrieve list of capacity rule
OK
ok
Assigned a Capacity Rule.
Created a Capacity Rule.
Updated
const response = await fetch('/workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}/agents', { method: 'GET', headers: { "Authorization": "Bearer jwt" }, }); const data = await response.json();
{ "agents": [ "123e4567-e89b-12d3-a456-426614174000" ] }
const response = await fetch('/workspaces/{workspaceId}/inbox/capacity', { method: 'GET', headers: { "Authorization": "Bearer jwt" }, }); const data = await response.json();
{ "results": [ { "id": "text", "workspaceId": "text", "name": "text", "description": "text", "default": false, "capacity": {}, "assignedAgentIds": [ "123e4567-e89b-12d3-a456-426614174000" ], "createdAt": "text", "updatedAt": "text" } ] }
const response = await fetch('/workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}', { method: 'DELETE', headers: { "Authorization": "Bearer jwt" }, }); const data = await response.json();
{ "code": "text", "message": "text" }
const response = await fetch('/workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}', { method: 'GET', headers: { "Authorization": "Bearer jwt" }, }); const data = await response.json();
{ "id": "text", "workspaceId": "text", "name": "text", "description": "text", "default": false, "capacity": {}, "assignedAgentIds": [ "123e4567-e89b-12d3-a456-426614174000" ], "createdAt": "text", "updatedAt": "text" }
const response = await fetch('/workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}/agents', { method: 'POST', headers: { "Authorization": "Bearer jwt", "Content-Type": "application/json" }, body: JSON.stringify({ "agents": [ "123e4567-e89b-12d3-a456-426614174000" ] }), }); const data = await response.json();
const response = await fetch('/workspaces/{workspaceId}/inbox/capacity', { method: 'POST', headers: { "Authorization": "Bearer jwt", "Content-Type": "application/json" }, body: JSON.stringify({ "name": "text", "description": "text", "capacity": {} }), }); const data = await response.json();
const response = await fetch('/workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}', { method: 'PATCH', headers: { "Authorization": "Bearer jwt", "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();