POST Agents/Dash/CreateDefaultDashCollection
Some tooltip text!
• 3 minutes to read
• 3 minutes to read
POST /api/v1/Agents/Dash/CreateDefaultDashCollection
Loading default values into a new DashCollection.
NsApiSlow threshold: 5000 ms.
Request Headers
| Parameter Name | Description |
|---|---|
| Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
| X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
| Accept | Content-type(s) you would like the response in: application/json, text/json, application/xml, text/xml, application/json-patch+json, application/merge-patch+json |
| Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
| SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
| SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
| SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
| SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Response:
OK
| Response | Description |
|---|---|
| 200 | OK |
Response body: DashCollection
| Property Name | Type | Description |
|---|---|---|
| Pinned | array | Dashboards pinned to the associate |
| Favourites | array | The assocates favourite dashboards |
| Other | array | Other dashboards |
| TableRight | TableRight | The carrier's table right |
| FieldProperties | object | Field property dictionary mapping field names to field access rights. |
Sample request
POST /api/v1/Agents/Dash/CreateDefaultDashCollection
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: *
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"Pinned": [
{
"DashboardId": 234,
"UniqueId": "my-dashboard",
"Name": "My Dashboard",
"Description": "Personal dashboard with customized widgets and key metrics",
"AssociateId": 253,
"Columns": 3,
"Theme": null,
"VisibleForAll": 739,
"VisibleForAssociates": [
787,
662
],
"VisibleForGroups": [
480,
319
],
"PinForAll": 716,
"PinForAssociates": [
242,
348
],
"PinForGroups": [
965,
338
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 388
}
}
}
],
"Favourites": [
{
"DashboardId": 870,
"UniqueId": "sales-leaderboard",
"Name": "Sales Leaderboard",
"Description": "Top performers ranked by sales volume and conversion rates",
"AssociateId": 37,
"Columns": 2,
"Theme": null,
"VisibleForAll": 444,
"VisibleForAssociates": [
883,
660
],
"VisibleForGroups": [
640,
790
],
"PinForAll": 692,
"PinForAssociates": [
466,
239
],
"PinForGroups": [
770,
546
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 533
}
}
}
],
"Other": [
{
"DashboardId": 50,
"UniqueId": "customer-health",
"Name": "Customer Health Monitor",
"Description": "Customer satisfaction scores, churn risk, and engagement metrics",
"AssociateId": 748,
"Columns": 4,
"Theme": null,
"VisibleForAll": 814,
"VisibleForAssociates": [
328,
98
],
"VisibleForGroups": [
998,
126
],
"PinForAll": 594,
"PinForAssociates": [
736,
984
],
"PinForGroups": [
363,
991
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 40
}
}
}
],
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 808
}
}
}