POST Agents/Ticket/ProcessTicketWhenRead
Some tooltip text!
• 12 minutes to read
• 12 minutes to read
POST /api/v1/Agents/Ticket/ProcessTicketWhenRead
When a user view/read a ticket, a number of action should be performed: set read status, escalation handling, remove notifications, etc.
Which actions will be performed depends on owner, caller and configuration
Query String Parameters
Parameter Name | Type | Description |
---|---|---|
$select | string | Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields. |
POST /api/v1/Agents/Ticket/ProcessTicketWhenRead?$select=name,department,category/id
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 |
Content-Type | Content-type of the request body: application/json , text/json , application/xml , text/xml , application/x-www-form-urlencoded , application/json-patch+json , application/merge-patch+json |
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. |
Request Body: request
TicketEntityId
Property Name | Type | Description |
---|---|---|
TicketEntityId | Integer |
Response:
OK
Response | Description |
---|---|
200 | OK |
Response body: TicketEntity
Property Name | Type | Description |
---|---|---|
TicketId | int32 | The primary key (auto-incremented) |
Title | string | The title of the ticket. |
CreatedAt | date-time | When the ticket was created. |
LastChanged | date-time | The last time the ticket was modified. |
ReadByOwner | date-time | The datetime for when the ticket last was read by the owner. |
ReadByCustomer | date-time | The datetime for when the ticket was read by the customer. |
FirstReadByOwner | date-time | The datetime for when the ticket first was read by the current owner. |
FirstReadByUser | date-time | The datetime for when the ticket first was read by a user. |
Activate | date-time | When the ticket should be activated, if it is postponed. |
ClosedAt | date-time | When the ticket was closed. |
RepliedAt | date-time | The datetime for when the ticket was replied to. I.e. the first external message added to the ticket. |
AlertTimeout | date-time | The datetime for when the ticket should jump to the next alert_level. |
Deadline | date-time | Deadline for ticket. |
CreatedBy | Associate | The associate who created this ticket |
Author | string | A string representing the author of the ticket (same as author of first message). |
OwnedBy | Associate | The associate who owns this ticket. Setting the id to 0 will make the ticket unassigned. Setting the id to 2147483647 (MaxInt) will make it automatically assigned according to the ticket category assignment rules. Use MDO List name "associate" to get list items. |
Category | TicketCategoryEntity | The ticket category entity which this ticket is connected to Use MDO List name "ejcategory" to get list items. |
Slevel | string | The securitylevel of the ticket. |
Priority | TicketPriorityEntity | The ticket priority entity which this ticket is connected to Use MDO List name "ticketpriority" to get list items. |
BaseStatus | string | The status of the ticket. I.e. active/closed/postponed/deleted Use MDO List name "ticketstatus" to get list items. |
Status | TicketStatusEntity | The ticket status entity which this ticket is connected to Use MDO List name "ticketstatus" to get list items. |
Origin | string | What is the origin of this ticket |
Person | Person | The primary person that this ticket is connected to Use MDO List name "person_new" to get list items. |
SecondaryPersons | array | The secondary persons this ticket is connected to Use MDO List name "person_new" to get list items. |
AlertLevel | int32 | The alert level for the ticket. Matches the level value of the ticket_alert table. |
ConnectId | int32 | If a ticket is connected to another ticket, this field is set to the id of the 'master' ticket. |
ReadStatus | string | Whether the owner has read the ticket or not (red, yellow, green). |
TimeToReply | int32 | The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's timeframe. |
RealTimeToReply | int32 | Same as time_to_reply, but not calculated based on priority. |
TimeToClose | int32 | The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's timeframe. |
RealTimeToClose | int32 | Same as time_to_close, but not calculated based on priority. |
TimeSpentInternally | int32 | The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state |
TimeSpentExternally | int32 | The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state |
TimeSpentQueue | int32 | The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state |
RealTimeSpentInternally | int32 | The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state |
RealTimeSpentExternally | int32 | The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state |
RealTimeSpentQueue | int32 | The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state |
TimeSpent | int32 | The total time (minutes). Aggregated time spent from ticket's messages. Read-only for external use. |
HasAttachment | bool | Boolean indicating if this ticket has one or more attachments. |
NumReplies | int32 | The number of replies (messages) to the customer for this request. |
NumMessages | int32 | The total number of messages for this request. |
FromAddress | string | The from-address used when this ticket got created, e.g. by email |
Messages | array | TicketMessageId,CreatedAt,SLevel and Important for all the messages connected to this ticket. For message body see the TicketMessageEntity or the TicketMessage archive. |
Tags | array | An array containing the tags assigned to this request |
Language | string | The language of the first external message |
Sentiment | int32 | The sentiment index of the last external message |
SentimentConfidence | int32 | The sentiment confidence of the last external message |
SuggestedCategoryId | int32 | Suggestion for categorization, based on the text of the message (AI) |
SuggestedCategoryName | string | Suggested category from AI |
OrigHumanCategoryId | int32 | Will contain the category id selected by the user, when having the choice of using the suggested category or manually selecting a category |
IconHint | string | Icon representing ticket's state |
Sale | Sale | The sale that this ticket is connected to Use MDO List name "sale" to get list items. |
Project | Project | The project that this ticket is connected to Use MDO List name "project" to get list items. |
FormSubmission | TicketFormSubmission | The form submission that this ticket is connected to |
TicketType | TicketType | Type of the Request Use MDO List name "TicketType" to get list items. |
ActiveStatusMonitorId | int32 | Active status monitor identity for related contact. This is a read-only property and is ignored on Save |
ExtraFields | object | Deprecated: Use {SuperOffice.CRM.Services.TicketEntity.CustomFields} instead. Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc. |
CustomFields | object | Udef + Extra fields added to the carrier. Extra fields as defined by changes to database schema + user-defined fields as defined by admin. Custom fields combines user defined fields and extra fields into one bucket. The individual {SuperOffice.CRM.Services.TicketEntity.ExtraFields} and UserDefinedFields properties are deprecated in favor of this combined collection. |
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/Ticket/ProcessTicketWhenRead
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: en
Content-Type: application/json; charset=utf-8
{
"TicketEntityId": 921
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"TicketId": 883,
"Title": "dolor",
"CreatedAt": "2018-04-13T14:13:41.5176467+02:00",
"LastChanged": "2003-03-22T14:13:41.5176467+01:00",
"ReadByOwner": "2006-06-20T14:13:41.5176467+02:00",
"ReadByCustomer": "1998-12-31T14:13:41.5176467+01:00",
"FirstReadByOwner": "2000-05-15T14:13:41.5176467+02:00",
"FirstReadByUser": "2005-01-03T14:13:41.5176467+01:00",
"Activate": "2000-07-12T14:13:41.5176467+02:00",
"ClosedAt": "2010-09-12T14:13:41.5176467+02:00",
"RepliedAt": "2012-07-01T14:13:41.5176467+02:00",
"AlertTimeout": "2018-02-15T14:13:41.5176467+01:00",
"Deadline": "2007-12-13T14:13:41.5176467+01:00",
"CreatedBy": null,
"Author": "rerum",
"OwnedBy": null,
"Category": null,
"Slevel": "External",
"Priority": null,
"BaseStatus": "Active",
"Status": null,
"Origin": "AutoGenerated",
"Person": null,
"SecondaryPersons": [
{
"Position": "sint",
"PersonId": 416,
"Mrmrs": "incidunt",
"Firstname": "Mekhi",
"Lastname": "Tremblay",
"MiddleName": "Ryan-Hettinger",
"Title": "saepe",
"Description": "Phased system-worthy project",
"Email": "mohammad.mohr@willms.info",
"FullName": "Erwin Leuschke",
"DirectPhone": "1-214-994-9799",
"FormalName": "Bayer-Brakus",
"CountryId": 900,
"ContactId": 9,
"ContactName": "Padberg LLC",
"Retired": 676,
"Rank": 318,
"ActiveInterests": 95,
"ContactDepartment": "",
"ContactCountryId": 839,
"ContactOrgNr": "943333",
"FaxPhone": "(273)472-6408 x5938",
"MobilePhone": "697.777.8087 x12437",
"ContactPhone": "1-685-109-8618 x953",
"AssociateName": "McKenzie, Simonis and Runte",
"AssociateId": 8,
"UsePersonAddress": false,
"ContactFax": "eum",
"Kanafname": "quis",
"Kanalname": "praesentium",
"Post1": "quidem",
"Post2": "libero",
"Post3": "temporibus",
"EmailName": "jack_adams@kundedibbert.biz",
"ContactFullName": "Jazmin Wendell Hand III",
"ActiveErpLinks": 216,
"TicketPriorityId": 4,
"SupportLanguageId": 24,
"SupportAssociateId": 977,
"CategoryName": "VIP Customer",
"PersonNumber": "617710",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 420
}
}
}
],
"AlertLevel": 782,
"ConnectId": 936,
"ReadStatus": "Green",
"TimeToReply": 304,
"RealTimeToReply": 814,
"TimeToClose": 4,
"RealTimeToClose": 8,
"TimeSpentInternally": 273,
"TimeSpentExternally": 195,
"TimeSpentQueue": 531,
"RealTimeSpentInternally": 483,
"RealTimeSpentExternally": 445,
"RealTimeSpentQueue": 856,
"TimeSpent": 959,
"HasAttachment": false,
"NumReplies": 359,
"NumMessages": 837,
"FromAddress": "unde",
"Messages": [
{
"TicketMessageId": 155,
"CreatedAt": "2000-01-28T14:13:41.5176467+01:00",
"Slevel": "External",
"Important": false,
"Author": "dignissimos",
"PersonId": 472,
"PersonFullName": "Miss Darby Joesph Stokes",
"ContactId": 246,
"ContactName": "Schmeler, Raynor and Kling",
"ContactDepartment": "",
"NumAttachments": 514,
"EmailHeader": "jerald_considine@hackett.uk",
"MessageHeaders": [
{},
{}
],
"Language": "totam",
"Sentiment": 792,
"SentimentConfidence": 970,
"CreatedBy": 628,
"ChangedAt": "2007-02-07T14:13:41.5176467+01:00",
"Badge": "Comment",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.String",
"FieldLength": 65
}
}
}
],
"Tags": [
{
"Id": 389,
"Name": "Powlowski Group",
"ToolTip": "Voluptas aliquid itaque officiis consequatur rerum atque.",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 374
}
}
},
{
"Id": 389,
"Name": "Powlowski Group",
"ToolTip": "Voluptas aliquid itaque officiis consequatur rerum atque.",
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 374
}
}
}
],
"Language": "nam",
"Sentiment": 651,
"SentimentConfidence": 923,
"SuggestedCategoryId": 275,
"SuggestedCategoryName": "VIP Customer",
"OrigHumanCategoryId": 964,
"IconHint": "possimus",
"Sale": null,
"Project": null,
"FormSubmission": null,
"TicketType": null,
"ActiveStatusMonitorId": 413,
"ExtraFields": {
"ExtraFields1": "voluptates",
"ExtraFields2": "corrupti"
},
"CustomFields": {
"CustomFields1": "molestias",
"CustomFields2": "vitae"
},
"TableRight": null,
"FieldProperties": {
"fieldName": {
"FieldRight": null,
"FieldType": "System.Int32",
"FieldLength": 669
}
}
}