using RestSharp;
var options = new RestClientOptions("http://localhost:54464/api/v1/Sale/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"Appointment\": {\n \"AppointmentId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"EndDate\": \"2023-11-07T05:31:56Z\",\n \"Task\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"ContactName\": \"<string>\",\n \"Description\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"PersonId\": 123,\n \"ContactId\": 123,\n \"ProjectId\": 123,\n \"ProjectName\": \"<string>\",\n \"IsPublished\": true,\n \"AssociateId\": 123,\n \"ColorIndex\": 123,\n \"IsFree\": true,\n \"HasAlarm\": true,\n \"IsAlldayEvent\": true,\n \"PriorityId\": 123,\n \"PriorityName\": \"<string>\",\n \"IsBookingMain\": true,\n \"IsRecurrence\": true,\n \"IsBooking\": true,\n \"ActiveDate\": \"2023-11-07T05:31:56Z\",\n \"RecurringStartDate\": \"2023-11-07T05:31:56Z\",\n \"RecurringEndDate\": \"2023-11-07T05:31:56Z\",\n \"MotherId\": 123,\n \"AssignedBy\": 123,\n \"AssignedByFullName\": \"<string>\",\n \"RejectReason\": \"<string>\",\n \"Location\": \"<string>\",\n \"AlarmLeadTime\": \"<string>\",\n \"SaleId\": 123,\n \"SaleName\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"CreatedDate\": \"2023-11-07T05:31:56Z\",\n \"CreatedBy\": \"<string>\",\n \"CreatedByFullName\": \"<string>\",\n \"CreatedByAssociateId\": 123,\n \"MotherAssociateId\": 123,\n \"JoinVideomeetUrl\": \"<string>\",\n \"PreferredTZLocation\": 123,\n \"Title\": \"<string>\",\n \"Agenda\": \"<string>\",\n \"InternalNotes\": \"<string>\",\n \"TaskId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\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 \"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 \"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 \"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 \"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 \"SaleText\": \"<string>\",\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 \"Currency\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Competitor\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Credited\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Rating\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Reason\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Source\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Saledate\": \"2023-11-07T05:31:56Z\",\n \"Amount\": 123,\n \"SaleId\": 123,\n \"Earning\": 123,\n \"EarningPercent\": 123,\n \"Heading\": \"<string>\",\n \"Number\": \"<string>\",\n \"Probability\": 123,\n \"CreatedDate\": \"2023-11-07T05:31:56Z\",\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 \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Postit\": \"<string>\",\n \"SaleType\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ReasonSold\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ReasonStalled\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ReopenDate\": \"2023-11-07T05:31:56Z\",\n \"SaleStakeholders\": [\n {\n \"StakeholderRoleName\": \"<string>\",\n \"Comment\": \"<string>\",\n \"StakeholderRoleId\": 123,\n \"CountryId\": 123,\n \"PersonId\": 123,\n \"EmailDescription\": \"<string>\",\n \"EmailId\": 123,\n \"EmailAddress\": \"<string>\",\n \"PhoneId\": 123,\n \"ContactName\": \"<string>\",\n \"ContactId\": 123,\n \"SaleId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"SaleStakeholderId\": 123,\n \"Rank\": 123,\n \"Phone\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"ActiveErpLinks\": 123,\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}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Appointment: {
AppointmentId: 123,
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
Task: '<string>',
AssociateFullName: '<string>',
ContactName: '<string>',
Description: '<string>',
PersonFullName: '<string>',
PersonId: 123,
ContactId: 123,
ProjectId: 123,
ProjectName: '<string>',
IsPublished: true,
AssociateId: 123,
ColorIndex: 123,
IsFree: true,
HasAlarm: true,
IsAlldayEvent: true,
PriorityId: 123,
PriorityName: '<string>',
IsBookingMain: true,
IsRecurrence: true,
IsBooking: true,
ActiveDate: '2023-11-07T05:31:56Z',
RecurringStartDate: '2023-11-07T05:31:56Z',
RecurringEndDate: '2023-11-07T05:31:56Z',
MotherId: 123,
AssignedBy: 123,
AssignedByFullName: '<string>',
RejectReason: '<string>',
Location: '<string>',
AlarmLeadTime: '<string>',
SaleId: 123,
SaleName: '<string>',
AssociateName: '<string>',
CreatedDate: '2023-11-07T05:31:56Z',
CreatedBy: '<string>',
CreatedByFullName: '<string>',
CreatedByAssociateId: 123,
MotherAssociateId: 123,
JoinVideomeetUrl: '<string>',
PreferredTZLocation: 123,
Title: '<string>',
Agenda: '<string>',
InternalNotes: '<string>',
TaskId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
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: {}
},
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: {}
},
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: {}
},
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: {}
},
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: {}
},
SaleText: '<string>',
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: {}
},
Currency: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Competitor: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Credited: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Rating: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Reason: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Source: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Saledate: '2023-11-07T05:31:56Z',
Amount: 123,
SaleId: 123,
Earning: 123,
EarningPercent: 123,
Heading: '<string>',
Number: '<string>',
Probability: 123,
CreatedDate: '2023-11-07T05:31:56Z',
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: {}
}
],
NextDueDate: '2023-11-07T05:31:56Z',
Postit: '<string>',
SaleType: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ReasonSold: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ReasonStalled: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ReopenDate: '2023-11-07T05:31:56Z',
SaleStakeholders: [
{
StakeholderRoleName: '<string>',
Comment: '<string>',
StakeholderRoleId: 123,
CountryId: 123,
PersonId: 123,
EmailDescription: '<string>',
EmailId: 123,
EmailAddress: '<string>',
PhoneId: 123,
ContactName: '<string>',
ContactId: 123,
SaleId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
MiddleName: '<string>',
Lastname: '<string>',
SaleStakeholderId: 123,
Rank: 123,
Phone: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
ActiveErpLinks: 123,
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: {}
})
};
fetch('http://localhost:54464/api/v1/Sale/{id}', 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 => "54464",
CURLOPT_URL => "http://localhost:54464/api/v1/Sale/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'Appointment' => [
'AppointmentId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'EndDate' => '2023-11-07T05:31:56Z',
'Task' => '<string>',
'AssociateFullName' => '<string>',
'ContactName' => '<string>',
'Description' => '<string>',
'PersonFullName' => '<string>',
'PersonId' => 123,
'ContactId' => 123,
'ProjectId' => 123,
'ProjectName' => '<string>',
'IsPublished' => true,
'AssociateId' => 123,
'ColorIndex' => 123,
'IsFree' => true,
'HasAlarm' => true,
'IsAlldayEvent' => true,
'PriorityId' => 123,
'PriorityName' => '<string>',
'IsBookingMain' => true,
'IsRecurrence' => true,
'IsBooking' => true,
'ActiveDate' => '2023-11-07T05:31:56Z',
'RecurringStartDate' => '2023-11-07T05:31:56Z',
'RecurringEndDate' => '2023-11-07T05:31:56Z',
'MotherId' => 123,
'AssignedBy' => 123,
'AssignedByFullName' => '<string>',
'RejectReason' => '<string>',
'Location' => '<string>',
'AlarmLeadTime' => '<string>',
'SaleId' => 123,
'SaleName' => '<string>',
'AssociateName' => '<string>',
'CreatedDate' => '2023-11-07T05:31:56Z',
'CreatedBy' => '<string>',
'CreatedByFullName' => '<string>',
'CreatedByAssociateId' => 123,
'MotherAssociateId' => 123,
'JoinVideomeetUrl' => '<string>',
'PreferredTZLocation' => 123,
'Title' => '<string>',
'Agenda' => '<string>',
'InternalNotes' => '<string>',
'TaskId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'SaleText' => '<string>',
'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' => [
]
],
'Currency' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Competitor' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Credited' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Rating' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Reason' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Source' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Saledate' => '2023-11-07T05:31:56Z',
'Amount' => 123,
'SaleId' => 123,
'Earning' => 123,
'EarningPercent' => 123,
'Heading' => '<string>',
'Number' => '<string>',
'Probability' => 123,
'CreatedDate' => '2023-11-07T05:31:56Z',
'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' => [
]
]
],
'NextDueDate' => '2023-11-07T05:31:56Z',
'Postit' => '<string>',
'SaleType' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ReasonSold' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ReasonStalled' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ReopenDate' => '2023-11-07T05:31:56Z',
'SaleStakeholders' => [
[
'StakeholderRoleName' => '<string>',
'Comment' => '<string>',
'StakeholderRoleId' => 123,
'CountryId' => 123,
'PersonId' => 123,
'EmailDescription' => '<string>',
'EmailId' => 123,
'EmailAddress' => '<string>',
'PhoneId' => 123,
'ContactName' => '<string>',
'ContactId' => 123,
'SaleId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'MiddleName' => '<string>',
'Lastname' => '<string>',
'SaleStakeholderId' => 123,
'Rank' => 123,
'Phone' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'ActiveErpLinks' => 123,
'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' => [
]
]),
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:54464/api/v1/Sale/{id}"
payload = {
"Appointment": {
"AppointmentId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"Task": "<string>",
"AssociateFullName": "<string>",
"ContactName": "<string>",
"Description": "<string>",
"PersonFullName": "<string>",
"PersonId": 123,
"ContactId": 123,
"ProjectId": 123,
"ProjectName": "<string>",
"IsPublished": True,
"AssociateId": 123,
"ColorIndex": 123,
"IsFree": True,
"HasAlarm": True,
"IsAlldayEvent": True,
"PriorityId": 123,
"PriorityName": "<string>",
"IsBookingMain": True,
"IsRecurrence": True,
"IsBooking": True,
"ActiveDate": "2023-11-07T05:31:56Z",
"RecurringStartDate": "2023-11-07T05:31:56Z",
"RecurringEndDate": "2023-11-07T05:31:56Z",
"MotherId": 123,
"AssignedBy": 123,
"AssignedByFullName": "<string>",
"RejectReason": "<string>",
"Location": "<string>",
"AlarmLeadTime": "<string>",
"SaleId": 123,
"SaleName": "<string>",
"AssociateName": "<string>",
"CreatedDate": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"CreatedByFullName": "<string>",
"CreatedByAssociateId": 123,
"MotherAssociateId": 123,
"JoinVideomeetUrl": "<string>",
"PreferredTZLocation": 123,
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"TaskId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"SaleText": "<string>",
"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": {}
},
"Currency": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Competitor": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Credited": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Rating": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Reason": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Source": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Saledate": "2023-11-07T05:31:56Z",
"Amount": 123,
"SaleId": 123,
"Earning": 123,
"EarningPercent": 123,
"Heading": "<string>",
"Number": "<string>",
"Probability": 123,
"CreatedDate": "2023-11-07T05:31:56Z",
"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": {}
}
],
"NextDueDate": "2023-11-07T05:31:56Z",
"Postit": "<string>",
"SaleType": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonSold": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonStalled": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReopenDate": "2023-11-07T05:31:56Z",
"SaleStakeholders": [
{
"StakeholderRoleName": "<string>",
"Comment": "<string>",
"StakeholderRoleId": 123,
"CountryId": 123,
"PersonId": 123,
"EmailDescription": "<string>",
"EmailId": 123,
"EmailAddress": "<string>",
"PhoneId": 123,
"ContactName": "<string>",
"ContactId": 123,
"SaleId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"MiddleName": "<string>",
"Lastname": "<string>",
"SaleStakeholderId": 123,
"Rank": 123,
"Phone": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"ActiveErpLinks": 123,
"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": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"Appointment": {
"AppointmentId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"Type": "Unknown",
"Task": "<string>",
"AssociateFullName": "<string>",
"ContactName": "<string>",
"Description": "<string>",
"PersonFullName": "<string>",
"PersonId": 123,
"ContactId": 123,
"ProjectId": 123,
"ProjectName": "<string>",
"IsPublished": true,
"AssociateId": 123,
"ColorIndex": 123,
"IsFree": true,
"HasAlarm": true,
"IsAlldayEvent": true,
"Private": "Public",
"PriorityId": 123,
"PriorityName": "<string>",
"TaskType": "Unknown",
"IsBookingMain": true,
"IsRecurrence": true,
"IsBooking": true,
"ActiveDate": "2023-11-07T05:31:56Z",
"AssignmentStatus": "Unknown",
"InvitationStatus": "Unknown",
"BookingType": "Unknown",
"Completed": "Unknown",
"RecurringPattern": "Unknown",
"RecurringStartDate": "2023-11-07T05:31:56Z",
"RecurringEndDate": "2023-11-07T05:31:56Z",
"MotherId": 123,
"AssignedBy": 123,
"AssignedByFullName": "<string>",
"RejectReason": "<string>",
"Location": "<string>",
"AlarmLeadTime": "<string>",
"SaleId": 123,
"SaleName": "<string>",
"AssociateName": "<string>",
"CreatedDate": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"CreatedByFullName": "<string>",
"CreatedByAssociateId": 123,
"CautionWarning": "OK",
"OwnedExternally": "None",
"MotherAssociateId": 123,
"JoinVideomeetUrl": "<string>",
"PreferredTZLocation": 123,
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"TaskId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"SaleText": "<string>",
"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": {}
},
"Currency": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Competitor": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Credited": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Rating": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Reason": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Source": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Status": "Unknown",
"Saledate": "2023-11-07T05:31:56Z",
"Amount": 123,
"SaleId": 123,
"Earning": 123,
"EarningPercent": 123,
"Heading": "<string>",
"Number": "<string>",
"Probability": 123,
"CreatedDate": "2023-11-07T05:31:56Z",
"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": {}
}
],
"NextDueDate": "2023-11-07T05:31:56Z",
"Postit": "<string>",
"SaleType": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonSold": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonStalled": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReopenDate": "2023-11-07T05:31:56Z",
"SaleStakeholders": [
{
"StakeholderRoleName": "<string>",
"Comment": "<string>",
"StakeholderRoleId": 123,
"CountryId": 123,
"PersonId": 123,
"EmailDescription": "<string>",
"EmailId": 123,
"EmailAddress": "<string>",
"PhoneId": 123,
"ContactName": "<string>",
"ContactId": 123,
"SaleId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"MiddleName": "<string>",
"Lastname": "<string>",
"SaleStakeholderId": 123,
"Rank": 123,
"Phone": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"ActiveErpLinks": 123,
"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": {},
"_Links": {}
}Put Sale Entity
Updates the existing SaleEntity
NsApiSlow threshold: 2000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:54464/api/v1/Sale/{id}");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"Appointment\": {\n \"AppointmentId\": 123,\n \"StartDate\": \"2023-11-07T05:31:56Z\",\n \"EndDate\": \"2023-11-07T05:31:56Z\",\n \"Task\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"ContactName\": \"<string>\",\n \"Description\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"PersonId\": 123,\n \"ContactId\": 123,\n \"ProjectId\": 123,\n \"ProjectName\": \"<string>\",\n \"IsPublished\": true,\n \"AssociateId\": 123,\n \"ColorIndex\": 123,\n \"IsFree\": true,\n \"HasAlarm\": true,\n \"IsAlldayEvent\": true,\n \"PriorityId\": 123,\n \"PriorityName\": \"<string>\",\n \"IsBookingMain\": true,\n \"IsRecurrence\": true,\n \"IsBooking\": true,\n \"ActiveDate\": \"2023-11-07T05:31:56Z\",\n \"RecurringStartDate\": \"2023-11-07T05:31:56Z\",\n \"RecurringEndDate\": \"2023-11-07T05:31:56Z\",\n \"MotherId\": 123,\n \"AssignedBy\": 123,\n \"AssignedByFullName\": \"<string>\",\n \"RejectReason\": \"<string>\",\n \"Location\": \"<string>\",\n \"AlarmLeadTime\": \"<string>\",\n \"SaleId\": 123,\n \"SaleName\": \"<string>\",\n \"AssociateName\": \"<string>\",\n \"CreatedDate\": \"2023-11-07T05:31:56Z\",\n \"CreatedBy\": \"<string>\",\n \"CreatedByFullName\": \"<string>\",\n \"CreatedByAssociateId\": 123,\n \"MotherAssociateId\": 123,\n \"JoinVideomeetUrl\": \"<string>\",\n \"PreferredTZLocation\": 123,\n \"Title\": \"<string>\",\n \"Agenda\": \"<string>\",\n \"InternalNotes\": \"<string>\",\n \"TaskId\": 123,\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\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 \"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 \"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 \"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 \"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 \"SaleText\": \"<string>\",\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 \"Currency\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Competitor\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Credited\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Rating\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Reason\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Source\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"Saledate\": \"2023-11-07T05:31:56Z\",\n \"Amount\": 123,\n \"SaleId\": 123,\n \"Earning\": 123,\n \"EarningPercent\": 123,\n \"Heading\": \"<string>\",\n \"Number\": \"<string>\",\n \"Probability\": 123,\n \"CreatedDate\": \"2023-11-07T05:31:56Z\",\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 \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Postit\": \"<string>\",\n \"SaleType\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ReasonSold\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ReasonStalled\": {\n \"Id\": 123,\n \"Value\": \"<string>\",\n \"Tooltip\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ReopenDate\": \"2023-11-07T05:31:56Z\",\n \"SaleStakeholders\": [\n {\n \"StakeholderRoleName\": \"<string>\",\n \"Comment\": \"<string>\",\n \"StakeholderRoleId\": 123,\n \"CountryId\": 123,\n \"PersonId\": 123,\n \"EmailDescription\": \"<string>\",\n \"EmailId\": 123,\n \"EmailAddress\": \"<string>\",\n \"PhoneId\": 123,\n \"ContactName\": \"<string>\",\n \"ContactId\": 123,\n \"SaleId\": 123,\n \"Mrmrs\": \"<string>\",\n \"Firstname\": \"<string>\",\n \"MiddleName\": \"<string>\",\n \"Lastname\": \"<string>\",\n \"SaleStakeholderId\": 123,\n \"Rank\": 123,\n \"Phone\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n }\n ],\n \"ActiveErpLinks\": 123,\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}", false);
var response = await client.PutAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
Appointment: {
AppointmentId: 123,
StartDate: '2023-11-07T05:31:56Z',
EndDate: '2023-11-07T05:31:56Z',
Task: '<string>',
AssociateFullName: '<string>',
ContactName: '<string>',
Description: '<string>',
PersonFullName: '<string>',
PersonId: 123,
ContactId: 123,
ProjectId: 123,
ProjectName: '<string>',
IsPublished: true,
AssociateId: 123,
ColorIndex: 123,
IsFree: true,
HasAlarm: true,
IsAlldayEvent: true,
PriorityId: 123,
PriorityName: '<string>',
IsBookingMain: true,
IsRecurrence: true,
IsBooking: true,
ActiveDate: '2023-11-07T05:31:56Z',
RecurringStartDate: '2023-11-07T05:31:56Z',
RecurringEndDate: '2023-11-07T05:31:56Z',
MotherId: 123,
AssignedBy: 123,
AssignedByFullName: '<string>',
RejectReason: '<string>',
Location: '<string>',
AlarmLeadTime: '<string>',
SaleId: 123,
SaleName: '<string>',
AssociateName: '<string>',
CreatedDate: '2023-11-07T05:31:56Z',
CreatedBy: '<string>',
CreatedByFullName: '<string>',
CreatedByAssociateId: 123,
MotherAssociateId: 123,
JoinVideomeetUrl: '<string>',
PreferredTZLocation: 123,
Title: '<string>',
Agenda: '<string>',
InternalNotes: '<string>',
TaskId: 123,
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
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: {}
},
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: {}
},
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: {}
},
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: {}
},
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: {}
},
SaleText: '<string>',
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: {}
},
Currency: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Competitor: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Credited: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Rating: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Reason: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Source: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
Saledate: '2023-11-07T05:31:56Z',
Amount: 123,
SaleId: 123,
Earning: 123,
EarningPercent: 123,
Heading: '<string>',
Number: '<string>',
Probability: 123,
CreatedDate: '2023-11-07T05:31:56Z',
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: {}
}
],
NextDueDate: '2023-11-07T05:31:56Z',
Postit: '<string>',
SaleType: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ReasonSold: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ReasonStalled: {
Id: 123,
Value: '<string>',
Tooltip: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ReopenDate: '2023-11-07T05:31:56Z',
SaleStakeholders: [
{
StakeholderRoleName: '<string>',
Comment: '<string>',
StakeholderRoleId: 123,
CountryId: 123,
PersonId: 123,
EmailDescription: '<string>',
EmailId: 123,
EmailAddress: '<string>',
PhoneId: 123,
ContactName: '<string>',
ContactId: 123,
SaleId: 123,
Mrmrs: '<string>',
Firstname: '<string>',
MiddleName: '<string>',
Lastname: '<string>',
SaleStakeholderId: 123,
Rank: 123,
Phone: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
}
],
ActiveErpLinks: 123,
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: {}
})
};
fetch('http://localhost:54464/api/v1/Sale/{id}', 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 => "54464",
CURLOPT_URL => "http://localhost:54464/api/v1/Sale/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'Appointment' => [
'AppointmentId' => 123,
'StartDate' => '2023-11-07T05:31:56Z',
'EndDate' => '2023-11-07T05:31:56Z',
'Task' => '<string>',
'AssociateFullName' => '<string>',
'ContactName' => '<string>',
'Description' => '<string>',
'PersonFullName' => '<string>',
'PersonId' => 123,
'ContactId' => 123,
'ProjectId' => 123,
'ProjectName' => '<string>',
'IsPublished' => true,
'AssociateId' => 123,
'ColorIndex' => 123,
'IsFree' => true,
'HasAlarm' => true,
'IsAlldayEvent' => true,
'PriorityId' => 123,
'PriorityName' => '<string>',
'IsBookingMain' => true,
'IsRecurrence' => true,
'IsBooking' => true,
'ActiveDate' => '2023-11-07T05:31:56Z',
'RecurringStartDate' => '2023-11-07T05:31:56Z',
'RecurringEndDate' => '2023-11-07T05:31:56Z',
'MotherId' => 123,
'AssignedBy' => 123,
'AssignedByFullName' => '<string>',
'RejectReason' => '<string>',
'Location' => '<string>',
'AlarmLeadTime' => '<string>',
'SaleId' => 123,
'SaleName' => '<string>',
'AssociateName' => '<string>',
'CreatedDate' => '2023-11-07T05:31:56Z',
'CreatedBy' => '<string>',
'CreatedByFullName' => '<string>',
'CreatedByAssociateId' => 123,
'MotherAssociateId' => 123,
'JoinVideomeetUrl' => '<string>',
'PreferredTZLocation' => 123,
'Title' => '<string>',
'Agenda' => '<string>',
'InternalNotes' => '<string>',
'TaskId' => 123,
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'SaleText' => '<string>',
'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' => [
]
],
'Currency' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Competitor' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Credited' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Rating' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Reason' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Source' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'Saledate' => '2023-11-07T05:31:56Z',
'Amount' => 123,
'SaleId' => 123,
'Earning' => 123,
'EarningPercent' => 123,
'Heading' => '<string>',
'Number' => '<string>',
'Probability' => 123,
'CreatedDate' => '2023-11-07T05:31:56Z',
'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' => [
]
]
],
'NextDueDate' => '2023-11-07T05:31:56Z',
'Postit' => '<string>',
'SaleType' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ReasonSold' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ReasonStalled' => [
'Id' => 123,
'Value' => '<string>',
'Tooltip' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ReopenDate' => '2023-11-07T05:31:56Z',
'SaleStakeholders' => [
[
'StakeholderRoleName' => '<string>',
'Comment' => '<string>',
'StakeholderRoleId' => 123,
'CountryId' => 123,
'PersonId' => 123,
'EmailDescription' => '<string>',
'EmailId' => 123,
'EmailAddress' => '<string>',
'PhoneId' => 123,
'ContactName' => '<string>',
'ContactId' => 123,
'SaleId' => 123,
'Mrmrs' => '<string>',
'Firstname' => '<string>',
'MiddleName' => '<string>',
'Lastname' => '<string>',
'SaleStakeholderId' => 123,
'Rank' => 123,
'Phone' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
]
],
'ActiveErpLinks' => 123,
'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' => [
]
]),
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:54464/api/v1/Sale/{id}"
payload = {
"Appointment": {
"AppointmentId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"Task": "<string>",
"AssociateFullName": "<string>",
"ContactName": "<string>",
"Description": "<string>",
"PersonFullName": "<string>",
"PersonId": 123,
"ContactId": 123,
"ProjectId": 123,
"ProjectName": "<string>",
"IsPublished": True,
"AssociateId": 123,
"ColorIndex": 123,
"IsFree": True,
"HasAlarm": True,
"IsAlldayEvent": True,
"PriorityId": 123,
"PriorityName": "<string>",
"IsBookingMain": True,
"IsRecurrence": True,
"IsBooking": True,
"ActiveDate": "2023-11-07T05:31:56Z",
"RecurringStartDate": "2023-11-07T05:31:56Z",
"RecurringEndDate": "2023-11-07T05:31:56Z",
"MotherId": 123,
"AssignedBy": 123,
"AssignedByFullName": "<string>",
"RejectReason": "<string>",
"Location": "<string>",
"AlarmLeadTime": "<string>",
"SaleId": 123,
"SaleName": "<string>",
"AssociateName": "<string>",
"CreatedDate": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"CreatedByFullName": "<string>",
"CreatedByAssociateId": 123,
"MotherAssociateId": 123,
"JoinVideomeetUrl": "<string>",
"PreferredTZLocation": 123,
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"TaskId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"SaleText": "<string>",
"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": {}
},
"Currency": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Competitor": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Credited": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Rating": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Reason": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Source": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Saledate": "2023-11-07T05:31:56Z",
"Amount": 123,
"SaleId": 123,
"Earning": 123,
"EarningPercent": 123,
"Heading": "<string>",
"Number": "<string>",
"Probability": 123,
"CreatedDate": "2023-11-07T05:31:56Z",
"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": {}
}
],
"NextDueDate": "2023-11-07T05:31:56Z",
"Postit": "<string>",
"SaleType": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonSold": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonStalled": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReopenDate": "2023-11-07T05:31:56Z",
"SaleStakeholders": [
{
"StakeholderRoleName": "<string>",
"Comment": "<string>",
"StakeholderRoleId": 123,
"CountryId": 123,
"PersonId": 123,
"EmailDescription": "<string>",
"EmailId": 123,
"EmailAddress": "<string>",
"PhoneId": 123,
"ContactName": "<string>",
"ContactId": 123,
"SaleId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"MiddleName": "<string>",
"Lastname": "<string>",
"SaleStakeholderId": 123,
"Rank": 123,
"Phone": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"ActiveErpLinks": 123,
"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": {}
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"Appointment": {
"AppointmentId": 123,
"StartDate": "2023-11-07T05:31:56Z",
"EndDate": "2023-11-07T05:31:56Z",
"Type": "Unknown",
"Task": "<string>",
"AssociateFullName": "<string>",
"ContactName": "<string>",
"Description": "<string>",
"PersonFullName": "<string>",
"PersonId": 123,
"ContactId": 123,
"ProjectId": 123,
"ProjectName": "<string>",
"IsPublished": true,
"AssociateId": 123,
"ColorIndex": 123,
"IsFree": true,
"HasAlarm": true,
"IsAlldayEvent": true,
"Private": "Public",
"PriorityId": 123,
"PriorityName": "<string>",
"TaskType": "Unknown",
"IsBookingMain": true,
"IsRecurrence": true,
"IsBooking": true,
"ActiveDate": "2023-11-07T05:31:56Z",
"AssignmentStatus": "Unknown",
"InvitationStatus": "Unknown",
"BookingType": "Unknown",
"Completed": "Unknown",
"RecurringPattern": "Unknown",
"RecurringStartDate": "2023-11-07T05:31:56Z",
"RecurringEndDate": "2023-11-07T05:31:56Z",
"MotherId": 123,
"AssignedBy": 123,
"AssignedByFullName": "<string>",
"RejectReason": "<string>",
"Location": "<string>",
"AlarmLeadTime": "<string>",
"SaleId": 123,
"SaleName": "<string>",
"AssociateName": "<string>",
"CreatedDate": "2023-11-07T05:31:56Z",
"CreatedBy": "<string>",
"CreatedByFullName": "<string>",
"CreatedByAssociateId": 123,
"CautionWarning": "OK",
"OwnedExternally": "None",
"MotherAssociateId": 123,
"JoinVideomeetUrl": "<string>",
"PreferredTZLocation": 123,
"Title": "<string>",
"Agenda": "<string>",
"InternalNotes": "<string>",
"TaskId": 123,
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"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": {}
},
"SaleText": "<string>",
"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": {}
},
"Currency": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Competitor": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Credited": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Rating": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Reason": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Source": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"Status": "Unknown",
"Saledate": "2023-11-07T05:31:56Z",
"Amount": 123,
"SaleId": 123,
"Earning": 123,
"EarningPercent": 123,
"Heading": "<string>",
"Number": "<string>",
"Probability": 123,
"CreatedDate": "2023-11-07T05:31:56Z",
"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": {}
}
],
"NextDueDate": "2023-11-07T05:31:56Z",
"Postit": "<string>",
"SaleType": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonSold": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReasonStalled": {
"Id": 123,
"Value": "<string>",
"Tooltip": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ReopenDate": "2023-11-07T05:31:56Z",
"SaleStakeholders": [
{
"StakeholderRoleName": "<string>",
"Comment": "<string>",
"StakeholderRoleId": 123,
"CountryId": 123,
"PersonId": 123,
"EmailDescription": "<string>",
"EmailId": 123,
"EmailAddress": "<string>",
"PhoneId": 123,
"ContactName": "<string>",
"ContactId": 123,
"SaleId": 123,
"Mrmrs": "<string>",
"Firstname": "<string>",
"MiddleName": "<string>",
"Lastname": "<string>",
"SaleStakeholderId": 123,
"Rank": 123,
"Phone": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
}
],
"ActiveErpLinks": 123,
"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": {},
"_Links": {}
}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.
Path Parameters
The SaleEntity id to update.
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
The SaleEntity to be saved.
Partial SaleEntity class associating the generated SaleEntity with an interface.
Simple read-only appointment data. Carrier object for Appointment. Services for the Appointment Carrier is available from the Appointment 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
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 Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
Text describing the sale
Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
Carrier object for Currency. Services for the Currency Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for Competitor. Services for the Competitor Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for Credited. Services for the Credited Carrier is available from the List Agent.
Show child attributes
Show child attributes
Sale Stage with probability percent. Carrier object for Rating. Services for the Rating Carrier is available from the List Agent.
Show child attributes
Show child attributes
Reason for a lost sale Carrier object for Reason. Services for the Reason Carrier is available from the List Agent.
Show child attributes
Show child attributes
Source of a sale Carrier object for Source. Services for the Source Carrier is available from the List Agent.
Show child attributes
Show child attributes
The state of the Sale: Open / Sold / Lost / Stalled
Unknown, Open, Sold, Lost, Stalled, SaintAll (expected / lost / won) sales date
Total sale amount
Primary key
Earning on sale
Earning as percent of total
Sale heading (short description?)
Alphanumeric user field
Actual probability, may differ from the one in the list
Registered date in UTC.
Last updated in UTC.
The Sale completed state. The completed state is either Started or Completed. NotStarted is treated as Started. The value maps to the Done database field.
Unknown, NotStarted, Started, Completed Number of active links to sale, document, appointment.
List of all elements linked to the sale.
Show child attributes
Show child attributes
Next due date, this is a denormalization of 'closest future activity date, or most recent if no future activities'. Maintained by the system, but very convenient for searching.
The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases
Carrier object for SaleType. Services for the SaleType Carrier is available from the List Agent.
Show child attributes
Show child attributes
Reason for a succesfully sold sale Carrier object for ReasonSold. Services for the ReasonSold Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for ReasonStalled. Services for the ReasonStalled Carrier is available from the List Agent.
Show child attributes
Show child attributes
Date the sale is to be reopened; valid only for status=stalled. Not necessarily the same as the nextDueDate.
Show child attributes
Show child attributes
The number of active erp links
Deprecated: Use {SuperOffice.CRM.Services.SaleEntity.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.SaleEntity.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.SaleEntity.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
Response
SaleEntity updated.
The Sale Entity contains the sale amount, currency, and sale members. Sales are linked to contacts, persons, and/or projects. SaleEntity entity with API _Links added.
Simple read-only appointment data. Carrier object for Appointment. Services for the Appointment Carrier is available from the Appointment 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
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 Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
Text describing the sale
Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
Carrier object for Currency. Services for the Currency Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for Competitor. Services for the Competitor Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for Credited. Services for the Credited Carrier is available from the List Agent.
Show child attributes
Show child attributes
Sale Stage with probability percent. Carrier object for Rating. Services for the Rating Carrier is available from the List Agent.
Show child attributes
Show child attributes
Reason for a lost sale Carrier object for Reason. Services for the Reason Carrier is available from the List Agent.
Show child attributes
Show child attributes
Source of a sale Carrier object for Source. Services for the Source Carrier is available from the List Agent.
Show child attributes
Show child attributes
The state of the Sale: Open / Sold / Lost / Stalled
Unknown, Open, Sold, Lost, Stalled, SaintAll (expected / lost / won) sales date
Total sale amount
Primary key
Earning on sale
Earning as percent of total
Sale heading (short description?)
Alphanumeric user field
Actual probability, may differ from the one in the list
Registered date in UTC.
Last updated in UTC.
The Sale completed state. The completed state is either Started or Completed. NotStarted is treated as Started. The value maps to the Done database field.
Unknown, NotStarted, Started, Completed Number of active links to sale, document, appointment.
List of all elements linked to the sale.
Show child attributes
Show child attributes
Next due date, this is a denormalization of 'closest future activity date, or most recent if no future activities'. Maintained by the system, but very convenient for searching.
The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases
Carrier object for SaleType. Services for the SaleType Carrier is available from the List Agent.
Show child attributes
Show child attributes
Reason for a succesfully sold sale Carrier object for ReasonSold. Services for the ReasonSold Carrier is available from the List Agent.
Show child attributes
Show child attributes
Carrier object for ReasonStalled. Services for the ReasonStalled Carrier is available from the List Agent.
Show child attributes
Show child attributes
Date the sale is to be reopened; valid only for status=stalled. Not necessarily the same as the nextDueDate.
Show child attributes
Show child attributes
The number of active erp links
Deprecated: Use {SuperOffice.CRM.Services.SaleEntity.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.SaleEntity.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.SaleEntity.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
Show child attributes
Show child attributes
Was this page helpful?