Capacity Rules
Retrieve list of capacity rule
Authorizations
Path parameters
workspaceIdstringRequired
Query parameters
limitinteger · min: 1 · max: 100OptionalDefault:
Limits the number of results to return
10
pageTokenstring · max: 8000Optional
Pagination token that keeps of track of the current position in the list
reversebooleanOptionalDefault:
Order in which to retrieve the results
false
Responses
200
OK
application/json
get
GET /workspaces/{workspaceId}/inbox/capacity HTTP/1.1
Host:
Authorization: Bearer jwt
Accept: */*
200
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"
}
]
}
Authorizations
Path parameters
workspaceIdstringRequired
Body
namestring · min: 1 · max: 255Required
descriptionstring · min: 1 · max: 255Required
defaultbooleanOptional
agentsstring · uuid[]Optional
Responses
201
Created a Capacity Rule.
application/json
409
Default capacity rule already exists
application/json
422
Invalid input
application/json
post
POST /workspaces/{workspaceId}/inbox/capacity HTTP/1.1
Host:
Authorization: Bearer jwt
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"
}
Authorizations
Path parameters
workspaceIdstringRequired
capacityRuleIdstringRequired
Responses
200
ok
application/json
404
Workspace or Capacity Rule not found
application/json
get
GET /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId} HTTP/1.1
Host:
Authorization: Bearer jwt
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"
}
Authorizations
Path parameters
workspaceIdstringRequired
capacityRuleIdstringRequired
Body
namestringOptional
descriptionstringOptional
defaultbooleanOptional
Responses
200
Updated
application/json
404
Workspace or queue found
application/json
409
Default capacity rule already exists
application/json
422
Invalid queue
application/json
patch
PATCH /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId} HTTP/1.1
Host:
Authorization: Bearer jwt
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"
}
Authorizations
Path parameters
workspaceIdstringRequired
capacityRuleIdstringRequired
Responses
204
OK
404
Workspace or Capacity Rule not found
application/json
delete
DELETE /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId} HTTP/1.1
Host:
Authorization: Bearer jwt
Accept: */*
No content
Authorizations
Path parameters
workspaceIdstringRequired
capacityRuleIdstringRequired
Body
agentsstring · uuid[]Required
Responses
204
Assigned a Capacity Rule.
404
Workspace or Capacity Rule not found
application/json
422
Invalid input
application/json
post
POST /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}/agents HTTP/1.1
Host:
Authorization: Bearer jwt
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"agents": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
No content
Authorizations
Path parameters
workspaceIdstringRequired
capacityRuleIdstringRequired
Responses
200
Successful operation
application/json
get
GET /workspaces/{workspaceId}/inbox/capacity/{capacityRuleId}/agents HTTP/1.1
Host:
Authorization: Bearer jwt
Accept: */*
200
Successful operation
{
"agents": [
"123e4567-e89b-12d3-a456-426614174000"
]
}
Last updated
Was this helpful?