Capacity Rules
Retrieve list of capacity rule
Provide the token that is returned upon login
Limits the number of results to return
10Pagination token that keeps of track of the current position in the list
Order in which to retrieve the results
falseOK
GET /workspaces/{workspaceId}/inbox/capacity HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
OK
{
"results": [
{
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
}
]
}Provide the token that is returned upon login
Created a Capacity Rule.
Default capacity rule already exists
Invalid input
POST /workspaces/{workspaceId}/inbox/capacity HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 138
{
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"agents": [
"123e4567-e89b-12d3-a456-426614174000"
]
}{
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
}Provide the token that is returned upon login
ok
Workspace or Capacity Rule not found
GET /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
}Provide the token that is returned upon login
Updated
Workspace or queue found
Default capacity rule already exists
Invalid queue
PATCH /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
}
}{
"id": "text",
"workspaceId": "text",
"name": "text",
"description": "text",
"default": true,
"capacity": {
"messaging": 1,
"email": 1
},
"assignedAgentIds": [
"123e4567-e89b-12d3-a456-426614174000"
],
"createdAt": "text",
"updatedAt": "text"
}Provide the token that is returned upon login
OK
Workspace or Capacity Rule not found
DELETE /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Provide the token that is returned upon login
Assigned a Capacity Rule.
Workspace or Capacity Rule not found
Invalid input
POST /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}/agents HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"agents": [
"123e4567-e89b-12d3-a456-426614174000"
]
}No content
Provide the token that is returned upon login
Successful operation
GET /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}/agents HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful operation
{
"agents": [
"123e4567-e89b-12d3-a456-426614174000"
]
}Last updated
Was this helpful?

