| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/Report/AgentCategorization/{AgentId}/ | ||
|---|---|---|---|
| GET,OPTIONS | /v1/Report/AgentCategorization/{AgentId}/{ContactCategoryId} |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AgentId | path | int | No | |
| ContactCategoryId | path | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Contacts | form | List<AgentCategorization> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AgentId | form | int | No | |
| AgentFirstName | form | string | No | |
| AgentLastName | form | string | No | |
| ContactId | form | int | No | |
| ContactGUID | form | Guid | No | |
| ContactFirstName | form | string | No | |
| ContactLastName | form | string | No | |
| ContactStatus | form | int | No | |
| ContactStatusName | form | string | No | |
| ContactCategory | form | int | No | |
| ContactCategoryName | form | string | No | |
| ContactEmail | form | string | No | |
| ContactPhone | form | string | No | |
| IsShared | form | bool | No | |
| WritingAgentId | form | int | No | |
| IsWritingAgent | form | bool | No | |
| WritingAgentName | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Report/AgentCategorization/{AgentId}/ HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Contacts:
[
{
AgentId: 0,
AgentFirstName: String,
AgentLastName: String,
ContactId: 0,
ContactGUID: 00000000000000000000000000000000,
ContactFirstName: String,
ContactLastName: String,
ContactStatus: 0,
ContactStatusName: String,
ContactCategory: 0,
ContactCategoryName: String,
ContactEmail: String,
ContactPhone: String,
IsShared: False,
WritingAgentId: 0,
IsWritingAgent: False,
WritingAgentName: String
}
]
}