using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/Appointment/Save");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"AppointmentEntity\": {\n \"Associate\": {\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 \"Contact\": {\n \"ContactId\": 123,\n \"Name\": \"<string>\",\n \"OrgNr\": \"<string>\",\n \"Department\": \"<string>\",\n \"URL\": \"<string>\",\n \"City\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"AssociateId\": 123,\n \"CountryId\": 123,\n \"EmailAddress\": \"<string>\",\n \"Kananame\": \"<string>\",\n \"EmailAddressName\": \"<string>\",\n \"URLName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"BusinessName\": \"<string>\",\n \"CategoryName\": \"<string>\",\n \"CountryName\": \"<string>\",\n \"Address\": {\n \"Wgs84Latitude\": 123,\n \"Wgs84Longitude\": 123,\n \"LocalizedAddress\": [\n [\n {\n \"Name\": \"<string>\",\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"Label\": \"<string>\",\n \"ValueLength\": 123,\n \"AddressType\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ]\n ],\n \"Street\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Postal\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Formatted\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FormattedAddress\": \"<string>\",\n \"FullName\": \"<string>\",\n \"IsOwnerContact\": true,\n \"ActiveErpLinks\": 123,\n \"Number1\": \"<string>\",\n \"Number2\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\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 \"UpdatedBy\": {\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 \"CreatedDate\": \"2023-11-07T05:31:56Z\",\n \"AppointmentId\": 123,\n \"Description\": \"<string>\",\n \"Title\": \"<string>\",\n \"Agenda\": \"<string>\",\n \"InternalNotes\": \"<string>\",\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"EndDate\": \"2023-11-07T05:31:56Z\",\n \"InvitedPerson\": {\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 \"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 \"MotherId\": 123,\n \"Priority\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<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 \"UpdatedDate\": \"2023-11-07T05:31:56Z\",\n \"ActiveLinks\": 123,\n \"Links\": [\n {\n \"EntityName\": \"<string>\",\n \"Id\": 123,\n \"Description\": \"<string>\",\n \"ExtraInfo\": \"<string>\",\n \"LinkId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"AlarmLeadTime\": \"<string>\",\n \"HasAlarm\": true,\n \"ColorIndex\": 123,\n \"IsFree\": true,\n \"IsAlldayEvent\": true,\n \"LagTime\": \"<string>\",\n \"LeadTime\": \"<string>\",\n \"Location\": \"<string>\",\n \"RejectCounter\": 123,\n \"RejectReason\": \"<string>\",\n \"Recurrence\": {\n \"RecurrenceId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"EndDate\": \"2023-11-07T05:31:56Z\",\n \"RecurrenceCounter\": 123,\n \"DayPattern\": {\n \"Cycle\": 123\n },\n \"WeekPattern\": {\n \"Cycle\": 123\n },\n \"MonthPattern\": {\n \"Cycle\": 123,\n \"Day\": 123\n },\n \"YearPattern\": {\n \"Cycle\": 123,\n \"Day\": 123\n },\n \"Dates\": [\n {\n \"Date\": \"2023-11-07T05:31:56Z\",\n \"IsConflict\": true,\n \"Description\": \"<string>\",\n \"DescriptionStyleHint\": \"<string>\",\n \"Tooltip\": \"<string>\"\n }\n ],\n \"IsRecurrence\": true\n },\n \"Participants\": [\n {\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"ContactId\": 123,\n \"EmailId\": 123,\n \"SendEmail\": true,\n \"EmailAddress\": \"<string>\",\n \"Description\": \"<string>\"\n }\n ],\n \"ActiveDate\": \"2023-11-07T05:31:56Z\",\n \"HasConflict\": true,\n \"AssignedBy\": {\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 \"MotherAssociate\": {\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 \"Task\": {\n \"TaskListItemId\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"Deleted\": true,\n \"IntentId\": 123,\n \"Rank\": 123,\n \"IsDefaultAlldayEvent\": true,\n \"IsDefaultFree\": true,\n \"IsDefaultPublished\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"PreferredTZLocation\": 123,\n \"PreferredTZLocationData\": {\n \"TZLocationID\": 123,\n \"Name\": \"<string>\",\n \"TZLocationCode\": \"<string>\",\n \"TZLocationCities\": \"<string>\",\n \"IsoNumber\": 123,\n \"TimeZoneSTDRules\": {},\n \"TimeZoneDSTRules\": {}\n },\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 \"SuggestedAppointmentId\": 123,\n \"IsMileStone\": true,\n \"JoinVideomeetUrl\": \"<string>\",\n \"CentralserviceVideomeetId\": \"<string>\",\n \"UserDefinedFields\": {},\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"PublishEventDate\": \"2023-11-07T05:31:56Z\",\n \"PublishTo\": \"2023-11-07T05:31:56Z\",\n \"PublishFrom\": \"2023-11-07T05:31:56Z\",\n \"IsPublished\": true,\n \"VisibleFor\": [\n {\n \"VisibleId\": 123,\n \"DisplayValue\": \"<string>\",\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 \"SendEmailToParticipants\": true,\n \"SmtpEMailConnectionInfo\": {\n \"ServerName\": \"<string>\",\n \"UserName\": \"<string>\",\n \"Password\": \"<string>\",\n \"Folder\": \"<string>\",\n \"UseSSL\": true,\n \"UseGraphApi\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ImapEMailConnectionInfo\": {\n \"ServerName\": \"<string>\",\n \"UserName\": \"<string>\",\n \"Password\": \"<string>\",\n \"Folder\": \"<string>\",\n \"UseSSL\": true,\n \"UseGraphApi\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\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({
AppointmentEntity: {
Associate: {
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: {}
},
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
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: {}
},
UpdatedBy: {
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: {}
},
CreatedDate: '2023-11-07T05:31:56Z',
AppointmentId: 123,
Description: '<string>',
Title: '<string>',
Agenda: '<string>',
InternalNotes: '<string>',
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
InvitedPerson: {
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: {}
},
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: {}
},
MotherId: 123,
Priority: {
Id: 123,
Value: '<string>',
Tooltip: '<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: {}
},
UpdatedDate: '2023-11-07T05:31:56Z',
ActiveLinks: 123,
Links: [
{
EntityName: '<string>',
Id: 123,
Description: '<string>',
ExtraInfo: '<string>',
LinkId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlarmLeadTime: '<string>',
HasAlarm: true,
ColorIndex: 123,
IsFree: true,
IsAlldayEvent: true,
LagTime: '<string>',
LeadTime: '<string>',
Location: '<string>',
RejectCounter: 123,
RejectReason: '<string>',
Recurrence: {
RecurrenceId: 123,
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
RecurrenceCounter: 123,
DayPattern: {Cycle: 123},
WeekPattern: {Cycle: 123},
MonthPattern: {Cycle: 123, Day: 123},
YearPattern: {Cycle: 123, Day: 123},
Dates: [
{
Date: '2023-11-07T05:31:56Z',
IsConflict: true,
Description: '<string>',
DescriptionStyleHint: '<string>',
Tooltip: '<string>'
}
],
IsRecurrence: true
},
Participants: [
{
AssociateId: 123,
PersonId: 123,
ContactId: 123,
EmailId: 123,
SendEmail: true,
EmailAddress: '<string>',
Description: '<string>'
}
],
ActiveDate: '2023-11-07T05:31:56Z',
HasConflict: true,
AssignedBy: {
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: {}
},
MotherAssociate: {
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: {}
},
Task: {
TaskListItemId: 123,
Value: '<string>',
Tooltip: '<string>',
Deleted: true,
IntentId: 123,
Rank: 123,
IsDefaultAlldayEvent: true,
IsDefaultFree: true,
IsDefaultPublished: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PreferredTZLocation: 123,
PreferredTZLocationData: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
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: {}
},
SuggestedAppointmentId: 123,
IsMileStone: true,
JoinVideomeetUrl: '<string>',
CentralserviceVideomeetId: '<string>',
UserDefinedFields: {},
ExtraFields: {},
CustomFields: {},
PublishEventDate: '2023-11-07T05:31:56Z',
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
VisibleFor: [
{
VisibleId: 123,
DisplayValue: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SendEmailToParticipants: true,
SmtpEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ImapEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Appointment/Save', 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/Agents/Appointment/Save",
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([
'AppointmentEntity' => [
'Associate' => [
'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' => [
]
],
'Contact' => [
'ContactId' => 123,
'Name' => '<string>',
'OrgNr' => '<string>',
'Department' => '<string>',
'URL' => '<string>',
'City' => '<string>',
'DirectPhone' => '<string>',
'AssociateId' => 123,
'CountryId' => 123,
'EmailAddress' => '<string>',
'Kananame' => '<string>',
'EmailAddressName' => '<string>',
'URLName' => '<string>',
'AssociateFullName' => '<string>',
'BusinessName' => '<string>',
'CategoryName' => '<string>',
'CountryName' => '<string>',
'Address' => [
'Wgs84Latitude' => 123,
'Wgs84Longitude' => 123,
'LocalizedAddress' => [
[
[
'Name' => '<string>',
'Value' => '<string>',
'Tooltip' => '<string>',
'Label' => '<string>',
'ValueLength' => 123,
'AddressType' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
]
],
'Street' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Postal' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Formatted' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FormattedAddress' => '<string>',
'FullName' => '<string>',
'IsOwnerContact' => true,
'ActiveErpLinks' => 123,
'Number1' => '<string>',
'Number2' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'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' => [
]
],
'UpdatedBy' => [
'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' => [
]
],
'CreatedDate' => '2023-11-07T05:31:56Z',
'AppointmentId' => 123,
'Description' => '<string>',
'Title' => '<string>',
'Agenda' => '<string>',
'InternalNotes' => '<string>',
'StartDate' => '2023-11-07T05:31:56Z',
'EndDate' => '2023-11-07T05:31:56Z',
'InvitedPerson' => [
'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' => [
]
],
'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' => [
]
],
'MotherId' => 123,
'Priority' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<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' => [
]
],
'UpdatedDate' => '2023-11-07T05:31:56Z',
'ActiveLinks' => 123,
'Links' => [
[
'EntityName' => '<string>',
'Id' => 123,
'Description' => '<string>',
'ExtraInfo' => '<string>',
'LinkId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'AlarmLeadTime' => '<string>',
'HasAlarm' => true,
'ColorIndex' => 123,
'IsFree' => true,
'IsAlldayEvent' => true,
'LagTime' => '<string>',
'LeadTime' => '<string>',
'Location' => '<string>',
'RejectCounter' => 123,
'RejectReason' => '<string>',
'Recurrence' => [
'RecurrenceId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'EndDate' => '2023-11-07T05:31:56Z',
'RecurrenceCounter' => 123,
'DayPattern' => [
'Cycle' => 123
],
'WeekPattern' => [
'Cycle' => 123
],
'MonthPattern' => [
'Cycle' => 123,
'Day' => 123
],
'YearPattern' => [
'Cycle' => 123,
'Day' => 123
],
'Dates' => [
[
'Date' => '2023-11-07T05:31:56Z',
'IsConflict' => true,
'Description' => '<string>',
'DescriptionStyleHint' => '<string>',
'Tooltip' => '<string>'
]
],
'IsRecurrence' => true
],
'Participants' => [
[
'AssociateId' => 123,
'PersonId' => 123,
'ContactId' => 123,
'EmailId' => 123,
'SendEmail' => true,
'EmailAddress' => '<string>',
'Description' => '<string>'
]
],
'ActiveDate' => '2023-11-07T05:31:56Z',
'HasConflict' => true,
'AssignedBy' => [
'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' => [
]
],
'MotherAssociate' => [
'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' => [
]
],
'Task' => [
'TaskListItemId' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'Deleted' => true,
'IntentId' => 123,
'Rank' => 123,
'IsDefaultAlldayEvent' => true,
'IsDefaultFree' => true,
'IsDefaultPublished' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'PreferredTZLocation' => 123,
'PreferredTZLocationData' => [
'TZLocationID' => 123,
'Name' => '<string>',
'TZLocationCode' => '<string>',
'TZLocationCities' => '<string>',
'IsoNumber' => 123,
'TimeZoneSTDRules' => [
],
'TimeZoneDSTRules' => [
]
],
'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' => [
]
],
'SuggestedAppointmentId' => 123,
'IsMileStone' => true,
'JoinVideomeetUrl' => '<string>',
'CentralserviceVideomeetId' => '<string>',
'UserDefinedFields' => [
],
'ExtraFields' => [
],
'CustomFields' => [
],
'PublishEventDate' => '2023-11-07T05:31:56Z',
'PublishTo' => '2023-11-07T05:31:56Z',
'PublishFrom' => '2023-11-07T05:31:56Z',
'IsPublished' => true,
'VisibleFor' => [
[
'VisibleId' => 123,
'DisplayValue' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'SendEmailToParticipants' => true,
'SmtpEMailConnectionInfo' => [
'ServerName' => '<string>',
'UserName' => '<string>',
'Password' => '<string>',
'Folder' => '<string>',
'UseSSL' => true,
'UseGraphApi' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ImapEMailConnectionInfo' => [
'ServerName' => '<string>',
'UserName' => '<string>',
'Password' => '<string>',
'Folder' => '<string>',
'UseSSL' => true,
'UseGraphApi' => true,
'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/Agents/Appointment/Save"
payload = {
"AppointmentEntity": {
"Associate": {
"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": {}
},
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]],
"Street": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": True,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"UpdatedBy": {
"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": {}
},
"CreatedDate": "2023-11-07T05:31:56Z",
"AppointmentId": 123,
"Description": "<string>",
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"InvitedPerson": {
"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": {}
},
"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": {}
},
"MotherId": 123,
"Priority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<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": {}
},
"UpdatedDate": "2023-11-07T05:31:56Z",
"ActiveLinks": 123,
"Links": [
{
"EntityName": "<string>",
"Id": 123,
"Description": "<string>",
"ExtraInfo": "<string>",
"LinkId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlarmLeadTime": "<string>",
"HasAlarm": True,
"ColorIndex": 123,
"IsFree": True,
"IsAlldayEvent": True,
"LagTime": "<string>",
"LeadTime": "<string>",
"Location": "<string>",
"RejectCounter": 123,
"RejectReason": "<string>",
"Recurrence": {
"RecurrenceId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"RecurrenceCounter": 123,
"DayPattern": { "Cycle": 123 },
"WeekPattern": { "Cycle": 123 },
"MonthPattern": {
"Cycle": 123,
"Day": 123
},
"YearPattern": {
"Cycle": 123,
"Day": 123
},
"Dates": [
{
"Date": "2023-11-07T05:31:56Z",
"IsConflict": True,
"Description": "<string>",
"DescriptionStyleHint": "<string>",
"Tooltip": "<string>"
}
],
"IsRecurrence": True
},
"Participants": [
{
"AssociateId": 123,
"PersonId": 123,
"ContactId": 123,
"EmailId": 123,
"SendEmail": True,
"EmailAddress": "<string>",
"Description": "<string>"
}
],
"ActiveDate": "2023-11-07T05:31:56Z",
"HasConflict": True,
"AssignedBy": {
"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": {}
},
"MotherAssociate": {
"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": {}
},
"Task": {
"TaskListItemId": 123,
"Value": "<string>",
"Tooltip": "<string>",
"Deleted": True,
"IntentId": 123,
"Rank": 123,
"IsDefaultAlldayEvent": True,
"IsDefaultFree": True,
"IsDefaultPublished": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PreferredTZLocation": 123,
"PreferredTZLocationData": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"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": {}
},
"SuggestedAppointmentId": 123,
"IsMileStone": True,
"JoinVideomeetUrl": "<string>",
"CentralserviceVideomeetId": "<string>",
"UserDefinedFields": {},
"ExtraFields": {},
"CustomFields": {},
"PublishEventDate": "2023-11-07T05:31:56Z",
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": True,
"VisibleFor": [
{
"VisibleId": 123,
"DisplayValue": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"SendEmailToParticipants": True,
"SmtpEMailConnectionInfo": {
"ServerName": "<string>",
"UserName": "<string>",
"Password": "<string>",
"Folder": "<string>",
"UseSSL": True,
"UseGraphApi": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ImapEMailConnectionInfo": {
"ServerName": "<string>",
"UserName": "<string>",
"Password": "<string>",
"Folder": "<string>",
"UseSSL": True,
"UseGraphApi": True,
"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({
AppointmentEntity: {
Associate: {
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: {}
},
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
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: {}
},
UpdatedBy: {
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: {}
},
CreatedDate: '2023-11-07T05:31:56Z',
AppointmentId: 123,
Description: '<string>',
Title: '<string>',
Agenda: '<string>',
InternalNotes: '<string>',
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
InvitedPerson: {
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: {}
},
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: {}
},
MotherId: 123,
Priority: {
Id: 123,
Value: '<string>',
Tooltip: '<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: {}
},
UpdatedDate: '2023-11-07T05:31:56Z',
ActiveLinks: 123,
Links: [
{
EntityName: '<string>',
Id: 123,
Description: '<string>',
ExtraInfo: '<string>',
LinkId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlarmLeadTime: '<string>',
HasAlarm: true,
ColorIndex: 123,
IsFree: true,
IsAlldayEvent: true,
LagTime: '<string>',
LeadTime: '<string>',
Location: '<string>',
RejectCounter: 123,
RejectReason: '<string>',
Recurrence: {
RecurrenceId: 123,
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
RecurrenceCounter: 123,
DayPattern: {Cycle: 123},
WeekPattern: {Cycle: 123},
MonthPattern: {Cycle: 123, Day: 123},
YearPattern: {Cycle: 123, Day: 123},
Dates: [
{
Date: '2023-11-07T05:31:56Z',
IsConflict: true,
Description: '<string>',
DescriptionStyleHint: '<string>',
Tooltip: '<string>'
}
],
IsRecurrence: true
},
Participants: [
{
AssociateId: 123,
PersonId: 123,
ContactId: 123,
EmailId: 123,
SendEmail: true,
EmailAddress: '<string>',
Description: '<string>'
}
],
ActiveDate: '2023-11-07T05:31:56Z',
HasConflict: true,
AssignedBy: {
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: {}
},
MotherAssociate: {
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: {}
},
Task: {
TaskListItemId: 123,
Value: '<string>',
Tooltip: '<string>',
Deleted: true,
IntentId: 123,
Rank: 123,
IsDefaultAlldayEvent: true,
IsDefaultFree: true,
IsDefaultPublished: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PreferredTZLocation: 123,
PreferredTZLocationData: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
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: {}
},
SuggestedAppointmentId: 123,
IsMileStone: true,
JoinVideomeetUrl: '<string>',
CentralserviceVideomeetId: '<string>',
UserDefinedFields: {},
ExtraFields: {},
CustomFields: {},
PublishEventDate: '2023-11-07T05:31:56Z',
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
VisibleFor: [
{
VisibleId: 123,
DisplayValue: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SendEmailToParticipants: true,
SmtpEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ImapEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Appointment/Save', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"Associate": {
"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": {}
},
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [
[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]
],
"Street": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": true,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"UpdatedBy": {
"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": {}
},
"CreatedDate": "2023-11-07T05:31:56Z",
"AppointmentId": 123,
"Description": "<string>",
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"InvitedPerson": {
"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": {}
},
"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": {}
},
"MotherId": 123,
"Priority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Private": "Public",
"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": {}
},
"Type": "Unknown",
"UpdatedDate": "2023-11-07T05:31:56Z",
"Completed": "Unknown",
"ActiveLinks": 123,
"Links": [
{
"EntityName": "<string>",
"Id": 123,
"Description": "<string>",
"ExtraInfo": "<string>",
"LinkId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlarmLeadTime": "<string>",
"HasAlarm": true,
"ColorIndex": 123,
"IsFree": true,
"IsAlldayEvent": true,
"LagTime": "<string>",
"LeadTime": "<string>",
"Location": "<string>",
"RejectCounter": 123,
"RejectReason": "<string>",
"Recurrence": {
"RecurrenceId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"RecurrenceCounter": 123,
"RecurrenceEndType": "Unknown",
"Pattern": "Unknown",
"DayPattern": {
"Pattern": "Unknown",
"Cycle": 123
},
"WeekPattern": {
"Weekdays": "Unknown",
"Cycle": 123
},
"MonthPattern": {
"Pattern": "Unknown",
"Cycle": 123,
"Day": 123,
"Weekday": "Unknown",
"WeekOfMonth": "Unknown"
},
"YearPattern": {
"Pattern": "Unknown",
"Cycle": 123,
"Day": 123,
"Weekday": "Unknown",
"WeekOfMonth": "Unknown"
},
"Dates": [
{
"Date": "2023-11-07T05:31:56Z",
"IsConflict": true,
"Description": "<string>",
"DescriptionStyleHint": "<string>",
"Tooltip": "<string>"
}
],
"IsRecurrence": true
},
"Participants": [
{
"AssociateId": 123,
"PersonId": 123,
"ContactId": 123,
"EmailId": 123,
"SendEmail": true,
"InvitationStatus": "Unknown",
"EmailAddress": "<string>",
"Description": "<string>",
"ExternallyOwnedType": "Unknown",
"ExternallyOwnedStatus": "Unknown"
}
],
"AssignmentStatus": "Unknown",
"InvitationStatus": "Unknown",
"BookingType": "Unknown",
"ActiveDate": "2023-11-07T05:31:56Z",
"HasConflict": true,
"AssignedBy": {
"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": {}
},
"MotherAssociate": {
"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": {}
},
"Task": {
"TaskListItemId": 123,
"Value": "<string>",
"Direction": "Unknown",
"Type": "Unknown",
"Tooltip": "<string>",
"Deleted": true,
"IntentId": 123,
"Rank": 123,
"IsDefaultAlldayEvent": true,
"IsDefaultFree": true,
"IsDefaultPublished": true,
"ColorIndex": "LightBlue",
"DefaultVideomeetingStatus": "NoChange",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PreferredTZLocation": 123,
"PreferredTZLocationData": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"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": {}
},
"SuggestedAppointmentId": 123,
"IsMileStone": true,
"CautionWarning": "OK",
"OwnedExternally": "None",
"JoinVideomeetUrl": "<string>",
"CentralserviceVideomeetId": "<string>",
"UserDefinedFields": {},
"ExtraFields": {},
"CustomFields": {},
"PublishEventDate": "2023-11-07T05:31:56Z",
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": true,
"VisibleFor": [
{
"VisibleId": 123,
"Visibility": "All",
"DisplayValue": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}Saving a booking.
NsApiSlow threshold: 2000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/Appointment/Save");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"AppointmentEntity\": {\n \"Associate\": {\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 \"Contact\": {\n \"ContactId\": 123,\n \"Name\": \"<string>\",\n \"OrgNr\": \"<string>\",\n \"Department\": \"<string>\",\n \"URL\": \"<string>\",\n \"City\": \"<string>\",\n \"DirectPhone\": \"<string>\",\n \"AssociateId\": 123,\n \"CountryId\": 123,\n \"EmailAddress\": \"<string>\",\n \"Kananame\": \"<string>\",\n \"EmailAddressName\": \"<string>\",\n \"URLName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"BusinessName\": \"<string>\",\n \"CategoryName\": \"<string>\",\n \"CountryName\": \"<string>\",\n \"Address\": {\n \"Wgs84Latitude\": 123,\n \"Wgs84Longitude\": 123,\n \"LocalizedAddress\": [\n [\n {\n \"Name\": \"<string>\",\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"Label\": \"<string>\",\n \"ValueLength\": 123,\n \"AddressType\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ]\n ],\n \"Street\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Postal\": {\n \"Address1\": \"<string>\",\n \"Address2\": \"<string>\",\n \"Address3\": \"<string>\",\n \"City\": \"<string>\",\n \"County\": \"<string>\",\n \"State\": \"<string>\",\n \"Zipcode\": \"<string>\",\n \"Formatted\": \"<string>\"\n },\n \"Formatted\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"FormattedAddress\": \"<string>\",\n \"FullName\": \"<string>\",\n \"IsOwnerContact\": true,\n \"ActiveErpLinks\": 123,\n \"Number1\": \"<string>\",\n \"Number2\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\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 \"UpdatedBy\": {\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 \"CreatedDate\": \"2023-11-07T05:31:56Z\",\n \"AppointmentId\": 123,\n \"Description\": \"<string>\",\n \"Title\": \"<string>\",\n \"Agenda\": \"<string>\",\n \"InternalNotes\": \"<string>\",\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"EndDate\": \"2023-11-07T05:31:56Z\",\n \"InvitedPerson\": {\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 \"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 \"MotherId\": 123,\n \"Priority\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<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 \"UpdatedDate\": \"2023-11-07T05:31:56Z\",\n \"ActiveLinks\": 123,\n \"Links\": [\n {\n \"EntityName\": \"<string>\",\n \"Id\": 123,\n \"Description\": \"<string>\",\n \"ExtraInfo\": \"<string>\",\n \"LinkId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"AlarmLeadTime\": \"<string>\",\n \"HasAlarm\": true,\n \"ColorIndex\": 123,\n \"IsFree\": true,\n \"IsAlldayEvent\": true,\n \"LagTime\": \"<string>\",\n \"LeadTime\": \"<string>\",\n \"Location\": \"<string>\",\n \"RejectCounter\": 123,\n \"RejectReason\": \"<string>\",\n \"Recurrence\": {\n \"RecurrenceId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"EndDate\": \"2023-11-07T05:31:56Z\",\n \"RecurrenceCounter\": 123,\n \"DayPattern\": {\n \"Cycle\": 123\n },\n \"WeekPattern\": {\n \"Cycle\": 123\n },\n \"MonthPattern\": {\n \"Cycle\": 123,\n \"Day\": 123\n },\n \"YearPattern\": {\n \"Cycle\": 123,\n \"Day\": 123\n },\n \"Dates\": [\n {\n \"Date\": \"2023-11-07T05:31:56Z\",\n \"IsConflict\": true,\n \"Description\": \"<string>\",\n \"DescriptionStyleHint\": \"<string>\",\n \"Tooltip\": \"<string>\"\n }\n ],\n \"IsRecurrence\": true\n },\n \"Participants\": [\n {\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"ContactId\": 123,\n \"EmailId\": 123,\n \"SendEmail\": true,\n \"EmailAddress\": \"<string>\",\n \"Description\": \"<string>\"\n }\n ],\n \"ActiveDate\": \"2023-11-07T05:31:56Z\",\n \"HasConflict\": true,\n \"AssignedBy\": {\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 \"MotherAssociate\": {\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 \"Task\": {\n \"TaskListItemId\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"Deleted\": true,\n \"IntentId\": 123,\n \"Rank\": 123,\n \"IsDefaultAlldayEvent\": true,\n \"IsDefaultFree\": true,\n \"IsDefaultPublished\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"PreferredTZLocation\": 123,\n \"PreferredTZLocationData\": {\n \"TZLocationID\": 123,\n \"Name\": \"<string>\",\n \"TZLocationCode\": \"<string>\",\n \"TZLocationCities\": \"<string>\",\n \"IsoNumber\": 123,\n \"TimeZoneSTDRules\": {},\n \"TimeZoneDSTRules\": {}\n },\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 \"SuggestedAppointmentId\": 123,\n \"IsMileStone\": true,\n \"JoinVideomeetUrl\": \"<string>\",\n \"CentralserviceVideomeetId\": \"<string>\",\n \"UserDefinedFields\": {},\n \"ExtraFields\": {},\n \"CustomFields\": {},\n \"PublishEventDate\": \"2023-11-07T05:31:56Z\",\n \"PublishTo\": \"2023-11-07T05:31:56Z\",\n \"PublishFrom\": \"2023-11-07T05:31:56Z\",\n \"IsPublished\": true,\n \"VisibleFor\": [\n {\n \"VisibleId\": 123,\n \"DisplayValue\": \"<string>\",\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 \"SendEmailToParticipants\": true,\n \"SmtpEMailConnectionInfo\": {\n \"ServerName\": \"<string>\",\n \"UserName\": \"<string>\",\n \"Password\": \"<string>\",\n \"Folder\": \"<string>\",\n \"UseSSL\": true,\n \"UseGraphApi\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ImapEMailConnectionInfo\": {\n \"ServerName\": \"<string>\",\n \"UserName\": \"<string>\",\n \"Password\": \"<string>\",\n \"Folder\": \"<string>\",\n \"UseSSL\": true,\n \"UseGraphApi\": true,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\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({
AppointmentEntity: {
Associate: {
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: {}
},
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
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: {}
},
UpdatedBy: {
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: {}
},
CreatedDate: '2023-11-07T05:31:56Z',
AppointmentId: 123,
Description: '<string>',
Title: '<string>',
Agenda: '<string>',
InternalNotes: '<string>',
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
InvitedPerson: {
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: {}
},
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: {}
},
MotherId: 123,
Priority: {
Id: 123,
Value: '<string>',
Tooltip: '<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: {}
},
UpdatedDate: '2023-11-07T05:31:56Z',
ActiveLinks: 123,
Links: [
{
EntityName: '<string>',
Id: 123,
Description: '<string>',
ExtraInfo: '<string>',
LinkId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlarmLeadTime: '<string>',
HasAlarm: true,
ColorIndex: 123,
IsFree: true,
IsAlldayEvent: true,
LagTime: '<string>',
LeadTime: '<string>',
Location: '<string>',
RejectCounter: 123,
RejectReason: '<string>',
Recurrence: {
RecurrenceId: 123,
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
RecurrenceCounter: 123,
DayPattern: {Cycle: 123},
WeekPattern: {Cycle: 123},
MonthPattern: {Cycle: 123, Day: 123},
YearPattern: {Cycle: 123, Day: 123},
Dates: [
{
Date: '2023-11-07T05:31:56Z',
IsConflict: true,
Description: '<string>',
DescriptionStyleHint: '<string>',
Tooltip: '<string>'
}
],
IsRecurrence: true
},
Participants: [
{
AssociateId: 123,
PersonId: 123,
ContactId: 123,
EmailId: 123,
SendEmail: true,
EmailAddress: '<string>',
Description: '<string>'
}
],
ActiveDate: '2023-11-07T05:31:56Z',
HasConflict: true,
AssignedBy: {
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: {}
},
MotherAssociate: {
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: {}
},
Task: {
TaskListItemId: 123,
Value: '<string>',
Tooltip: '<string>',
Deleted: true,
IntentId: 123,
Rank: 123,
IsDefaultAlldayEvent: true,
IsDefaultFree: true,
IsDefaultPublished: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PreferredTZLocation: 123,
PreferredTZLocationData: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
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: {}
},
SuggestedAppointmentId: 123,
IsMileStone: true,
JoinVideomeetUrl: '<string>',
CentralserviceVideomeetId: '<string>',
UserDefinedFields: {},
ExtraFields: {},
CustomFields: {},
PublishEventDate: '2023-11-07T05:31:56Z',
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
VisibleFor: [
{
VisibleId: 123,
DisplayValue: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SendEmailToParticipants: true,
SmtpEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ImapEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Appointment/Save', 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/Agents/Appointment/Save",
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([
'AppointmentEntity' => [
'Associate' => [
'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' => [
]
],
'Contact' => [
'ContactId' => 123,
'Name' => '<string>',
'OrgNr' => '<string>',
'Department' => '<string>',
'URL' => '<string>',
'City' => '<string>',
'DirectPhone' => '<string>',
'AssociateId' => 123,
'CountryId' => 123,
'EmailAddress' => '<string>',
'Kananame' => '<string>',
'EmailAddressName' => '<string>',
'URLName' => '<string>',
'AssociateFullName' => '<string>',
'BusinessName' => '<string>',
'CategoryName' => '<string>',
'CountryName' => '<string>',
'Address' => [
'Wgs84Latitude' => 123,
'Wgs84Longitude' => 123,
'LocalizedAddress' => [
[
[
'Name' => '<string>',
'Value' => '<string>',
'Tooltip' => '<string>',
'Label' => '<string>',
'ValueLength' => 123,
'AddressType' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
]
],
'Street' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Postal' => [
'Address1' => '<string>',
'Address2' => '<string>',
'Address3' => '<string>',
'City' => '<string>',
'County' => '<string>',
'State' => '<string>',
'Zipcode' => '<string>',
'Formatted' => '<string>'
],
'Formatted' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'FormattedAddress' => '<string>',
'FullName' => '<string>',
'IsOwnerContact' => true,
'ActiveErpLinks' => 123,
'Number1' => '<string>',
'Number2' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'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' => [
]
],
'UpdatedBy' => [
'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' => [
]
],
'CreatedDate' => '2023-11-07T05:31:56Z',
'AppointmentId' => 123,
'Description' => '<string>',
'Title' => '<string>',
'Agenda' => '<string>',
'InternalNotes' => '<string>',
'StartDate' => '2023-11-07T05:31:56Z',
'EndDate' => '2023-11-07T05:31:56Z',
'InvitedPerson' => [
'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' => [
]
],
'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' => [
]
],
'MotherId' => 123,
'Priority' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<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' => [
]
],
'UpdatedDate' => '2023-11-07T05:31:56Z',
'ActiveLinks' => 123,
'Links' => [
[
'EntityName' => '<string>',
'Id' => 123,
'Description' => '<string>',
'ExtraInfo' => '<string>',
'LinkId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'AlarmLeadTime' => '<string>',
'HasAlarm' => true,
'ColorIndex' => 123,
'IsFree' => true,
'IsAlldayEvent' => true,
'LagTime' => '<string>',
'LeadTime' => '<string>',
'Location' => '<string>',
'RejectCounter' => 123,
'RejectReason' => '<string>',
'Recurrence' => [
'RecurrenceId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'EndDate' => '2023-11-07T05:31:56Z',
'RecurrenceCounter' => 123,
'DayPattern' => [
'Cycle' => 123
],
'WeekPattern' => [
'Cycle' => 123
],
'MonthPattern' => [
'Cycle' => 123,
'Day' => 123
],
'YearPattern' => [
'Cycle' => 123,
'Day' => 123
],
'Dates' => [
[
'Date' => '2023-11-07T05:31:56Z',
'IsConflict' => true,
'Description' => '<string>',
'DescriptionStyleHint' => '<string>',
'Tooltip' => '<string>'
]
],
'IsRecurrence' => true
],
'Participants' => [
[
'AssociateId' => 123,
'PersonId' => 123,
'ContactId' => 123,
'EmailId' => 123,
'SendEmail' => true,
'EmailAddress' => '<string>',
'Description' => '<string>'
]
],
'ActiveDate' => '2023-11-07T05:31:56Z',
'HasConflict' => true,
'AssignedBy' => [
'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' => [
]
],
'MotherAssociate' => [
'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' => [
]
],
'Task' => [
'TaskListItemId' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'Deleted' => true,
'IntentId' => 123,
'Rank' => 123,
'IsDefaultAlldayEvent' => true,
'IsDefaultFree' => true,
'IsDefaultPublished' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'PreferredTZLocation' => 123,
'PreferredTZLocationData' => [
'TZLocationID' => 123,
'Name' => '<string>',
'TZLocationCode' => '<string>',
'TZLocationCities' => '<string>',
'IsoNumber' => 123,
'TimeZoneSTDRules' => [
],
'TimeZoneDSTRules' => [
]
],
'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' => [
]
],
'SuggestedAppointmentId' => 123,
'IsMileStone' => true,
'JoinVideomeetUrl' => '<string>',
'CentralserviceVideomeetId' => '<string>',
'UserDefinedFields' => [
],
'ExtraFields' => [
],
'CustomFields' => [
],
'PublishEventDate' => '2023-11-07T05:31:56Z',
'PublishTo' => '2023-11-07T05:31:56Z',
'PublishFrom' => '2023-11-07T05:31:56Z',
'IsPublished' => true,
'VisibleFor' => [
[
'VisibleId' => 123,
'DisplayValue' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'SendEmailToParticipants' => true,
'SmtpEMailConnectionInfo' => [
'ServerName' => '<string>',
'UserName' => '<string>',
'Password' => '<string>',
'Folder' => '<string>',
'UseSSL' => true,
'UseGraphApi' => true,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ImapEMailConnectionInfo' => [
'ServerName' => '<string>',
'UserName' => '<string>',
'Password' => '<string>',
'Folder' => '<string>',
'UseSSL' => true,
'UseGraphApi' => true,
'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/Agents/Appointment/Save"
payload = {
"AppointmentEntity": {
"Associate": {
"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": {}
},
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]],
"Street": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": True,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"UpdatedBy": {
"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": {}
},
"CreatedDate": "2023-11-07T05:31:56Z",
"AppointmentId": 123,
"Description": "<string>",
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"InvitedPerson": {
"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": {}
},
"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": {}
},
"MotherId": 123,
"Priority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<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": {}
},
"UpdatedDate": "2023-11-07T05:31:56Z",
"ActiveLinks": 123,
"Links": [
{
"EntityName": "<string>",
"Id": 123,
"Description": "<string>",
"ExtraInfo": "<string>",
"LinkId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlarmLeadTime": "<string>",
"HasAlarm": True,
"ColorIndex": 123,
"IsFree": True,
"IsAlldayEvent": True,
"LagTime": "<string>",
"LeadTime": "<string>",
"Location": "<string>",
"RejectCounter": 123,
"RejectReason": "<string>",
"Recurrence": {
"RecurrenceId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"RecurrenceCounter": 123,
"DayPattern": { "Cycle": 123 },
"WeekPattern": { "Cycle": 123 },
"MonthPattern": {
"Cycle": 123,
"Day": 123
},
"YearPattern": {
"Cycle": 123,
"Day": 123
},
"Dates": [
{
"Date": "2023-11-07T05:31:56Z",
"IsConflict": True,
"Description": "<string>",
"DescriptionStyleHint": "<string>",
"Tooltip": "<string>"
}
],
"IsRecurrence": True
},
"Participants": [
{
"AssociateId": 123,
"PersonId": 123,
"ContactId": 123,
"EmailId": 123,
"SendEmail": True,
"EmailAddress": "<string>",
"Description": "<string>"
}
],
"ActiveDate": "2023-11-07T05:31:56Z",
"HasConflict": True,
"AssignedBy": {
"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": {}
},
"MotherAssociate": {
"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": {}
},
"Task": {
"TaskListItemId": 123,
"Value": "<string>",
"Tooltip": "<string>",
"Deleted": True,
"IntentId": 123,
"Rank": 123,
"IsDefaultAlldayEvent": True,
"IsDefaultFree": True,
"IsDefaultPublished": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PreferredTZLocation": 123,
"PreferredTZLocationData": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"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": {}
},
"SuggestedAppointmentId": 123,
"IsMileStone": True,
"JoinVideomeetUrl": "<string>",
"CentralserviceVideomeetId": "<string>",
"UserDefinedFields": {},
"ExtraFields": {},
"CustomFields": {},
"PublishEventDate": "2023-11-07T05:31:56Z",
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": True,
"VisibleFor": [
{
"VisibleId": 123,
"DisplayValue": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"SendEmailToParticipants": True,
"SmtpEMailConnectionInfo": {
"ServerName": "<string>",
"UserName": "<string>",
"Password": "<string>",
"Folder": "<string>",
"UseSSL": True,
"UseGraphApi": True,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ImapEMailConnectionInfo": {
"ServerName": "<string>",
"UserName": "<string>",
"Password": "<string>",
"Folder": "<string>",
"UseSSL": True,
"UseGraphApi": True,
"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({
AppointmentEntity: {
Associate: {
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: {}
},
Contact: {
ContactId: 123,
Name: '<string>',
OrgNr: '<string>',
Department: '<string>',
URL: '<string>',
City: '<string>',
DirectPhone: '<string>',
AssociateId: 123,
CountryId: 123,
EmailAddress: '<string>',
Kananame: '<string>',
EmailAddressName: '<string>',
URLName: '<string>',
AssociateFullName: '<string>',
BusinessName: '<string>',
CategoryName: '<string>',
CountryName: '<string>',
Address: {
Wgs84Latitude: 123,
Wgs84Longitude: 123,
LocalizedAddress: [
[
{
Name: '<string>',
Value: '<string>',
Tooltip: '<string>',
Label: '<string>',
ValueLength: 123,
AddressType: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
]
],
Street: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Postal: {
Address1: '<string>',
Address2: '<string>',
Address3: '<string>',
City: '<string>',
County: '<string>',
State: '<string>',
Zipcode: '<string>',
Formatted: '<string>'
},
Formatted: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
FormattedAddress: '<string>',
FullName: '<string>',
IsOwnerContact: true,
ActiveErpLinks: 123,
Number1: '<string>',
Number2: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
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: {}
},
UpdatedBy: {
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: {}
},
CreatedDate: '2023-11-07T05:31:56Z',
AppointmentId: 123,
Description: '<string>',
Title: '<string>',
Agenda: '<string>',
InternalNotes: '<string>',
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
InvitedPerson: {
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: {}
},
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: {}
},
MotherId: 123,
Priority: {
Id: 123,
Value: '<string>',
Tooltip: '<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: {}
},
UpdatedDate: '2023-11-07T05:31:56Z',
ActiveLinks: 123,
Links: [
{
EntityName: '<string>',
Id: 123,
Description: '<string>',
ExtraInfo: '<string>',
LinkId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
AlarmLeadTime: '<string>',
HasAlarm: true,
ColorIndex: 123,
IsFree: true,
IsAlldayEvent: true,
LagTime: '<string>',
LeadTime: '<string>',
Location: '<string>',
RejectCounter: 123,
RejectReason: '<string>',
Recurrence: {
RecurrenceId: 123,
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
RecurrenceCounter: 123,
DayPattern: {Cycle: 123},
WeekPattern: {Cycle: 123},
MonthPattern: {Cycle: 123, Day: 123},
YearPattern: {Cycle: 123, Day: 123},
Dates: [
{
Date: '2023-11-07T05:31:56Z',
IsConflict: true,
Description: '<string>',
DescriptionStyleHint: '<string>',
Tooltip: '<string>'
}
],
IsRecurrence: true
},
Participants: [
{
AssociateId: 123,
PersonId: 123,
ContactId: 123,
EmailId: 123,
SendEmail: true,
EmailAddress: '<string>',
Description: '<string>'
}
],
ActiveDate: '2023-11-07T05:31:56Z',
HasConflict: true,
AssignedBy: {
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: {}
},
MotherAssociate: {
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: {}
},
Task: {
TaskListItemId: 123,
Value: '<string>',
Tooltip: '<string>',
Deleted: true,
IntentId: 123,
Rank: 123,
IsDefaultAlldayEvent: true,
IsDefaultFree: true,
IsDefaultPublished: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
PreferredTZLocation: 123,
PreferredTZLocationData: {
TZLocationID: 123,
Name: '<string>',
TZLocationCode: '<string>',
TZLocationCities: '<string>',
IsoNumber: 123,
TimeZoneSTDRules: {},
TimeZoneDSTRules: {}
},
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: {}
},
SuggestedAppointmentId: 123,
IsMileStone: true,
JoinVideomeetUrl: '<string>',
CentralserviceVideomeetId: '<string>',
UserDefinedFields: {},
ExtraFields: {},
CustomFields: {},
PublishEventDate: '2023-11-07T05:31:56Z',
PublishTo: '2023-11-07T05:31:56Z',
PublishFrom: '2023-11-07T05:31:56Z',
IsPublished: true,
VisibleFor: [
{
VisibleId: 123,
DisplayValue: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
SendEmailToParticipants: true,
SmtpEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ImapEMailConnectionInfo: {
ServerName: '<string>',
UserName: '<string>',
Password: '<string>',
Folder: '<string>',
UseSSL: true,
UseGraphApi: true,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
})
};
fetch('http://localhost:56350/api/v1/Agents/Appointment/Save', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"Associate": {
"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": {}
},
"Contact": {
"ContactId": 123,
"Name": "<string>",
"OrgNr": "<string>",
"Department": "<string>",
"URL": "<string>",
"City": "<string>",
"DirectPhone": "<string>",
"AssociateId": 123,
"CountryId": 123,
"EmailAddress": "<string>",
"Kananame": "<string>",
"EmailAddressName": "<string>",
"URLName": "<string>",
"AssociateFullName": "<string>",
"BusinessName": "<string>",
"CategoryName": "<string>",
"CountryName": "<string>",
"Address": {
"Wgs84Latitude": 123,
"Wgs84Longitude": 123,
"LocalizedAddress": [
[
{
"Name": "<string>",
"Value": "<string>",
"Tooltip": "<string>",
"Label": "<string>",
"ValueLength": 123,
"AddressType": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
]
],
"Street": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Postal": {
"AtypeIdx": "Unknown",
"Address1": "<string>",
"Address2": "<string>",
"Address3": "<string>",
"City": "<string>",
"County": "<string>",
"State": "<string>",
"Zipcode": "<string>",
"Formatted": "<string>"
},
"Formatted": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"FormattedAddress": "<string>",
"FullName": "<string>",
"IsOwnerContact": true,
"ActiveErpLinks": 123,
"Number1": "<string>",
"Number2": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"UpdatedBy": {
"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": {}
},
"CreatedDate": "2023-11-07T05:31:56Z",
"AppointmentId": 123,
"Description": "<string>",
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"InvitedPerson": {
"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": {}
},
"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": {}
},
"MotherId": 123,
"Priority": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Private": "Public",
"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": {}
},
"Type": "Unknown",
"UpdatedDate": "2023-11-07T05:31:56Z",
"Completed": "Unknown",
"ActiveLinks": 123,
"Links": [
{
"EntityName": "<string>",
"Id": 123,
"Description": "<string>",
"ExtraInfo": "<string>",
"LinkId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"AlarmLeadTime": "<string>",
"HasAlarm": true,
"ColorIndex": 123,
"IsFree": true,
"IsAlldayEvent": true,
"LagTime": "<string>",
"LeadTime": "<string>",
"Location": "<string>",
"RejectCounter": 123,
"RejectReason": "<string>",
"Recurrence": {
"RecurrenceId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"RecurrenceCounter": 123,
"RecurrenceEndType": "Unknown",
"Pattern": "Unknown",
"DayPattern": {
"Pattern": "Unknown",
"Cycle": 123
},
"WeekPattern": {
"Weekdays": "Unknown",
"Cycle": 123
},
"MonthPattern": {
"Pattern": "Unknown",
"Cycle": 123,
"Day": 123,
"Weekday": "Unknown",
"WeekOfMonth": "Unknown"
},
"YearPattern": {
"Pattern": "Unknown",
"Cycle": 123,
"Day": 123,
"Weekday": "Unknown",
"WeekOfMonth": "Unknown"
},
"Dates": [
{
"Date": "2023-11-07T05:31:56Z",
"IsConflict": true,
"Description": "<string>",
"DescriptionStyleHint": "<string>",
"Tooltip": "<string>"
}
],
"IsRecurrence": true
},
"Participants": [
{
"AssociateId": 123,
"PersonId": 123,
"ContactId": 123,
"EmailId": 123,
"SendEmail": true,
"InvitationStatus": "Unknown",
"EmailAddress": "<string>",
"Description": "<string>",
"ExternallyOwnedType": "Unknown",
"ExternallyOwnedStatus": "Unknown"
}
],
"AssignmentStatus": "Unknown",
"InvitationStatus": "Unknown",
"BookingType": "Unknown",
"ActiveDate": "2023-11-07T05:31:56Z",
"HasConflict": true,
"AssignedBy": {
"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": {}
},
"MotherAssociate": {
"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": {}
},
"Task": {
"TaskListItemId": 123,
"Value": "<string>",
"Direction": "Unknown",
"Type": "Unknown",
"Tooltip": "<string>",
"Deleted": true,
"IntentId": 123,
"Rank": 123,
"IsDefaultAlldayEvent": true,
"IsDefaultFree": true,
"IsDefaultPublished": true,
"ColorIndex": "LightBlue",
"DefaultVideomeetingStatus": "NoChange",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"PreferredTZLocation": 123,
"PreferredTZLocationData": {
"TZLocationID": 123,
"Name": "<string>",
"TZLocationCode": "<string>",
"TZLocationCities": "<string>",
"IsoNumber": 123,
"TimeZoneSTDRules": {},
"TimeZoneDSTRules": {}
},
"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": {}
},
"SuggestedAppointmentId": 123,
"IsMileStone": true,
"CautionWarning": "OK",
"OwnedExternally": "None",
"JoinVideomeetUrl": "<string>",
"CentralserviceVideomeetId": "<string>",
"UserDefinedFields": {},
"ExtraFields": {},
"CustomFields": {},
"PublishEventDate": "2023-11-07T05:31:56Z",
"PublishTo": "2023-11-07T05:31:56Z",
"PublishFrom": "2023-11-07T05:31:56Z",
"IsPublished": true,
"VisibleFor": [
{
"VisibleId": 123,
"Visibility": "All",
"DisplayValue": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"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
Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields.
Body
AppointmentEntity, UpdateMode, SendEmailToParticipants, SmtpEMailConnectionInfo, ImapEMailConnectionInfo
Save: Saving a booking.
Partial AppointmentEntity class associating the generated AppointmentEntity with an interface.
Show child attributes
Show child attributes
Unknown, OnlyThis, ThisAndForward, StopRecurrence All information needed to connect to a mailserver Carrier object for EMailConnectionInfo. Services for the EMailConnectionInfo Carrier is available from the EMail Agent.
Show child attributes
Show child attributes
All information needed to connect to a mailserver Carrier object for EMailConnectionInfo. Services for the EMailConnectionInfo Carrier is available from the EMail Agent.
Show child attributes
Show child attributes
Response
OK
Partial AppointmentEntity class associating the generated AppointmentEntity with an interface.
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Carrier object for Contact. Services for the Contact Carrier is available from the Contact Agent.
Show child attributes
Show child attributes
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Registered date in UTC.
Primary key
Description of the appointment.
The title of the appointment.
The agenda of the appointment.
Internal notes for the appointment.
date + start time planned
Date + end time planned
Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
ID of mother appointment; self if booking master, master ID if booking slave, 0 if normal appointment. However, if 0 and assoc_id != reg_id then this is an assigned appointment, indicated vt type = kBooking
Carrier object for Priority. Services for the Priority Carrier is available from the List Agent.
Show child attributes
Show child attributes
The confidentiality of appointments is shown as different types of “private” on the appointment. For an updated list of “private” types, see the database manual.
Public, PrivateUser, PrivateGroup Carrier object for Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
The different types of appointment, if the appointment is supposed to be shown in the diary or checklist, or if it's a document. See the different types of appointments in the database manual.
Unknown, inDiary, inChecklist, Note, Document, SavedReport, BookingForDiary, BookingForChecklist, MergeDraft, MergeFinal Updated date in UTC.
Appointment Completed state. This property is the part of the Status property that is the completed state. Could be three state if the three state user preference is set.
Unknown, NotStarted, Started, Completed Number of active links to sale, document, appointment.
List of all elements linked to the appointment.
Show child attributes
Show child attributes
Alarm lead time.
Does this appointment have an alarm
Appointment colour, used only in Japanese versions. Western versions take colour from Task
True if free, false if busy
True if all day event
as leadtime, but after the end - time blocked for travel etc.
Time blocked (minutes) BEFORE starttime
Location for appointment, defaulted from invited resource of type place and other rules, but you can write anything you want here
How many invitees have rejected this appointment
Why was this booking or assignment rejected, the RejectReason list is a source of suggestions but you can write anything here Use MDO List name "rejectReason" to get list items.
Class representing the recurrence of an appointment booking
Show child attributes
Show child attributes
List of id's of the participants to this appointment.
Show child attributes
Show child attributes
Status if this appointment is in the process of being assigned to someone else
Unknown, None, Assigning, Seen, Declined Status if this appointment represents an invitation
Unknown, None, Accepted, Hidden, Invitation, Moved, Seen, MovedSeen, Declined, Cancelled The type of booking the appointment represents
Unknown, None, Owner, Participant The date to be used for searching & showing
Does the appointment overlap with another appointment in the user's diary?
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Carrier object for Associate. Services for the Associate Carrier is available from the Associate Agent.
Show child attributes
Show child attributes
Carrier object for TaskListItem. Services for the TaskListItem Carrier is available from the Appointment Agent.
Show child attributes
Show child attributes
Appointments preferred timezone location.
Show child attributes
Show child attributes
Carrier object for Sale. Services for the Sale Carrier is available from the Sale Agent.
Show child attributes
Show child attributes
Suggested guide item that this appointment is an instance of (Note: NOT VALID for document-type appointments, they have their own link)
Is this appointment a milestone?
Status field to indicate appointments that have some sort of problem
OK, NotInSync, NotNotifiedByEmail, RecurrencePatternNotSupported, IncomingRecurrenceChangeNotSupported, ExternalParticipantsDateTimeMismatch Set if an external system owns this appointment.
None, Other, Outlook, Google Blank when not a video meeting. Filled with Join Meeting URL when created.
GUID for video meeting in central services – this is set when we create meetings from SuperOffice. It is blank for incoming meetings created from inbox.
Deprecated: Use {SuperOffice.CRM.Services.AppointmentEntity.CustomFields} instead. Dictionary of user defined field data. The key string is the ProgId of the UdefField, or if the ProgId is empty it is a string of the format "SuperOffice:[UdefFieldIdentity]", e.g. "SuperOffice:1234"
Show child attributes
Show child attributes
Deprecated: Use {SuperOffice.CRM.Services.AppointmentEntity.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.AppointmentEntity.ExtraFields} and UserDefinedFields properties are deprecated in favor of this combined collection.
Show child attributes
Show child attributes
Publish event date
Publication valid to (inclusive)
Publication valid from (inclusive)
Publication is published
The set of users or groups the record is visible for
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