using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Ticket");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"TicketId\": 123,\n \"Title\": \"<string>\",\n \"CreatedAt\": \"2023-11-07T05:31:56Z\",\n \"LastChanged\": \"2023-11-07T05:31:56Z\",\n \"ReadByOwner\": \"2023-11-07T05:31:56Z\",\n \"ReadByCustomer\": \"2023-11-07T05:31:56Z\",\n \"FirstReadByOwner\": \"2023-11-07T05:31:56Z\",\n \"FirstReadByUser\": \"2023-11-07T05:31:56Z\",\n \"Activate\": \"2023-11-07T05:31:56Z\",\n \"ClosedAt\": \"2023-11-07T05:31:56Z\",\n \"RepliedAt\": \"2023-11-07T05:31:56Z\",\n \"AlertTimeout\": \"2023-11-07T05:31:56Z\",\n \"Deadline\": \"2023-11-07T05:31:56Z\",\n \"CreatedBy\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Author\": \"<string>\",\n \"OwnedBy\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Category\": {\n \"TicketCategoryId\": 123,\n \"ParentId\": 123,\n \"Name\": \"<string>\",\n \"Fullname\": \"<string>\",\n \"CategoryMaster\": 123,\n \"ExternalName\": \"<string>\",\n \"AssignmentLag\": 123,\n \"ReplyTemplate\": 123,\n \"NotificationEmail\": \"<string>\",\n \"DefaultTicketStatus\": {\n \"TicketStatusId\": 123,\n \"Name\": \"<string>\",\n \"NoEmailReopen\": true,\n \"IsDefault\": true,\n \"UsedInQueue\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"DefaultMessageStatus\": {\n \"TicketStatusId\": 123,\n \"Name\": \"<string>\",\n \"NoEmailReopen\": true,\n \"IsDefault\": true,\n \"UsedInQueue\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"EffectiveReplyTemplateId\": 123,\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Priority\": {\n \"TicketPriorityId\": 123,\n \"Name\": \"<string>\",\n \"SortOrder\": 123,\n \"Deadline\": 123,\n \"MonStart\": \"2023-11-07T05:31:56Z\",\n \"MonStop\": \"2023-11-07T05:31:56Z\",\n \"TueStart\": \"2023-11-07T05:31:56Z\",\n \"TueStop\": \"2023-11-07T05:31:56Z\",\n \"WedStart\": \"2023-11-07T05:31:56Z\",\n \"WedStop\": \"2023-11-07T05:31:56Z\",\n \"ThuStart\": \"2023-11-07T05:31:56Z\",\n \"ThuStop\": \"2023-11-07T05:31:56Z\",\n \"FriStart\": \"2023-11-07T05:31:56Z\",\n \"FriStop\": \"2023-11-07T05:31:56Z\",\n \"SatStart\": \"2023-11-07T05:31:56Z\",\n \"SatStop\": \"2023-11-07T05:31:56Z\",\n \"SunStart\": \"2023-11-07T05:31:56Z\",\n \"SunStop\": \"2023-11-07T05:31:56Z\",\n \"NonDates\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"EscalationLevels\": [\n {\n \"TicketAlertId\": 123,\n \"AlertLevel\": 123,\n \"AlertTimeout\": 123,\n \"Action\": 123,\n \"DelegateTo\": 123,\n \"ScriptId\": 123,\n \"EmailTo\": \"<string>\",\n \"SmsTo\": \"<string>\",\n \"ReplyTemplateIdCustomer\": 123,\n \"ReplyTemplateIdUser\": 123,\n \"ReplyTemplateIdCatmast\": 123,\n \"ReplyTemplateIdEmail\": 123,\n \"RtiCustomerSms\": 123,\n \"ReplyTemplateIdUserSms\": 123,\n \"ReplyTemplateIdCatmastSms\": 123,\n \"ReplyTemplateIdSms\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Status\": {\n \"TicketStatusId\": 123,\n \"Name\": \"<string>\",\n \"NoEmailReopen\": true,\n \"IsDefault\": true,\n \"UsedInQueue\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Person\": {\n \"Position\": \"<string>\",\n \"PersonId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Email\": \"<string>\",\n \"FullName\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"CountryId\": 123,\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"Retired\": 123,\n \"Rank\": 123,\n \"ActiveInterests\": 123,\n \"ContactDepartment\": \"<string>\",\n \"ContactCountryId\": 123,\n \"ContactOrgNr\": \"<string>\",\n \"FaxPhone\": \"<string>\",\n \"MobilePhone\": \"<string>\",\n \"ContactPhone\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"AssociateId\": 123,\n \"UsePersonAddress\": true,\n \"ContactFax\": \"<string>\",\n \"Kanafname\": \"<string>\",\n \"Kanalname\": \"<string>\",\n \"Post1\": \"<string>\",\n \"Post2\": \"<string>\",\n \"Post3\": \"<string>\",\n \"EmailName\": \"<string>\",\n \"ContactFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"TicketPriorityId\": 123,\n \"SupportLanguageId\": 123,\n \"SupportAssociateId\": 123,\n \"CategoryName\": \"<string>\",\n \"PersonNumber\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"SecondaryPersons\": [\n {\n \"Position\": \"<string>\",\n \"PersonId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Email\": \"<string>\",\n \"FullName\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"CountryId\": 123,\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"Retired\": 123,\n \"Rank\": 123,\n \"ActiveInterests\": 123,\n \"ContactDepartment\": \"<string>\",\n \"ContactCountryId\": 123,\n \"ContactOrgNr\": \"<string>\",\n \"FaxPhone\": \"<string>\",\n \"MobilePhone\": \"<string>\",\n \"ContactPhone\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"AssociateId\": 123,\n \"UsePersonAddress\": true,\n \"ContactFax\": \"<string>\",\n \"Kanafname\": \"<string>\",\n \"Kanalname\": \"<string>\",\n \"Post1\": \"<string>\",\n \"Post2\": \"<string>\",\n \"Post3\": \"<string>\",\n \"EmailName\": \"<string>\",\n \"ContactFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"TicketPriorityId\": 123,\n \"SupportLanguageId\": 123,\n \"SupportAssociateId\": 123,\n \"CategoryName\": \"<string>\",\n \"PersonNumber\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"AlertLevel\": 123,\n \"ConnectId\": 123,\n \"TimeToReply\": 123,\n \"RealTimeToReply\": 123,\n \"TimeToClose\": 123,\n \"RealTimeToClose\": 123,\n \"TimeSpentInternally\": 123,\n \"TimeSpentExternally\": 123,\n \"TimeSpentQueue\": 123,\n \"RealTimeSpentInternally\": 123,\n \"RealTimeSpentExternally\": 123,\n \"RealTimeSpentQueue\": 123,\n \"TimeSpent\": 123,\n \"HasAttachment\": true,\n \"NumReplies\": 123,\n \"NumMessages\": 123,\n \"FromAddress\": \"<string>\",\n \"Messages\": [\n {\n \"TicketMessageId\": 123,\n \"CreatedAt\": \"2023-11-07T05:31:56Z\",\n \"Important\": true,\n \"Author\": \"<string>\",\n \"PersonId\": 123,\n \"PersonFullName\": \"<string>\",\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"ContactDepartment\": \"<string>\",\n \"NumAttachments\": 123,\n \"EmailHeader\": \"<string>\",\n \"MessageHeaders\": [\n {\n \"Id\": 123,\n \"Name\": \"<string>\",\n \"Value\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"Language\": \"<string>\",\n \"Sentiment\": 123,\n \"SentimentConfidence\": 123,\n \"CreatedBy\": 123,\n \"ChangedAt\": \"2023-11-07T05:31:56Z\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"Tags\": [\n {\n \"Id\": 123,\n \"Name\": \"<string>\",\n \"ToolTip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"Language\": \"<string>\",\n \"Sentiment\": 123,\n \"SentimentConfidence\": 123,\n \"SuggestedCategoryId\": 123,\n \"SuggestedCategoryName\": \"<string>\",\n \"OrigHumanCategoryId\": 123,\n \"IconHint\": \"<string>\",\n \"Sale\": {\n \"ContactName\": \"<string>\",\n \"SaleDate\": \"2023-11-07T05:31:56Z\",\n \"SaleId\": 123,\n \"Probability\": 123,\n \"Title\": \"<string>\",\n \"Amount\": 123,\n \"Currency\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"Description\": \"<string>\",\n \"WeightedAmount\": 123,\n \"ProjectId\": 123,\n \"EarningPercent\": 123,\n \"Earning\": 123,\n \"ContactId\": 123,\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"SaleTypeId\": 123,\n \"SaleTypeName\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Number\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Project\": {\n \"ProjectId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"URL\": \"<string>\",\n \"Type\": \"<string>\",\n \"AssociateId\": 123,\n \"AssociateFullName\": \"<string>\",\n \"TypeId\": 123,\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"StatusId\": 123,\n \"Status\": \"<string>\",\n \"TextId\": 123,\n \"PublishTo\": \"2023-11-07T05:31:56Z\",\n \"PublishFrom\": \"2023-11-07T05:31:56Z\",\n \"IsPublished\": true,\n \"URLName\": \"<string>\",\n \"ProjectNumber\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"EventId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FormSubmission\": {\n \"FormSubmissionId\": 123,\n \"EmailAddress\": \"<string>\"\n },\n \"TicketType\": {\n \"TicketTypeId\": 123,\n \"Name\": \"<string>\",\n \"Icon\": \"<string>\",\n \"DefaultTicketStatus\": 123,\n \"DefaultTicketPriority\": 123,\n \"IsDefault\": true,\n \"ShowInNew\": true,\n \"ExcludeSignature\": true,\n \"ExcludeEmailRecipients\": true,\n \"ExternalAsDefault\": true,\n \"VisibleForGroups\": [\n 123\n ],\n \"ReplyForwardNoSignature\": true,\n \"ReplyExternalAsDefault\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ActiveStatusMonitorId\": 123,\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByOwner: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Author: '<string>',
OwnedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Category: {
TicketCategoryId: 123,
ParentId: 123,
Name: '<string>',
Fullname: '<string>',
CategoryMaster: 123,
ExternalName: '<string>',
AssignmentLag: 123,
ReplyTemplate: 123,
NotificationEmail: '<string>',
DefaultTicketStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
DefaultMessageStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
EffectiveReplyTemplateId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Priority: {
TicketPriorityId: 123,
Name: '<string>',
SortOrder: 123,
Deadline: 123,
MonStart: '2023-11-07T05:31:56Z',
MonStop: '2023-11-07T05:31:56Z',
TueStart: '2023-11-07T05:31:56Z',
TueStop: '2023-11-07T05:31:56Z',
WedStart: '2023-11-07T05:31:56Z',
WedStop: '2023-11-07T05:31:56Z',
ThuStart: '2023-11-07T05:31:56Z',
ThuStop: '2023-11-07T05:31:56Z',
FriStart: '2023-11-07T05:31:56Z',
FriStop: '2023-11-07T05:31:56Z',
SatStart: '2023-11-07T05:31:56Z',
SatStop: '2023-11-07T05:31:56Z',
SunStart: '2023-11-07T05:31:56Z',
SunStop: '2023-11-07T05:31:56Z',
NonDates: ['2023-11-07T05:31:56Z'],
EscalationLevels: [
{
TicketAlertId: 123,
AlertLevel: 123,
AlertTimeout: 123,
Action: 123,
DelegateTo: 123,
ScriptId: 123,
EmailTo: '<string>',
SmsTo: '<string>',
ReplyTemplateIdCustomer: 123,
ReplyTemplateIdUser: 123,
ReplyTemplateIdCatmast: 123,
ReplyTemplateIdEmail: 123,
RtiCustomerSms: 123,
ReplyTemplateIdUserSms: 123,
ReplyTemplateIdCatmastSms: 123,
ReplyTemplateIdSms: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Status: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SecondaryPersons: [
{
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
Messages: [
{
TicketMessageId: 123,
CreatedAt: '2023-11-07T05:31:56Z',
Important: true,
Author: '<string>',
PersonId: 123,
PersonFullName: '<string>',
ContactId: 123,
ContactName: '<string>',
ContactDepartment: '<string>',
NumAttachments: 123,
EmailHeader: '<string>',
MessageHeaders: [
{
Id: 123,
Name: '<string>',
Value: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
CreatedBy: 123,
ChangedAt: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Tags: [
{
Id: 123,
Name: '<string>',
ToolTip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SuggestedCategoryId: 123,
SuggestedCategoryName: '<string>',
OrigHumanCategoryId: 123,
IconHint: '<string>',
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormSubmission: {FormSubmissionId: 123, EmailAddress: '<string>'},
TicketType: {
TicketTypeId: 123,
Name: '<string>',
Icon: '<string>',
DefaultTicketStatus: 123,
DefaultTicketPriority: 123,
IsDefault: true,
ShowInNew: true,
ExcludeSignature: true,
ExcludeEmailRecipients: true,
ExternalAsDefault: true,
VisibleForGroups: [123],
ReplyForwardNoSignature: true,
ReplyExternalAsDefault: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ActiveStatusMonitorId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/Ticket', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/Ticket",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'TicketId' => 123,
'Title' => '<string>',
'CreatedAt' => '2023-11-07T05:31:56Z',
'LastChanged' => '2023-11-07T05:31:56Z',
'ReadByOwner' => '2023-11-07T05:31:56Z',
'ReadByCustomer' => '2023-11-07T05:31:56Z',
'FirstReadByOwner' => '2023-11-07T05:31:56Z',
'FirstReadByUser' => '2023-11-07T05:31:56Z',
'Activate' => '2023-11-07T05:31:56Z',
'ClosedAt' => '2023-11-07T05:31:56Z',
'RepliedAt' => '2023-11-07T05:31:56Z',
'AlertTimeout' => '2023-11-07T05:31:56Z',
'Deadline' => '2023-11-07T05:31:56Z',
'CreatedBy' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Author' => '<string>',
'OwnedBy' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Category' => [
'TicketCategoryId' => 123,
'ParentId' => 123,
'Name' => '<string>',
'Fullname' => '<string>',
'CategoryMaster' => 123,
'ExternalName' => '<string>',
'AssignmentLag' => 123,
'ReplyTemplate' => 123,
'NotificationEmail' => '<string>',
'DefaultTicketStatus' => [
'TicketStatusId' => 123,
'Name' => '<string>',
'NoEmailReopen' => true,
'IsDefault' => true,
'UsedInQueue' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'DefaultMessageStatus' => [
'TicketStatusId' => 123,
'Name' => '<string>',
'NoEmailReopen' => true,
'IsDefault' => true,
'UsedInQueue' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'EffectiveReplyTemplateId' => 123,
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Priority' => [
'TicketPriorityId' => 123,
'Name' => '<string>',
'SortOrder' => 123,
'Deadline' => 123,
'MonStart' => '2023-11-07T05:31:56Z',
'MonStop' => '2023-11-07T05:31:56Z',
'TueStart' => '2023-11-07T05:31:56Z',
'TueStop' => '2023-11-07T05:31:56Z',
'WedStart' => '2023-11-07T05:31:56Z',
'WedStop' => '2023-11-07T05:31:56Z',
'ThuStart' => '2023-11-07T05:31:56Z',
'ThuStop' => '2023-11-07T05:31:56Z',
'FriStart' => '2023-11-07T05:31:56Z',
'FriStop' => '2023-11-07T05:31:56Z',
'SatStart' => '2023-11-07T05:31:56Z',
'SatStop' => '2023-11-07T05:31:56Z',
'SunStart' => '2023-11-07T05:31:56Z',
'SunStop' => '2023-11-07T05:31:56Z',
'NonDates' => [
'2023-11-07T05:31:56Z'
],
'EscalationLevels' => [
[
'TicketAlertId' => 123,
'AlertLevel' => 123,
'AlertTimeout' => 123,
'Action' => 123,
'DelegateTo' => 123,
'ScriptId' => 123,
'EmailTo' => '<string>',
'SmsTo' => '<string>',
'ReplyTemplateIdCustomer' => 123,
'ReplyTemplateIdUser' => 123,
'ReplyTemplateIdCatmast' => 123,
'ReplyTemplateIdEmail' => 123,
'RtiCustomerSms' => 123,
'ReplyTemplateIdUserSms' => 123,
'ReplyTemplateIdCatmastSms' => 123,
'ReplyTemplateIdSms' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Status' => [
'TicketStatusId' => 123,
'Name' => '<string>',
'NoEmailReopen' => true,
'IsDefault' => true,
'UsedInQueue' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Person' => [
'Position' => '<string>',
'PersonId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'Lastname' => '<string>',
'MiddleName' => '<string>',
'Title' => '<string>',
'Description' => '<string>',
'Email' => '<string>',
'FullName' => '<string>',
'DirectPhone' => '<string>',
'FormalName' => '<string>',
'CountryId' => 123,
'ContactId' => 123,
'ContactName' => '<string>',
'Retired' => 123,
'Rank' => 123,
'ActiveInterests' => 123,
'ContactDepartment' => '<string>',
'ContactCountryId' => 123,
'ContactOrgNr' => '<string>',
'FaxPhone' => '<string>',
'MobilePhone' => '<string>',
'ContactPhone' => '<string>',
'AssociateName' => '<string>',
'AssociateId' => 123,
'UsePersonAddress' => true,
'ContactFax' => '<string>',
'Kanafname' => '<string>',
'Kanalname' => '<string>',
'Post1' => '<string>',
'Post2' => '<string>',
'Post3' => '<string>',
'EmailName' => '<string>',
'ContactFullName' => '<string>',
'ActiveErpLinks' => 123,
'TicketPriorityId' => 123,
'SupportLanguageId' => 123,
'SupportAssociateId' => 123,
'CategoryName' => '<string>',
'PersonNumber' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'SecondaryPersons' => [
[
'Position' => '<string>',
'PersonId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'Lastname' => '<string>',
'MiddleName' => '<string>',
'Title' => '<string>',
'Description' => '<string>',
'Email' => '<string>',
'FullName' => '<string>',
'DirectPhone' => '<string>',
'FormalName' => '<string>',
'CountryId' => 123,
'ContactId' => 123,
'ContactName' => '<string>',
'Retired' => 123,
'Rank' => 123,
'ActiveInterests' => 123,
'ContactDepartment' => '<string>',
'ContactCountryId' => 123,
'ContactOrgNr' => '<string>',
'FaxPhone' => '<string>',
'MobilePhone' => '<string>',
'ContactPhone' => '<string>',
'AssociateName' => '<string>',
'AssociateId' => 123,
'UsePersonAddress' => true,
'ContactFax' => '<string>',
'Kanafname' => '<string>',
'Kanalname' => '<string>',
'Post1' => '<string>',
'Post2' => '<string>',
'Post3' => '<string>',
'EmailName' => '<string>',
'ContactFullName' => '<string>',
'ActiveErpLinks' => 123,
'TicketPriorityId' => 123,
'SupportLanguageId' => 123,
'SupportAssociateId' => 123,
'CategoryName' => '<string>',
'PersonNumber' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'AlertLevel' => 123,
'ConnectId' => 123,
'TimeToReply' => 123,
'RealTimeToReply' => 123,
'TimeToClose' => 123,
'RealTimeToClose' => 123,
'TimeSpentInternally' => 123,
'TimeSpentExternally' => 123,
'TimeSpentQueue' => 123,
'RealTimeSpentInternally' => 123,
'RealTimeSpentExternally' => 123,
'RealTimeSpentQueue' => 123,
'TimeSpent' => 123,
'HasAttachment' => true,
'NumReplies' => 123,
'NumMessages' => 123,
'FromAddress' => '<string>',
'Messages' => [
[
'TicketMessageId' => 123,
'CreatedAt' => '2023-11-07T05:31:56Z',
'Important' => true,
'Author' => '<string>',
'PersonId' => 123,
'PersonFullName' => '<string>',
'ContactId' => 123,
'ContactName' => '<string>',
'ContactDepartment' => '<string>',
'NumAttachments' => 123,
'EmailHeader' => '<string>',
'MessageHeaders' => [
[
'Id' => 123,
'Name' => '<string>',
'Value' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'Language' => '<string>',
'Sentiment' => 123,
'SentimentConfidence' => 123,
'CreatedBy' => 123,
'ChangedAt' => '2023-11-07T05:31:56Z',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'Tags' => [
[
'Id' => 123,
'Name' => '<string>',
'ToolTip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'Language' => '<string>',
'Sentiment' => 123,
'SentimentConfidence' => 123,
'SuggestedCategoryId' => 123,
'SuggestedCategoryName' => '<string>',
'OrigHumanCategoryId' => 123,
'IconHint' => '<string>',
'Sale' => [
'ContactName' => '<string>',
'SaleDate' => '2023-11-07T05:31:56Z',
'SaleId' => 123,
'Probability' => 123,
'Title' => '<string>',
'Amount' => 123,
'Currency' => '<string>',
'ProjectName' => '<string>',
'AssociateFullName' => '<string>',
'Description' => '<string>',
'WeightedAmount' => 123,
'ProjectId' => 123,
'EarningPercent' => 123,
'Earning' => 123,
'ContactId' => 123,
'AssociateId' => 123,
'PersonId' => 123,
'SaleTypeId' => 123,
'SaleTypeName' => '<string>',
'PersonFullName' => '<string>',
'ActiveErpLinks' => 123,
'NextDueDate' => '2023-11-07T05:31:56Z',
'Number' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Project' => [
'ProjectId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'URL' => '<string>',
'Type' => '<string>',
'AssociateId' => 123,
'AssociateFullName' => '<string>',
'TypeId' => 123,
'Updated' => '2023-11-07T05:31:56Z',
'StatusId' => 123,
'Status' => '<string>',
'TextId' => 123,
'PublishTo' => '2023-11-07T05:31:56Z',
'PublishFrom' => '2023-11-07T05:31:56Z',
'IsPublished' => true,
'URLName' => '<string>',
'ProjectNumber' => '<string>',
'ActiveErpLinks' => 123,
'EventId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FormSubmission' => [
'FormSubmissionId' => 123,
'EmailAddress' => '<string>'
],
'TicketType' => [
'TicketTypeId' => 123,
'Name' => '<string>',
'Icon' => '<string>',
'DefaultTicketStatus' => 123,
'DefaultTicketPriority' => 123,
'IsDefault' => true,
'ShowInNew' => true,
'ExcludeSignature' => true,
'ExcludeEmailRecipients' => true,
'ExternalAsDefault' => true,
'VisibleForGroups' => [
123
],
'ReplyForwardNoSignature' => true,
'ReplyExternalAsDefault' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ActiveStatusMonitorId' => 123,
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/Ticket"
payload = {
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByOwner": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Author": "<string>",
"OwnedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Category": {
"TicketCategoryId": 123,
"ParentId": 123,
"Name": "<string>",
"Fullname": "<string>",
"CategoryMaster": 123,
"ExternalName": "<string>",
"AssignmentLag": 123,
"ReplyTemplate": 123,
"NotificationEmail": "<string>",
"DefaultTicketStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"NoEmailReopen": True,
"IsDefault": True,
"UsedInQueue": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"DefaultMessageStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"NoEmailReopen": True,
"IsDefault": True,
"UsedInQueue": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"EffectiveReplyTemplateId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Priority": {
"TicketPriorityId": 123,
"Name": "<string>",
"SortOrder": 123,
"Deadline": 123,
"MonStart": "2023-11-07T05:31:56Z",
"MonStop": "2023-11-07T05:31:56Z",
"TueStart": "2023-11-07T05:31:56Z",
"TueStop": "2023-11-07T05:31:56Z",
"WedStart": "2023-11-07T05:31:56Z",
"WedStop": "2023-11-07T05:31:56Z",
"ThuStart": "2023-11-07T05:31:56Z",
"ThuStop": "2023-11-07T05:31:56Z",
"FriStart": "2023-11-07T05:31:56Z",
"FriStop": "2023-11-07T05:31:56Z",
"SatStart": "2023-11-07T05:31:56Z",
"SatStop": "2023-11-07T05:31:56Z",
"SunStart": "2023-11-07T05:31:56Z",
"SunStop": "2023-11-07T05:31:56Z",
"NonDates": ["2023-11-07T05:31:56Z"],
"EscalationLevels": [
{
"TicketAlertId": 123,
"AlertLevel": 123,
"AlertTimeout": 123,
"Action": 123,
"DelegateTo": 123,
"ScriptId": 123,
"EmailTo": "<string>",
"SmsTo": "<string>",
"ReplyTemplateIdCustomer": 123,
"ReplyTemplateIdUser": 123,
"ReplyTemplateIdCatmast": 123,
"ReplyTemplateIdEmail": 123,
"RtiCustomerSms": 123,
"ReplyTemplateIdUserSms": 123,
"ReplyTemplateIdCatmastSms": 123,
"ReplyTemplateIdSms": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Status": {
"TicketStatusId": 123,
"Name": "<string>",
"NoEmailReopen": True,
"IsDefault": True,
"UsedInQueue": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": True,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"SecondaryPersons": [
{
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": True,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlertLevel": 123,
"ConnectId": 123,
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": True,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"Messages": [
{
"TicketMessageId": 123,
"CreatedAt": "2023-11-07T05:31:56Z",
"Important": True,
"Author": "<string>",
"PersonId": 123,
"PersonFullName": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"ContactDepartment": "<string>",
"NumAttachments": 123,
"EmailHeader": "<string>",
"MessageHeaders": [
{
"Id": 123,
"Name": "<string>",
"Value": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"CreatedBy": 123,
"ChangedAt": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Tags": [
{
"Id": 123,
"Name": "<string>",
"ToolTip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SuggestedCategoryId": 123,
"SuggestedCategoryName": "<string>",
"OrigHumanCategoryId": 123,
"IconHint": "<string>",
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": True,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormSubmission": {
"FormSubmissionId": 123,
"EmailAddress": "<string>"
},
"TicketType": {
"TicketTypeId": 123,
"Name": "<string>",
"Icon": "<string>",
"DefaultTicketStatus": 123,
"DefaultTicketPriority": 123,
"IsDefault": True,
"ShowInNew": True,
"ExcludeSignature": True,
"ExcludeEmailRecipients": True,
"ExternalAsDefault": True,
"VisibleForGroups": [123],
"ReplyForwardNoSignature": True,
"ReplyExternalAsDefault": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ActiveStatusMonitorId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByOwner: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Author: '<string>',
OwnedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Category: {
TicketCategoryId: 123,
ParentId: 123,
Name: '<string>',
Fullname: '<string>',
CategoryMaster: 123,
ExternalName: '<string>',
AssignmentLag: 123,
ReplyTemplate: 123,
NotificationEmail: '<string>',
DefaultTicketStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
DefaultMessageStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
EffectiveReplyTemplateId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Priority: {
TicketPriorityId: 123,
Name: '<string>',
SortOrder: 123,
Deadline: 123,
MonStart: '2023-11-07T05:31:56Z',
MonStop: '2023-11-07T05:31:56Z',
TueStart: '2023-11-07T05:31:56Z',
TueStop: '2023-11-07T05:31:56Z',
WedStart: '2023-11-07T05:31:56Z',
WedStop: '2023-11-07T05:31:56Z',
ThuStart: '2023-11-07T05:31:56Z',
ThuStop: '2023-11-07T05:31:56Z',
FriStart: '2023-11-07T05:31:56Z',
FriStop: '2023-11-07T05:31:56Z',
SatStart: '2023-11-07T05:31:56Z',
SatStop: '2023-11-07T05:31:56Z',
SunStart: '2023-11-07T05:31:56Z',
SunStop: '2023-11-07T05:31:56Z',
NonDates: ['2023-11-07T05:31:56Z'],
EscalationLevels: [
{
TicketAlertId: 123,
AlertLevel: 123,
AlertTimeout: 123,
Action: 123,
DelegateTo: 123,
ScriptId: 123,
EmailTo: '<string>',
SmsTo: '<string>',
ReplyTemplateIdCustomer: 123,
ReplyTemplateIdUser: 123,
ReplyTemplateIdCatmast: 123,
ReplyTemplateIdEmail: 123,
RtiCustomerSms: 123,
ReplyTemplateIdUserSms: 123,
ReplyTemplateIdCatmastSms: 123,
ReplyTemplateIdSms: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Status: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SecondaryPersons: [
{
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
Messages: [
{
TicketMessageId: 123,
CreatedAt: '2023-11-07T05:31:56Z',
Important: true,
Author: '<string>',
PersonId: 123,
PersonFullName: '<string>',
ContactId: 123,
ContactName: '<string>',
ContactDepartment: '<string>',
NumAttachments: 123,
EmailHeader: '<string>',
MessageHeaders: [
{
Id: 123,
Name: '<string>',
Value: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
CreatedBy: 123,
ChangedAt: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Tags: [
{
Id: 123,
Name: '<string>',
ToolTip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SuggestedCategoryId: 123,
SuggestedCategoryName: '<string>',
OrigHumanCategoryId: 123,
IconHint: '<string>',
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormSubmission: {FormSubmissionId: 123, EmailAddress: '<string>'},
TicketType: {
TicketTypeId: 123,
Name: '<string>',
Icon: '<string>',
DefaultTicketStatus: 123,
DefaultTicketPriority: 123,
IsDefault: true,
ShowInNew: true,
ExcludeSignature: true,
ExcludeEmailRecipients: true,
ExternalAsDefault: true,
VisibleForGroups: [123],
ReplyForwardNoSignature: true,
ReplyExternalAsDefault: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ActiveStatusMonitorId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/Ticket', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByOwner": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Author": "<string>",
"OwnedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Category": {
"TicketCategoryId": 123,
"ParentId": 123,
"Name": "<string>",
"Fullname": "<string>",
"CategoryMaster": 123,
"Flags": "Unknown",
"DelegateMethod": "Unknown",
"ExternalName": "<string>",
"ClosingStatus": "UserDefined",
"MsgClosingStatus": "UserDefined",
"AssignmentLag": 123,
"ReplyTemplate": 123,
"NotificationEmail": "<string>",
"DefaultTicketStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"Status": "Unknown",
"TimeCounter": "None",
"NoEmailReopen": true,
"IsDefault": true,
"UsedInQueue": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"DefaultMessageStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"Status": "Unknown",
"TimeCounter": "None",
"NoEmailReopen": true,
"IsDefault": true,
"UsedInQueue": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"EffectiveReplyTemplateId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Slevel": "Unknown",
"Priority": {
"TicketPriorityId": 123,
"Name": "<string>",
"Status": "Unknown",
"Flags": "Unknown",
"SortOrder": 123,
"TicketRead": "None",
"ChangedOwner": "None",
"TicketNewinfo": "None",
"TicketClosed": "None",
"TicketChangedPriority": "None",
"TicketNew": "None",
"Deadline": 123,
"MonStart": "2023-11-07T05:31:56Z",
"MonStop": "2023-11-07T05:31:56Z",
"TueStart": "2023-11-07T05:31:56Z",
"TueStop": "2023-11-07T05:31:56Z",
"WedStart": "2023-11-07T05:31:56Z",
"WedStop": "2023-11-07T05:31:56Z",
"ThuStart": "2023-11-07T05:31:56Z",
"ThuStop": "2023-11-07T05:31:56Z",
"FriStart": "2023-11-07T05:31:56Z",
"FriStop": "2023-11-07T05:31:56Z",
"SatStart": "2023-11-07T05:31:56Z",
"SatStop": "2023-11-07T05:31:56Z",
"SunStart": "2023-11-07T05:31:56Z",
"SunStop": "2023-11-07T05:31:56Z",
"NonDates": [
"2023-11-07T05:31:56Z"
],
"EscalationLevels": [
{
"TicketAlertId": 123,
"AlertLevel": 123,
"AlertTimeout": 123,
"Action": 123,
"DelegateTo": 123,
"ScriptId": 123,
"EmailTo": "<string>",
"SmsTo": "<string>",
"ReplyTemplateIdCustomer": 123,
"ReplyTemplateIdUser": 123,
"ReplyTemplateIdCatmast": 123,
"ReplyTemplateIdEmail": 123,
"RtiCustomerSms": 123,
"ReplyTemplateIdUserSms": 123,
"ReplyTemplateIdCatmastSms": 123,
"ReplyTemplateIdSms": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"BaseStatus": "Unknown",
"Status": {
"TicketStatusId": 123,
"Name": "<string>",
"Status": "Unknown",
"TimeCounter": "None",
"NoEmailReopen": true,
"IsDefault": true,
"UsedInQueue": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Origin": "Unknown",
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": true,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"SecondaryPersons": [
{
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": true,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlertLevel": 123,
"ConnectId": 123,
"ReadStatus": "Unknown",
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": true,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"Messages": [
{
"TicketMessageId": 123,
"CreatedAt": "2023-11-07T05:31:56Z",
"Slevel": "Unknown",
"Important": true,
"Author": "<string>",
"PersonId": 123,
"PersonFullName": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"ContactDepartment": "<string>",
"NumAttachments": 123,
"EmailHeader": "<string>",
"MessageHeaders": [
{
"Id": 123,
"Name": "<string>",
"Value": "<string>",
"StdItem": "None",
"StdItemCol": "None",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"CreatedBy": 123,
"ChangedAt": "2023-11-07T05:31:56Z",
"Badge": "Unknown",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Tags": [
{
"Id": 123,
"Name": "<string>",
"ToolTip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SuggestedCategoryId": 123,
"SuggestedCategoryName": "<string>",
"OrigHumanCategoryId": 123,
"IconHint": "<string>",
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"Status": "Unknown",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"Completed": "Unknown",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": true,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormSubmission": {
"FormSubmissionId": 123,
"EmailAddress": "<string>",
"Status": "Unknown"
},
"TicketType": {
"TicketTypeId": 123,
"Name": "<string>",
"Icon": "<string>",
"DefaultTicketStatus": 123,
"DefaultTicketPriority": 123,
"IsDefault": true,
"ShowInNew": true,
"ExcludeSignature": true,
"ExcludeEmailRecipients": true,
"ExternalAsDefault": true,
"VisibleForGroups": [
123
],
"ReplyForwardNoSignature": true,
"ReplyExternalAsDefault": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ActiveStatusMonitorId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}Http Post Save Ticket Entity With Notify
Saves a ticket and performs any user notifications
using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Ticket");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"TicketId\": 123,\n \"Title\": \"<string>\",\n \"CreatedAt\": \"2023-11-07T05:31:56Z\",\n \"LastChanged\": \"2023-11-07T05:31:56Z\",\n \"ReadByOwner\": \"2023-11-07T05:31:56Z\",\n \"ReadByCustomer\": \"2023-11-07T05:31:56Z\",\n \"FirstReadByOwner\": \"2023-11-07T05:31:56Z\",\n \"FirstReadByUser\": \"2023-11-07T05:31:56Z\",\n \"Activate\": \"2023-11-07T05:31:56Z\",\n \"ClosedAt\": \"2023-11-07T05:31:56Z\",\n \"RepliedAt\": \"2023-11-07T05:31:56Z\",\n \"AlertTimeout\": \"2023-11-07T05:31:56Z\",\n \"Deadline\": \"2023-11-07T05:31:56Z\",\n \"CreatedBy\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Author\": \"<string>\",\n \"OwnedBy\": {\n \"AssociateId\": 123,\n \"Name\": \"<string>\",\n \"PersonId\": 123,\n \"Rank\": 123,\n \"Tooltip\": \"<string>\",\n \"GroupIdx\": 123,\n \"FullName\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"Deleted\": true,\n \"EjUserId\": 123,\n \"UserName\": \"<string>\",\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Category\": {\n \"TicketCategoryId\": 123,\n \"ParentId\": 123,\n \"Name\": \"<string>\",\n \"Fullname\": \"<string>\",\n \"CategoryMaster\": 123,\n \"ExternalName\": \"<string>\",\n \"AssignmentLag\": 123,\n \"ReplyTemplate\": 123,\n \"NotificationEmail\": \"<string>\",\n \"DefaultTicketStatus\": {\n \"TicketStatusId\": 123,\n \"Name\": \"<string>\",\n \"NoEmailReopen\": true,\n \"IsDefault\": true,\n \"UsedInQueue\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"DefaultMessageStatus\": {\n \"TicketStatusId\": 123,\n \"Name\": \"<string>\",\n \"NoEmailReopen\": true,\n \"IsDefault\": true,\n \"UsedInQueue\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"EffectiveReplyTemplateId\": 123,\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Priority\": {\n \"TicketPriorityId\": 123,\n \"Name\": \"<string>\",\n \"SortOrder\": 123,\n \"Deadline\": 123,\n \"MonStart\": \"2023-11-07T05:31:56Z\",\n \"MonStop\": \"2023-11-07T05:31:56Z\",\n \"TueStart\": \"2023-11-07T05:31:56Z\",\n \"TueStop\": \"2023-11-07T05:31:56Z\",\n \"WedStart\": \"2023-11-07T05:31:56Z\",\n \"WedStop\": \"2023-11-07T05:31:56Z\",\n \"ThuStart\": \"2023-11-07T05:31:56Z\",\n \"ThuStop\": \"2023-11-07T05:31:56Z\",\n \"FriStart\": \"2023-11-07T05:31:56Z\",\n \"FriStop\": \"2023-11-07T05:31:56Z\",\n \"SatStart\": \"2023-11-07T05:31:56Z\",\n \"SatStop\": \"2023-11-07T05:31:56Z\",\n \"SunStart\": \"2023-11-07T05:31:56Z\",\n \"SunStop\": \"2023-11-07T05:31:56Z\",\n \"NonDates\": [\n \"2023-11-07T05:31:56Z\"\n ],\n \"EscalationLevels\": [\n {\n \"TicketAlertId\": 123,\n \"AlertLevel\": 123,\n \"AlertTimeout\": 123,\n \"Action\": 123,\n \"DelegateTo\": 123,\n \"ScriptId\": 123,\n \"EmailTo\": \"<string>\",\n \"SmsTo\": \"<string>\",\n \"ReplyTemplateIdCustomer\": 123,\n \"ReplyTemplateIdUser\": 123,\n \"ReplyTemplateIdCatmast\": 123,\n \"ReplyTemplateIdEmail\": 123,\n \"RtiCustomerSms\": 123,\n \"ReplyTemplateIdUserSms\": 123,\n \"ReplyTemplateIdCatmastSms\": 123,\n \"ReplyTemplateIdSms\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Status\": {\n \"TicketStatusId\": 123,\n \"Name\": \"<string>\",\n \"NoEmailReopen\": true,\n \"IsDefault\": true,\n \"UsedInQueue\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Person\": {\n \"Position\": \"<string>\",\n \"PersonId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Email\": \"<string>\",\n \"FullName\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"CountryId\": 123,\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"Retired\": 123,\n \"Rank\": 123,\n \"ActiveInterests\": 123,\n \"ContactDepartment\": \"<string>\",\n \"ContactCountryId\": 123,\n \"ContactOrgNr\": \"<string>\",\n \"FaxPhone\": \"<string>\",\n \"MobilePhone\": \"<string>\",\n \"ContactPhone\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"AssociateId\": 123,\n \"UsePersonAddress\": true,\n \"ContactFax\": \"<string>\",\n \"Kanafname\": \"<string>\",\n \"Kanalname\": \"<string>\",\n \"Post1\": \"<string>\",\n \"Post2\": \"<string>\",\n \"Post3\": \"<string>\",\n \"EmailName\": \"<string>\",\n \"ContactFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"TicketPriorityId\": 123,\n \"SupportLanguageId\": 123,\n \"SupportAssociateId\": 123,\n \"CategoryName\": \"<string>\",\n \"PersonNumber\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"SecondaryPersons\": [\n {\n \"Position\": \"<string>\",\n \"PersonId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Title\": \"<string>\",\n \"Description\": \"<string>\",\n \"Email\": \"<string>\",\n \"FullName\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"FormalName\": \"<string>\",\n \"CountryId\": 123,\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"Retired\": 123,\n \"Rank\": 123,\n \"ActiveInterests\": 123,\n \"ContactDepartment\": \"<string>\",\n \"ContactCountryId\": 123,\n \"ContactOrgNr\": \"<string>\",\n \"FaxPhone\": \"<string>\",\n \"MobilePhone\": \"<string>\",\n \"ContactPhone\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"AssociateId\": 123,\n \"UsePersonAddress\": true,\n \"ContactFax\": \"<string>\",\n \"Kanafname\": \"<string>\",\n \"Kanalname\": \"<string>\",\n \"Post1\": \"<string>\",\n \"Post2\": \"<string>\",\n \"Post3\": \"<string>\",\n \"EmailName\": \"<string>\",\n \"ContactFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"TicketPriorityId\": 123,\n \"SupportLanguageId\": 123,\n \"SupportAssociateId\": 123,\n \"CategoryName\": \"<string>\",\n \"PersonNumber\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"AlertLevel\": 123,\n \"ConnectId\": 123,\n \"TimeToReply\": 123,\n \"RealTimeToReply\": 123,\n \"TimeToClose\": 123,\n \"RealTimeToClose\": 123,\n \"TimeSpentInternally\": 123,\n \"TimeSpentExternally\": 123,\n \"TimeSpentQueue\": 123,\n \"RealTimeSpentInternally\": 123,\n \"RealTimeSpentExternally\": 123,\n \"RealTimeSpentQueue\": 123,\n \"TimeSpent\": 123,\n \"HasAttachment\": true,\n \"NumReplies\": 123,\n \"NumMessages\": 123,\n \"FromAddress\": \"<string>\",\n \"Messages\": [\n {\n \"TicketMessageId\": 123,\n \"CreatedAt\": \"2023-11-07T05:31:56Z\",\n \"Important\": true,\n \"Author\": \"<string>\",\n \"PersonId\": 123,\n \"PersonFullName\": \"<string>\",\n \"ContactId\": 123,\n \"ContactName\": \"<string>\",\n \"ContactDepartment\": \"<string>\",\n \"NumAttachments\": 123,\n \"EmailHeader\": \"<string>\",\n \"MessageHeaders\": [\n {\n \"Id\": 123,\n \"Name\": \"<string>\",\n \"Value\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"Language\": \"<string>\",\n \"Sentiment\": 123,\n \"SentimentConfidence\": 123,\n \"CreatedBy\": 123,\n \"ChangedAt\": \"2023-11-07T05:31:56Z\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"Tags\": [\n {\n \"Id\": 123,\n \"Name\": \"<string>\",\n \"ToolTip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"Language\": \"<string>\",\n \"Sentiment\": 123,\n \"SentimentConfidence\": 123,\n \"SuggestedCategoryId\": 123,\n \"SuggestedCategoryName\": \"<string>\",\n \"OrigHumanCategoryId\": 123,\n \"IconHint\": \"<string>\",\n \"Sale\": {\n \"ContactName\": \"<string>\",\n \"SaleDate\": \"2023-11-07T05:31:56Z\",\n \"SaleId\": 123,\n \"Probability\": 123,\n \"Title\": \"<string>\",\n \"Amount\": 123,\n \"Currency\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"Description\": \"<string>\",\n \"WeightedAmount\": 123,\n \"ProjectId\": 123,\n \"EarningPercent\": 123,\n \"Earning\": 123,\n \"ContactId\": 123,\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"SaleTypeId\": 123,\n \"SaleTypeName\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Number\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Project\": {\n \"ProjectId\": 123,\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"URL\": \"<string>\",\n \"Type\": \"<string>\",\n \"AssociateId\": 123,\n \"AssociateFullName\": \"<string>\",\n \"TypeId\": 123,\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"StatusId\": 123,\n \"Status\": \"<string>\",\n \"TextId\": 123,\n \"PublishTo\": \"2023-11-07T05:31:56Z\",\n \"PublishFrom\": \"2023-11-07T05:31:56Z\",\n \"IsPublished\": true,\n \"URLName\": \"<string>\",\n \"ProjectNumber\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"EventId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FormSubmission\": {\n \"FormSubmissionId\": 123,\n \"EmailAddress\": \"<string>\"\n },\n \"TicketType\": {\n \"TicketTypeId\": 123,\n \"Name\": \"<string>\",\n \"Icon\": \"<string>\",\n \"DefaultTicketStatus\": 123,\n \"DefaultTicketPriority\": 123,\n \"IsDefault\": true,\n \"ShowInNew\": true,\n \"ExcludeSignature\": true,\n \"ExcludeEmailRecipients\": true,\n \"ExternalAsDefault\": true,\n \"VisibleForGroups\": [\n 123\n ],\n \"ReplyForwardNoSignature\": true,\n \"ReplyExternalAsDefault\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ActiveStatusMonitorId\": 123,\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByOwner: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Author: '<string>',
OwnedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Category: {
TicketCategoryId: 123,
ParentId: 123,
Name: '<string>',
Fullname: '<string>',
CategoryMaster: 123,
ExternalName: '<string>',
AssignmentLag: 123,
ReplyTemplate: 123,
NotificationEmail: '<string>',
DefaultTicketStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
DefaultMessageStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
EffectiveReplyTemplateId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Priority: {
TicketPriorityId: 123,
Name: '<string>',
SortOrder: 123,
Deadline: 123,
MonStart: '2023-11-07T05:31:56Z',
MonStop: '2023-11-07T05:31:56Z',
TueStart: '2023-11-07T05:31:56Z',
TueStop: '2023-11-07T05:31:56Z',
WedStart: '2023-11-07T05:31:56Z',
WedStop: '2023-11-07T05:31:56Z',
ThuStart: '2023-11-07T05:31:56Z',
ThuStop: '2023-11-07T05:31:56Z',
FriStart: '2023-11-07T05:31:56Z',
FriStop: '2023-11-07T05:31:56Z',
SatStart: '2023-11-07T05:31:56Z',
SatStop: '2023-11-07T05:31:56Z',
SunStart: '2023-11-07T05:31:56Z',
SunStop: '2023-11-07T05:31:56Z',
NonDates: ['2023-11-07T05:31:56Z'],
EscalationLevels: [
{
TicketAlertId: 123,
AlertLevel: 123,
AlertTimeout: 123,
Action: 123,
DelegateTo: 123,
ScriptId: 123,
EmailTo: '<string>',
SmsTo: '<string>',
ReplyTemplateIdCustomer: 123,
ReplyTemplateIdUser: 123,
ReplyTemplateIdCatmast: 123,
ReplyTemplateIdEmail: 123,
RtiCustomerSms: 123,
ReplyTemplateIdUserSms: 123,
ReplyTemplateIdCatmastSms: 123,
ReplyTemplateIdSms: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Status: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SecondaryPersons: [
{
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
Messages: [
{
TicketMessageId: 123,
CreatedAt: '2023-11-07T05:31:56Z',
Important: true,
Author: '<string>',
PersonId: 123,
PersonFullName: '<string>',
ContactId: 123,
ContactName: '<string>',
ContactDepartment: '<string>',
NumAttachments: 123,
EmailHeader: '<string>',
MessageHeaders: [
{
Id: 123,
Name: '<string>',
Value: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
CreatedBy: 123,
ChangedAt: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Tags: [
{
Id: 123,
Name: '<string>',
ToolTip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SuggestedCategoryId: 123,
SuggestedCategoryName: '<string>',
OrigHumanCategoryId: 123,
IconHint: '<string>',
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormSubmission: {FormSubmissionId: 123, EmailAddress: '<string>'},
TicketType: {
TicketTypeId: 123,
Name: '<string>',
Icon: '<string>',
DefaultTicketStatus: 123,
DefaultTicketPriority: 123,
IsDefault: true,
ShowInNew: true,
ExcludeSignature: true,
ExcludeEmailRecipients: true,
ExternalAsDefault: true,
VisibleForGroups: [123],
ReplyForwardNoSignature: true,
ReplyExternalAsDefault: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ActiveStatusMonitorId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/Ticket', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/Ticket",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'TicketId' => 123,
'Title' => '<string>',
'CreatedAt' => '2023-11-07T05:31:56Z',
'LastChanged' => '2023-11-07T05:31:56Z',
'ReadByOwner' => '2023-11-07T05:31:56Z',
'ReadByCustomer' => '2023-11-07T05:31:56Z',
'FirstReadByOwner' => '2023-11-07T05:31:56Z',
'FirstReadByUser' => '2023-11-07T05:31:56Z',
'Activate' => '2023-11-07T05:31:56Z',
'ClosedAt' => '2023-11-07T05:31:56Z',
'RepliedAt' => '2023-11-07T05:31:56Z',
'AlertTimeout' => '2023-11-07T05:31:56Z',
'Deadline' => '2023-11-07T05:31:56Z',
'CreatedBy' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Author' => '<string>',
'OwnedBy' => [
'AssociateId' => 123,
'Name' => '<string>',
'PersonId' => 123,
'Rank' => 123,
'Tooltip' => '<string>',
'GroupIdx' => 123,
'FullName' => '<string>',
'FormalName' => '<string>',
'Deleted' => true,
'EjUserId' => 123,
'UserName' => '<string>',
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Category' => [
'TicketCategoryId' => 123,
'ParentId' => 123,
'Name' => '<string>',
'Fullname' => '<string>',
'CategoryMaster' => 123,
'ExternalName' => '<string>',
'AssignmentLag' => 123,
'ReplyTemplate' => 123,
'NotificationEmail' => '<string>',
'DefaultTicketStatus' => [
'TicketStatusId' => 123,
'Name' => '<string>',
'NoEmailReopen' => true,
'IsDefault' => true,
'UsedInQueue' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'DefaultMessageStatus' => [
'TicketStatusId' => 123,
'Name' => '<string>',
'NoEmailReopen' => true,
'IsDefault' => true,
'UsedInQueue' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'EffectiveReplyTemplateId' => 123,
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Priority' => [
'TicketPriorityId' => 123,
'Name' => '<string>',
'SortOrder' => 123,
'Deadline' => 123,
'MonStart' => '2023-11-07T05:31:56Z',
'MonStop' => '2023-11-07T05:31:56Z',
'TueStart' => '2023-11-07T05:31:56Z',
'TueStop' => '2023-11-07T05:31:56Z',
'WedStart' => '2023-11-07T05:31:56Z',
'WedStop' => '2023-11-07T05:31:56Z',
'ThuStart' => '2023-11-07T05:31:56Z',
'ThuStop' => '2023-11-07T05:31:56Z',
'FriStart' => '2023-11-07T05:31:56Z',
'FriStop' => '2023-11-07T05:31:56Z',
'SatStart' => '2023-11-07T05:31:56Z',
'SatStop' => '2023-11-07T05:31:56Z',
'SunStart' => '2023-11-07T05:31:56Z',
'SunStop' => '2023-11-07T05:31:56Z',
'NonDates' => [
'2023-11-07T05:31:56Z'
],
'EscalationLevels' => [
[
'TicketAlertId' => 123,
'AlertLevel' => 123,
'AlertTimeout' => 123,
'Action' => 123,
'DelegateTo' => 123,
'ScriptId' => 123,
'EmailTo' => '<string>',
'SmsTo' => '<string>',
'ReplyTemplateIdCustomer' => 123,
'ReplyTemplateIdUser' => 123,
'ReplyTemplateIdCatmast' => 123,
'ReplyTemplateIdEmail' => 123,
'RtiCustomerSms' => 123,
'ReplyTemplateIdUserSms' => 123,
'ReplyTemplateIdCatmastSms' => 123,
'ReplyTemplateIdSms' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Status' => [
'TicketStatusId' => 123,
'Name' => '<string>',
'NoEmailReopen' => true,
'IsDefault' => true,
'UsedInQueue' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Person' => [
'Position' => '<string>',
'PersonId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'Lastname' => '<string>',
'MiddleName' => '<string>',
'Title' => '<string>',
'Description' => '<string>',
'Email' => '<string>',
'FullName' => '<string>',
'DirectPhone' => '<string>',
'FormalName' => '<string>',
'CountryId' => 123,
'ContactId' => 123,
'ContactName' => '<string>',
'Retired' => 123,
'Rank' => 123,
'ActiveInterests' => 123,
'ContactDepartment' => '<string>',
'ContactCountryId' => 123,
'ContactOrgNr' => '<string>',
'FaxPhone' => '<string>',
'MobilePhone' => '<string>',
'ContactPhone' => '<string>',
'AssociateName' => '<string>',
'AssociateId' => 123,
'UsePersonAddress' => true,
'ContactFax' => '<string>',
'Kanafname' => '<string>',
'Kanalname' => '<string>',
'Post1' => '<string>',
'Post2' => '<string>',
'Post3' => '<string>',
'EmailName' => '<string>',
'ContactFullName' => '<string>',
'ActiveErpLinks' => 123,
'TicketPriorityId' => 123,
'SupportLanguageId' => 123,
'SupportAssociateId' => 123,
'CategoryName' => '<string>',
'PersonNumber' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'SecondaryPersons' => [
[
'Position' => '<string>',
'PersonId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'Lastname' => '<string>',
'MiddleName' => '<string>',
'Title' => '<string>',
'Description' => '<string>',
'Email' => '<string>',
'FullName' => '<string>',
'DirectPhone' => '<string>',
'FormalName' => '<string>',
'CountryId' => 123,
'ContactId' => 123,
'ContactName' => '<string>',
'Retired' => 123,
'Rank' => 123,
'ActiveInterests' => 123,
'ContactDepartment' => '<string>',
'ContactCountryId' => 123,
'ContactOrgNr' => '<string>',
'FaxPhone' => '<string>',
'MobilePhone' => '<string>',
'ContactPhone' => '<string>',
'AssociateName' => '<string>',
'AssociateId' => 123,
'UsePersonAddress' => true,
'ContactFax' => '<string>',
'Kanafname' => '<string>',
'Kanalname' => '<string>',
'Post1' => '<string>',
'Post2' => '<string>',
'Post3' => '<string>',
'EmailName' => '<string>',
'ContactFullName' => '<string>',
'ActiveErpLinks' => 123,
'TicketPriorityId' => 123,
'SupportLanguageId' => 123,
'SupportAssociateId' => 123,
'CategoryName' => '<string>',
'PersonNumber' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'AlertLevel' => 123,
'ConnectId' => 123,
'TimeToReply' => 123,
'RealTimeToReply' => 123,
'TimeToClose' => 123,
'RealTimeToClose' => 123,
'TimeSpentInternally' => 123,
'TimeSpentExternally' => 123,
'TimeSpentQueue' => 123,
'RealTimeSpentInternally' => 123,
'RealTimeSpentExternally' => 123,
'RealTimeSpentQueue' => 123,
'TimeSpent' => 123,
'HasAttachment' => true,
'NumReplies' => 123,
'NumMessages' => 123,
'FromAddress' => '<string>',
'Messages' => [
[
'TicketMessageId' => 123,
'CreatedAt' => '2023-11-07T05:31:56Z',
'Important' => true,
'Author' => '<string>',
'PersonId' => 123,
'PersonFullName' => '<string>',
'ContactId' => 123,
'ContactName' => '<string>',
'ContactDepartment' => '<string>',
'NumAttachments' => 123,
'EmailHeader' => '<string>',
'MessageHeaders' => [
[
'Id' => 123,
'Name' => '<string>',
'Value' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'Language' => '<string>',
'Sentiment' => 123,
'SentimentConfidence' => 123,
'CreatedBy' => 123,
'ChangedAt' => '2023-11-07T05:31:56Z',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'Tags' => [
[
'Id' => 123,
'Name' => '<string>',
'ToolTip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'Language' => '<string>',
'Sentiment' => 123,
'SentimentConfidence' => 123,
'SuggestedCategoryId' => 123,
'SuggestedCategoryName' => '<string>',
'OrigHumanCategoryId' => 123,
'IconHint' => '<string>',
'Sale' => [
'ContactName' => '<string>',
'SaleDate' => '2023-11-07T05:31:56Z',
'SaleId' => 123,
'Probability' => 123,
'Title' => '<string>',
'Amount' => 123,
'Currency' => '<string>',
'ProjectName' => '<string>',
'AssociateFullName' => '<string>',
'Description' => '<string>',
'WeightedAmount' => 123,
'ProjectId' => 123,
'EarningPercent' => 123,
'Earning' => 123,
'ContactId' => 123,
'AssociateId' => 123,
'PersonId' => 123,
'SaleTypeId' => 123,
'SaleTypeName' => '<string>',
'PersonFullName' => '<string>',
'ActiveErpLinks' => 123,
'NextDueDate' => '2023-11-07T05:31:56Z',
'Number' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Project' => [
'ProjectId' => 123,
'Name' => '<string>',
'Description' => '<string>',
'URL' => '<string>',
'Type' => '<string>',
'AssociateId' => 123,
'AssociateFullName' => '<string>',
'TypeId' => 123,
'Updated' => '2023-11-07T05:31:56Z',
'StatusId' => 123,
'Status' => '<string>',
'TextId' => 123,
'PublishTo' => '2023-11-07T05:31:56Z',
'PublishFrom' => '2023-11-07T05:31:56Z',
'IsPublished' => true,
'URLName' => '<string>',
'ProjectNumber' => '<string>',
'ActiveErpLinks' => 123,
'EventId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FormSubmission' => [
'FormSubmissionId' => 123,
'EmailAddress' => '<string>'
],
'TicketType' => [
'TicketTypeId' => 123,
'Name' => '<string>',
'Icon' => '<string>',
'DefaultTicketStatus' => 123,
'DefaultTicketPriority' => 123,
'IsDefault' => true,
'ShowInNew' => true,
'ExcludeSignature' => true,
'ExcludeEmailRecipients' => true,
'ExternalAsDefault' => true,
'VisibleForGroups' => [
123
],
'ReplyForwardNoSignature' => true,
'ReplyExternalAsDefault' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ActiveStatusMonitorId' => 123,
'ExtraFields' => [
],
'CustomFields' => [
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/Ticket"
payload = {
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByOwner": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Author": "<string>",
"OwnedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": True,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Category": {
"TicketCategoryId": 123,
"ParentId": 123,
"Name": "<string>",
"Fullname": "<string>",
"CategoryMaster": 123,
"ExternalName": "<string>",
"AssignmentLag": 123,
"ReplyTemplate": 123,
"NotificationEmail": "<string>",
"DefaultTicketStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"NoEmailReopen": True,
"IsDefault": True,
"UsedInQueue": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"DefaultMessageStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"NoEmailReopen": True,
"IsDefault": True,
"UsedInQueue": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"EffectiveReplyTemplateId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Priority": {
"TicketPriorityId": 123,
"Name": "<string>",
"SortOrder": 123,
"Deadline": 123,
"MonStart": "2023-11-07T05:31:56Z",
"MonStop": "2023-11-07T05:31:56Z",
"TueStart": "2023-11-07T05:31:56Z",
"TueStop": "2023-11-07T05:31:56Z",
"WedStart": "2023-11-07T05:31:56Z",
"WedStop": "2023-11-07T05:31:56Z",
"ThuStart": "2023-11-07T05:31:56Z",
"ThuStop": "2023-11-07T05:31:56Z",
"FriStart": "2023-11-07T05:31:56Z",
"FriStop": "2023-11-07T05:31:56Z",
"SatStart": "2023-11-07T05:31:56Z",
"SatStop": "2023-11-07T05:31:56Z",
"SunStart": "2023-11-07T05:31:56Z",
"SunStop": "2023-11-07T05:31:56Z",
"NonDates": ["2023-11-07T05:31:56Z"],
"EscalationLevels": [
{
"TicketAlertId": 123,
"AlertLevel": 123,
"AlertTimeout": 123,
"Action": 123,
"DelegateTo": 123,
"ScriptId": 123,
"EmailTo": "<string>",
"SmsTo": "<string>",
"ReplyTemplateIdCustomer": 123,
"ReplyTemplateIdUser": 123,
"ReplyTemplateIdCatmast": 123,
"ReplyTemplateIdEmail": 123,
"RtiCustomerSms": 123,
"ReplyTemplateIdUserSms": 123,
"ReplyTemplateIdCatmastSms": 123,
"ReplyTemplateIdSms": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Status": {
"TicketStatusId": 123,
"Name": "<string>",
"NoEmailReopen": True,
"IsDefault": True,
"UsedInQueue": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": True,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"SecondaryPersons": [
{
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": True,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlertLevel": 123,
"ConnectId": 123,
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": True,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"Messages": [
{
"TicketMessageId": 123,
"CreatedAt": "2023-11-07T05:31:56Z",
"Important": True,
"Author": "<string>",
"PersonId": 123,
"PersonFullName": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"ContactDepartment": "<string>",
"NumAttachments": 123,
"EmailHeader": "<string>",
"MessageHeaders": [
{
"Id": 123,
"Name": "<string>",
"Value": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"CreatedBy": 123,
"ChangedAt": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Tags": [
{
"Id": 123,
"Name": "<string>",
"ToolTip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SuggestedCategoryId": 123,
"SuggestedCategoryName": "<string>",
"OrigHumanCategoryId": 123,
"IconHint": "<string>",
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": True,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormSubmission": {
"FormSubmissionId": 123,
"EmailAddress": "<string>"
},
"TicketType": {
"TicketTypeId": 123,
"Name": "<string>",
"Icon": "<string>",
"DefaultTicketStatus": 123,
"DefaultTicketPriority": 123,
"IsDefault": True,
"ShowInNew": True,
"ExcludeSignature": True,
"ExcludeEmailRecipients": True,
"ExternalAsDefault": True,
"VisibleForGroups": [123],
"ReplyForwardNoSignature": True,
"ReplyExternalAsDefault": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ActiveStatusMonitorId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TicketId: 123,
Title: '<string>',
CreatedAt: '2023-11-07T05:31:56Z',
LastChanged: '2023-11-07T05:31:56Z',
ReadByOwner: '2023-11-07T05:31:56Z',
ReadByCustomer: '2023-11-07T05:31:56Z',
FirstReadByOwner: '2023-11-07T05:31:56Z',
FirstReadByUser: '2023-11-07T05:31:56Z',
Activate: '2023-11-07T05:31:56Z',
ClosedAt: '2023-11-07T05:31:56Z',
RepliedAt: '2023-11-07T05:31:56Z',
AlertTimeout: '2023-11-07T05:31:56Z',
Deadline: '2023-11-07T05:31:56Z',
CreatedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Author: '<string>',
OwnedBy: {
AssociateId: 123,
Name: '<string>',
PersonId: 123,
Rank: 123,
Tooltip: '<string>',
GroupIdx: 123,
FullName: '<string>',
FormalName: '<string>',
Deleted: true,
EjUserId: 123,
UserName: '<string>',
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Category: {
TicketCategoryId: 123,
ParentId: 123,
Name: '<string>',
Fullname: '<string>',
CategoryMaster: 123,
ExternalName: '<string>',
AssignmentLag: 123,
ReplyTemplate: 123,
NotificationEmail: '<string>',
DefaultTicketStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
DefaultMessageStatus: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
EffectiveReplyTemplateId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Priority: {
TicketPriorityId: 123,
Name: '<string>',
SortOrder: 123,
Deadline: 123,
MonStart: '2023-11-07T05:31:56Z',
MonStop: '2023-11-07T05:31:56Z',
TueStart: '2023-11-07T05:31:56Z',
TueStop: '2023-11-07T05:31:56Z',
WedStart: '2023-11-07T05:31:56Z',
WedStop: '2023-11-07T05:31:56Z',
ThuStart: '2023-11-07T05:31:56Z',
ThuStop: '2023-11-07T05:31:56Z',
FriStart: '2023-11-07T05:31:56Z',
FriStop: '2023-11-07T05:31:56Z',
SatStart: '2023-11-07T05:31:56Z',
SatStop: '2023-11-07T05:31:56Z',
SunStart: '2023-11-07T05:31:56Z',
SunStop: '2023-11-07T05:31:56Z',
NonDates: ['2023-11-07T05:31:56Z'],
EscalationLevels: [
{
TicketAlertId: 123,
AlertLevel: 123,
AlertTimeout: 123,
Action: 123,
DelegateTo: 123,
ScriptId: 123,
EmailTo: '<string>',
SmsTo: '<string>',
ReplyTemplateIdCustomer: 123,
ReplyTemplateIdUser: 123,
ReplyTemplateIdCatmast: 123,
ReplyTemplateIdEmail: 123,
RtiCustomerSms: 123,
ReplyTemplateIdUserSms: 123,
ReplyTemplateIdCatmastSms: 123,
ReplyTemplateIdSms: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Status: {
TicketStatusId: 123,
Name: '<string>',
NoEmailReopen: true,
IsDefault: true,
UsedInQueue: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Person: {
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SecondaryPersons: [
{
Position: '<string>',
PersonId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
Lastname: '<string>',
MiddleName: '<string>',
Title: '<string>',
Description: '<string>',
Email: '<string>',
FullName: '<string>',
DirectPhone: '<string>',
FormalName: '<string>',
CountryId: 123,
ContactId: 123,
ContactName: '<string>',
Retired: 123,
Rank: 123,
ActiveInterests: 123,
ContactDepartment: '<string>',
ContactCountryId: 123,
ContactOrgNr: '<string>',
FaxPhone: '<string>',
MobilePhone: '<string>',
ContactPhone: '<string>',
AssociateName: '<string>',
AssociateId: 123,
UsePersonAddress: true,
ContactFax: '<string>',
Kanafname: '<string>',
Kanalname: '<string>',
Post1: '<string>',
Post2: '<string>',
Post3: '<string>',
EmailName: '<string>',
ContactFullName: '<string>',
ActiveErpLinks: 123,
TicketPriorityId: 123,
SupportLanguageId: 123,
SupportAssociateId: 123,
CategoryName: '<string>',
PersonNumber: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlertLevel: 123,
ConnectId: 123,
TimeToReply: 123,
RealTimeToReply: 123,
TimeToClose: 123,
RealTimeToClose: 123,
TimeSpentInternally: 123,
TimeSpentExternally: 123,
TimeSpentQueue: 123,
RealTimeSpentInternally: 123,
RealTimeSpentExternally: 123,
RealTimeSpentQueue: 123,
TimeSpent: 123,
HasAttachment: true,
NumReplies: 123,
NumMessages: 123,
FromAddress: '<string>',
Messages: [
{
TicketMessageId: 123,
CreatedAt: '2023-11-07T05:31:56Z',
Important: true,
Author: '<string>',
PersonId: 123,
PersonFullName: '<string>',
ContactId: 123,
ContactName: '<string>',
ContactDepartment: '<string>',
NumAttachments: 123,
EmailHeader: '<string>',
MessageHeaders: [
{
Id: 123,
Name: '<string>',
Value: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
CreatedBy: 123,
ChangedAt: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Tags: [
{
Id: 123,
Name: '<string>',
ToolTip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
Language: '<string>',
Sentiment: 123,
SentimentConfidence: 123,
SuggestedCategoryId: 123,
SuggestedCategoryName: '<string>',
OrigHumanCategoryId: 123,
IconHint: '<string>',
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Project: {
ProjectId: 123,
Name: '<string>',
Description: '<string>',
URL: '<string>',
Type: '<string>',
AssociateId: 123,
AssociateFullName: '<string>',
TypeId: 123,
Updated: '2023-11-07T05:31:56Z',
StatusId: 123,
Status: '<string>',
TextId: 123,
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
URLName: '<string>',
ProjectNumber: '<string>',
ActiveErpLinks: 123,
EventId: 123,
StartDate: '2023-11-07T05:31:56Z',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormSubmission: {FormSubmissionId: 123, EmailAddress: '<string>'},
TicketType: {
TicketTypeId: 123,
Name: '<string>',
Icon: '<string>',
DefaultTicketStatus: 123,
DefaultTicketPriority: 123,
IsDefault: true,
ShowInNew: true,
ExcludeSignature: true,
ExcludeEmailRecipients: true,
ExternalAsDefault: true,
VisibleForGroups: [123],
ReplyForwardNoSignature: true,
ReplyExternalAsDefault: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ActiveStatusMonitorId: 123,
ExtraFields: {},
CustomFields: {},
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
})
};
fetch('http://localhost:56350/api/v1/Ticket', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"TicketId": 123,
"Title": "<string>",
"CreatedAt": "2023-11-07T05:31:56Z",
"LastChanged": "2023-11-07T05:31:56Z",
"ReadByOwner": "2023-11-07T05:31:56Z",
"ReadByCustomer": "2023-11-07T05:31:56Z",
"FirstReadByOwner": "2023-11-07T05:31:56Z",
"FirstReadByUser": "2023-11-07T05:31:56Z",
"Activate": "2023-11-07T05:31:56Z",
"ClosedAt": "2023-11-07T05:31:56Z",
"RepliedAt": "2023-11-07T05:31:56Z",
"AlertTimeout": "2023-11-07T05:31:56Z",
"Deadline": "2023-11-07T05:31:56Z",
"CreatedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Author": "<string>",
"OwnedBy": {
"AssociateId": 123,
"Name": "<string>",
"PersonId": 123,
"Rank": 123,
"Tooltip": "<string>",
"Type": "Unknown",
"GroupIdx": 123,
"FullName": "<string>",
"FormalName": "<string>",
"Deleted": true,
"EjUserId": 123,
"UserName": "<string>",
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Category": {
"TicketCategoryId": 123,
"ParentId": 123,
"Name": "<string>",
"Fullname": "<string>",
"CategoryMaster": 123,
"Flags": "Unknown",
"DelegateMethod": "Unknown",
"ExternalName": "<string>",
"ClosingStatus": "UserDefined",
"MsgClosingStatus": "UserDefined",
"AssignmentLag": 123,
"ReplyTemplate": 123,
"NotificationEmail": "<string>",
"DefaultTicketStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"Status": "Unknown",
"TimeCounter": "None",
"NoEmailReopen": true,
"IsDefault": true,
"UsedInQueue": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"DefaultMessageStatus": {
"TicketStatusId": 123,
"Name": "<string>",
"Status": "Unknown",
"TimeCounter": "None",
"NoEmailReopen": true,
"IsDefault": true,
"UsedInQueue": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"EffectiveReplyTemplateId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Slevel": "Unknown",
"Priority": {
"TicketPriorityId": 123,
"Name": "<string>",
"Status": "Unknown",
"Flags": "Unknown",
"SortOrder": 123,
"TicketRead": "None",
"ChangedOwner": "None",
"TicketNewinfo": "None",
"TicketClosed": "None",
"TicketChangedPriority": "None",
"TicketNew": "None",
"Deadline": 123,
"MonStart": "2023-11-07T05:31:56Z",
"MonStop": "2023-11-07T05:31:56Z",
"TueStart": "2023-11-07T05:31:56Z",
"TueStop": "2023-11-07T05:31:56Z",
"WedStart": "2023-11-07T05:31:56Z",
"WedStop": "2023-11-07T05:31:56Z",
"ThuStart": "2023-11-07T05:31:56Z",
"ThuStop": "2023-11-07T05:31:56Z",
"FriStart": "2023-11-07T05:31:56Z",
"FriStop": "2023-11-07T05:31:56Z",
"SatStart": "2023-11-07T05:31:56Z",
"SatStop": "2023-11-07T05:31:56Z",
"SunStart": "2023-11-07T05:31:56Z",
"SunStop": "2023-11-07T05:31:56Z",
"NonDates": [
"2023-11-07T05:31:56Z"
],
"EscalationLevels": [
{
"TicketAlertId": 123,
"AlertLevel": 123,
"AlertTimeout": 123,
"Action": 123,
"DelegateTo": 123,
"ScriptId": 123,
"EmailTo": "<string>",
"SmsTo": "<string>",
"ReplyTemplateIdCustomer": 123,
"ReplyTemplateIdUser": 123,
"ReplyTemplateIdCatmast": 123,
"ReplyTemplateIdEmail": 123,
"RtiCustomerSms": 123,
"ReplyTemplateIdUserSms": 123,
"ReplyTemplateIdCatmastSms": 123,
"ReplyTemplateIdSms": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"BaseStatus": "Unknown",
"Status": {
"TicketStatusId": 123,
"Name": "<string>",
"Status": "Unknown",
"TimeCounter": "None",
"NoEmailReopen": true,
"IsDefault": true,
"UsedInQueue": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Origin": "Unknown",
"Person": {
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": true,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"SecondaryPersons": [
{
"Position": "<string>",
"PersonId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"Lastname": "<string>",
"MiddleName": "<string>",
"Title": "<string>",
"Description": "<string>",
"Email": "<string>",
"FullName": "<string>",
"DirectPhone": "<string>",
"FormalName": "<string>",
"CountryId": 123,
"ContactId": 123,
"ContactName": "<string>",
"Retired": 123,
"Rank": 123,
"ActiveInterests": 123,
"ContactDepartment": "<string>",
"ContactCountryId": 123,
"ContactOrgNr": "<string>",
"FaxPhone": "<string>",
"MobilePhone": "<string>",
"ContactPhone": "<string>",
"AssociateName": "<string>",
"AssociateId": 123,
"UsePersonAddress": true,
"ContactFax": "<string>",
"Kanafname": "<string>",
"Kanalname": "<string>",
"Post1": "<string>",
"Post2": "<string>",
"Post3": "<string>",
"EmailName": "<string>",
"ContactFullName": "<string>",
"ActiveErpLinks": 123,
"TicketPriorityId": 123,
"SupportLanguageId": 123,
"SupportAssociateId": 123,
"CategoryName": "<string>",
"PersonNumber": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlertLevel": 123,
"ConnectId": 123,
"ReadStatus": "Unknown",
"TimeToReply": 123,
"RealTimeToReply": 123,
"TimeToClose": 123,
"RealTimeToClose": 123,
"TimeSpentInternally": 123,
"TimeSpentExternally": 123,
"TimeSpentQueue": 123,
"RealTimeSpentInternally": 123,
"RealTimeSpentExternally": 123,
"RealTimeSpentQueue": 123,
"TimeSpent": 123,
"HasAttachment": true,
"NumReplies": 123,
"NumMessages": 123,
"FromAddress": "<string>",
"Messages": [
{
"TicketMessageId": 123,
"CreatedAt": "2023-11-07T05:31:56Z",
"Slevel": "Unknown",
"Important": true,
"Author": "<string>",
"PersonId": 123,
"PersonFullName": "<string>",
"ContactId": 123,
"ContactName": "<string>",
"ContactDepartment": "<string>",
"NumAttachments": 123,
"EmailHeader": "<string>",
"MessageHeaders": [
{
"Id": 123,
"Name": "<string>",
"Value": "<string>",
"StdItem": "None",
"StdItemCol": "None",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"CreatedBy": 123,
"ChangedAt": "2023-11-07T05:31:56Z",
"Badge": "Unknown",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Tags": [
{
"Id": 123,
"Name": "<string>",
"ToolTip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"Language": "<string>",
"Sentiment": 123,
"SentimentConfidence": 123,
"SuggestedCategoryId": 123,
"SuggestedCategoryName": "<string>",
"OrigHumanCategoryId": 123,
"IconHint": "<string>",
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"Status": "Unknown",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"Completed": "Unknown",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Project": {
"ProjectId": 123,
"Name": "<string>",
"Description": "<string>",
"URL": "<string>",
"Type": "<string>",
"AssociateId": 123,
"AssociateFullName": "<string>",
"TypeId": 123,
"Updated": "2023-11-07T05:31:56Z",
"StatusId": 123,
"Status": "<string>",
"TextId": 123,
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": true,
"URLName": "<string>",
"ProjectNumber": "<string>",
"ActiveErpLinks": 123,
"EventId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormSubmission": {
"FormSubmissionId": 123,
"EmailAddress": "<string>",
"Status": "Unknown"
},
"TicketType": {
"TicketTypeId": 123,
"Name": "<string>",
"Icon": "<string>",
"DefaultTicketStatus": 123,
"DefaultTicketPriority": 123,
"IsDefault": true,
"ShowInNew": true,
"ExcludeSignature": true,
"ExcludeEmailRecipients": true,
"ExternalAsDefault": true,
"VisibleForGroups": [
123
],
"ReplyForwardNoSignature": true,
"ReplyExternalAsDefault": true,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ActiveStatusMonitorId": 123,
"ExtraFields": {},
"CustomFields": {},
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}Headers
Convert string references and multi-language values into a specified language (iso2) code.
Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
Specify the timezone code that you would like date/time responses converted to.
The application token that identifies the partner app. Used when calling Online WebAPI from a server.
Query Parameters
If true, then the notifications will be sent
Body
The ticket to save
The ticket entity is used for representing a service ticket Carrier object for TicketEntity. Services for the TicketEntity Carrier is available from the Ticket Agent.
The primary key (auto-incremented)
The title of the ticket.
When the ticket was created.
The last time the ticket was modified.
The datetime for when the ticket last was read by the owner.
The datetime for when the ticket was read by the customer.
The datetime for when the ticket first was read by the current owner.
The datetime for when the ticket first was read by a user.
When the ticket should be activated, if it is postponed.
When the ticket was closed.
The datetime for when the ticket was replied to. I.e. the first external message added to the ticket.
The datetime for when the ticket should jump to the next alert_level.
Deadline for ticket.
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
A string representing the author of the ticket (same as author of first message).
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
This entity describes the meta data for a ticket category, and provides special operations on it. Carrier object for TicketCategoryEntity. Services for the TicketCategoryEntity Carrier is available from the List Agent.
Show child attributes
Show child attributes
The securitylevel of the ticket.
Unknown, Internal, External Entity for a ticket priority. This entity describes the meta data for a ticket priority, and provides special operations on it. Carrier object for TicketPriorityEntity. Services for the TicketPriorityEntity Carrier is available from the List Agent.
Show child attributes
Show child attributes
The status of the ticket. I.e. active/closed/postponed/deleted Use MDO List name "ticketstatus" to get list items.
Unknown, Active, Closed, Postponed, Deleted, Merged, Spam, PostponedSpecific, Postponed1Hour, Postponed2Hours, Postponed3Hours, Postponed4Hours, PostponedDay, PostponedWeek, PostponedMonth Entity for a ticket status. This entity describes the meta data for a ticket status, and provides special operations on it. Carrier object for TicketStatusEntity. Services for the TicketStatusEntity Carrier is available from the List Agent.
Show child attributes
Show child attributes
What is the origin of this ticket
Unknown, Email, SMS, Fax, Phone, Facebook, Twitter, Internal, CustomerCentre, EMarketing, AutoGenerated, Chat, Form, API, Flow Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
The secondary persons this ticket is connected to Use MDO List name "person_new" to get list items.
Show child attributes
Show child attributes
The alert level for the ticket. Matches the level value of the ticket_alert table.
If a ticket is connected to another ticket, this field is set to the id of the 'master' ticket.
Whether the owner has read the ticket or not (red, yellow, green).
Unknown, Green, Yellow, Red The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's timeframe.
Same as time_to_reply, but not calculated based on priority.
The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's timeframe.
Same as time_to_close, but not calculated based on priority.
The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state
The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state
The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state
The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state
The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state
The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state
The total time (minutes). Aggregated time spent from ticket's messages. Read-only for external use.
Boolean indicating if this ticket has one or more attachments.
The number of replies (messages) to the customer for this request.
The total number of messages for this request.
The from-address used when this ticket got created, e.g. by email
TicketMessageId,CreatedAt,SLevel and Important for all the messages connected to this ticket. For message body see the TicketMessageEntity or the TicketMessage archive.
Show child attributes
Show child attributes
An array containing the tags assigned to this request
Show child attributes
Show child attributes
The language of the first external message
The sentiment index of the last external message
The sentiment confidence of the last external message
Suggestion for categorization, based on the text of the message (AI)
Suggested category from AI
Will contain the category id selected by the user, when having the choice of using the suggested category or manually selecting a category
Icon representing ticket's state
Carrier object for Sale. Services for the Sale Carrier is available from the Sale Agent.
Show child attributes
Show child attributes
Carrier object for Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
Class representing form submission related to ticket. Carrier object for TicketFormSubmission.
Show child attributes
Show child attributes
Ticket Type - light read-only version of TicketTypeEntity. Carrier object for TicketType. Services for the TicketType Carrier is available from the List Agent.
Show child attributes
Show child attributes
Active status monitor identity for related contact. This is a read-only property and is ignored on Save
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.
Show child attributes
Show child attributes
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.
Show child attributes
Show child attributes
Wraps a table right together with an explanatory reason. Code can indicate why access is restricted.
Show child attributes
Show child attributes
Field property dictionary mapping field names to field access rights.
Show child attributes
Show child attributes
Response
OK
The ticket entity is used for representing a service ticket Carrier object for TicketEntity. Services for the TicketEntity Carrier is available from the Ticket Agent.
The primary key (auto-incremented)
The title of the ticket.
When the ticket was created.
The last time the ticket was modified.
The datetime for when the ticket last was read by the owner.
The datetime for when the ticket was read by the customer.
The datetime for when the ticket first was read by the current owner.
The datetime for when the ticket first was read by a user.
When the ticket should be activated, if it is postponed.
When the ticket was closed.
The datetime for when the ticket was replied to. I.e. the first external message added to the ticket.
The datetime for when the ticket should jump to the next alert_level.
Deadline for ticket.
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
A string representing the author of the ticket (same as author of first message).
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
This entity describes the meta data for a ticket category, and provides special operations on it. Carrier object for TicketCategoryEntity. Services for the TicketCategoryEntity Carrier is available from the List Agent.
Show child attributes
Show child attributes
The securitylevel of the ticket.
Unknown, Internal, External Entity for a ticket priority. This entity describes the meta data for a ticket priority, and provides special operations on it. Carrier object for TicketPriorityEntity. Services for the TicketPriorityEntity Carrier is available from the List Agent.
Show child attributes
Show child attributes
The status of the ticket. I.e. active/closed/postponed/deleted Use MDO List name "ticketstatus" to get list items.
Unknown, Active, Closed, Postponed, Deleted, Merged, Spam, PostponedSpecific, Postponed1Hour, Postponed2Hours, Postponed3Hours, Postponed4Hours, PostponedDay, PostponedWeek, PostponedMonth Entity for a ticket status. This entity describes the meta data for a ticket status, and provides special operations on it. Carrier object for TicketStatusEntity. Services for the TicketStatusEntity Carrier is available from the List Agent.
Show child attributes
Show child attributes
What is the origin of this ticket
Unknown, Email, SMS, Fax, Phone, Facebook, Twitter, Internal, CustomerCentre, EMarketing, AutoGenerated, Chat, Form, API, Flow Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
The secondary persons this ticket is connected to Use MDO List name "person_new" to get list items.
Show child attributes
Show child attributes
The alert level for the ticket. Matches the level value of the ticket_alert table.
If a ticket is connected to another ticket, this field is set to the id of the 'master' ticket.
Whether the owner has read the ticket or not (red, yellow, green).
Unknown, Green, Yellow, Red The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's timeframe.
Same as time_to_reply, but not calculated based on priority.
The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's timeframe.
Same as time_to_close, but not calculated based on priority.
The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state
The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state
The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state
The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state
The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state
The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state
The total time (minutes). Aggregated time spent from ticket's messages. Read-only for external use.
Boolean indicating if this ticket has one or more attachments.
The number of replies (messages) to the customer for this request.
The total number of messages for this request.
The from-address used when this ticket got created, e.g. by email
TicketMessageId,CreatedAt,SLevel and Important for all the messages connected to this ticket. For message body see the TicketMessageEntity or the TicketMessage archive.
Show child attributes
Show child attributes
An array containing the tags assigned to this request
Show child attributes
Show child attributes
The language of the first external message
The sentiment index of the last external message
The sentiment confidence of the last external message
Suggestion for categorization, based on the text of the message (AI)
Suggested category from AI
Will contain the category id selected by the user, when having the choice of using the suggested category or manually selecting a category
Icon representing ticket's state
Carrier object for Sale. Services for the Sale Carrier is available from the Sale Agent.
Show child attributes
Show child attributes
Carrier object for Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
Class representing form submission related to ticket. Carrier object for TicketFormSubmission.
Show child attributes
Show child attributes
Ticket Type - light read-only version of TicketTypeEntity. Carrier object for TicketType. Services for the TicketType Carrier is available from the List Agent.
Show child attributes
Show child attributes
Active status monitor identity for related contact. This is a read-only property and is ignored on Save
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.
Show child attributes
Show child attributes
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.
Show child attributes
Show child attributes
Wraps a table right together with an explanatory reason. Code can indicate why access is restricted.
Show child attributes
Show child attributes
Field property dictionary mapping field names to field access rights.
Show child attributes
Show child attributes
Related topics
Http Post Save Ticket Message Entity With NotifyHttp Put Save Ticket Entity With NotifySave Ticket Entity With NotifyHttp Put Save Ticket Message Entity With NotifySave Ticket Message Entity With NotifySave Ticket Entity