using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"NewsFeedItem\": {\n \"NewsFeedItemId\": 123,\n \"Title\": \"<string>\",\n \"Summary\": \"<string>\",\n \"Description\": {},\n \"Actions\": [\n {\n \"Identifier\": \"<string>\",\n \"Title\": \"<string>\"\n }\n ],\n \"ImageLink\": \"<string>\",\n \"SourceLink\": \"<string>\",\n \"PreviewHint\": \"<string>\",\n \"FromName\": \"<string>\",\n \"FromCategoryName\": \"<string>\",\n \"Registered\": \"2023-11-07T05:31:56Z\",\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"ExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"IsRead\": true,\n \"ReadAt\": \"2023-11-07T05:31:56Z\",\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 \"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 \"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 \"Sale\": {\n \"ContactName\": \"<string>\",\n \"SaleDate\": \"2023-11-07T05:31:56Z\",\n \"SaleId\": 123,\n \"Probability\": 123,\n \"Title\": \"<string>\",\n \"Amount\": 123,\n \"Currency\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"Description\": \"<string>\",\n \"WeightedAmount\": 123,\n \"ProjectId\": 123,\n \"EarningPercent\": 123,\n \"Earning\": 123,\n \"ContactId\": 123,\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"SaleTypeId\": 123,\n \"SaleTypeName\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Number\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ApplicationId\": \"<string>\",\n \"Location\": \"<string>\",\n \"RatingPercent\": 123\n },\n \"ToAssociateIds\": [\n 123\n ],\n \"ToGroupIds\": [\n 123\n ],\n \"ToAll\": true\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
NewsFeedItem: {
NewsFeedItemId: 123,
Title: '<string>',
Summary: '<string>',
Description: {},
Actions: [{Identifier: '<string>', Title: '<string>'}],
ImageLink: '<string>',
SourceLink: '<string>',
PreviewHint: '<string>',
FromName: '<string>',
FromCategoryName: '<string>',
Registered: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
ExpiresAt: '2023-11-07T05:31:56Z',
IsRead: true,
ReadAt: '2023-11-07T05:31:56Z',
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: {}
},
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: {}
},
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: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ApplicationId: '<string>',
Location: '<string>',
RatingPercent: 123
},
ToAssociateIds: [123],
ToGroupIds: [123],
ToAll: true
})
};
fetch('http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'NewsFeedItem' => [
'NewsFeedItemId' => 123,
'Title' => '<string>',
'Summary' => '<string>',
'Description' => [
],
'Actions' => [
[
'Identifier' => '<string>',
'Title' => '<string>'
]
],
'ImageLink' => '<string>',
'SourceLink' => '<string>',
'PreviewHint' => '<string>',
'FromName' => '<string>',
'FromCategoryName' => '<string>',
'Registered' => '2023-11-07T05:31:56Z',
'Updated' => '2023-11-07T05:31:56Z',
'ExpiresAt' => '2023-11-07T05:31:56Z',
'IsRead' => true,
'ReadAt' => '2023-11-07T05:31:56Z',
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'Sale' => [
'ContactName' => '<string>',
'SaleDate' => '2023-11-07T05:31:56Z',
'SaleId' => 123,
'Probability' => 123,
'Title' => '<string>',
'Amount' => 123,
'Currency' => '<string>',
'ProjectName' => '<string>',
'AssociateFullName' => '<string>',
'Description' => '<string>',
'WeightedAmount' => 123,
'ProjectId' => 123,
'EarningPercent' => 123,
'Earning' => 123,
'ContactId' => 123,
'AssociateId' => 123,
'PersonId' => 123,
'SaleTypeId' => 123,
'SaleTypeName' => '<string>',
'PersonFullName' => '<string>',
'ActiveErpLinks' => 123,
'NextDueDate' => '2023-11-07T05:31:56Z',
'Number' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ApplicationId' => '<string>',
'Location' => '<string>',
'RatingPercent' => 123
],
'ToAssociateIds' => [
123
],
'ToGroupIds' => [
123
],
'ToAll' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem"
payload = {
"NewsFeedItem": {
"NewsFeedItemId": 123,
"Title": "<string>",
"Summary": "<string>",
"Description": {},
"Actions": [
{
"Identifier": "<string>",
"Title": "<string>"
}
],
"ImageLink": "<string>",
"SourceLink": "<string>",
"PreviewHint": "<string>",
"FromName": "<string>",
"FromCategoryName": "<string>",
"Registered": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"ExpiresAt": "2023-11-07T05:31:56Z",
"IsRead": True,
"ReadAt": "2023-11-07T05:31:56Z",
"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": {}
},
"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": {}
},
"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": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ApplicationId": "<string>",
"Location": "<string>",
"RatingPercent": 123
},
"ToAssociateIds": [123],
"ToGroupIds": [123],
"ToAll": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
NewsFeedItem: {
NewsFeedItemId: 123,
Title: '<string>',
Summary: '<string>',
Description: {},
Actions: [{Identifier: '<string>', Title: '<string>'}],
ImageLink: '<string>',
SourceLink: '<string>',
PreviewHint: '<string>',
FromName: '<string>',
FromCategoryName: '<string>',
Registered: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
ExpiresAt: '2023-11-07T05:31:56Z',
IsRead: true,
ReadAt: '2023-11-07T05:31:56Z',
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: {}
},
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: {}
},
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: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ApplicationId: '<string>',
Location: '<string>',
RatingPercent: 123
},
ToAssociateIds: [123],
ToGroupIds: [123],
ToAll: true
})
};
fetch('http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"NewsFeedItemId": 123,
"Title": "<string>",
"Summary": "<string>",
"Description": {},
"Actions": [
{
"Identifier": "<string>",
"Title": "<string>",
"CtaType": "Unknown",
"CtaFlavor": "Normal"
}
],
"ImageLink": "<string>",
"SourceLink": "<string>",
"PreviewHint": "<string>",
"FromName": "<string>",
"FromCategoryName": "<string>",
"Priority": "NoPriority",
"Registered": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"ExpiresAt": "2023-11-07T05:31:56Z",
"Status": "Normal",
"IsRead": true,
"ReadAt": "2023-11-07T05:31:56Z",
"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": {}
},
"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": {}
},
"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": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"Status": "Unknown",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"Completed": "Unknown",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ApplicationId": "<string>",
"Location": "<string>",
"RatingPercent": 123
}Post News Feed Item
Saves a new item to the newsfeed, publishing it to the specified users.
NsApiSlow threshold: 2000 ms.
using RestSharp;
var options = new RestClientOptions("http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n \"NewsFeedItem\": {\n \"NewsFeedItemId\": 123,\n \"Title\": \"<string>\",\n \"Summary\": \"<string>\",\n \"Description\": {},\n \"Actions\": [\n {\n \"Identifier\": \"<string>\",\n \"Title\": \"<string>\"\n }\n ],\n \"ImageLink\": \"<string>\",\n \"SourceLink\": \"<string>\",\n \"PreviewHint\": \"<string>\",\n \"FromName\": \"<string>\",\n \"FromCategoryName\": \"<string>\",\n \"Registered\": \"2023-11-07T05:31:56Z\",\n \"Updated\": \"2023-11-07T05:31:56Z\",\n \"ExpiresAt\": \"2023-11-07T05:31:56Z\",\n \"IsRead\": true,\n \"ReadAt\": \"2023-11-07T05:31:56Z\",\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 \"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 \"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 \"Sale\": {\n \"ContactName\": \"<string>\",\n \"SaleDate\": \"2023-11-07T05:31:56Z\",\n \"SaleId\": 123,\n \"Probability\": 123,\n \"Title\": \"<string>\",\n \"Amount\": 123,\n \"Currency\": \"<string>\",\n \"ProjectName\": \"<string>\",\n \"AssociateFullName\": \"<string>\",\n \"Description\": \"<string>\",\n \"WeightedAmount\": 123,\n \"ProjectId\": 123,\n \"EarningPercent\": 123,\n \"Earning\": 123,\n \"ContactId\": 123,\n \"AssociateId\": 123,\n \"PersonId\": 123,\n \"SaleTypeId\": 123,\n \"SaleTypeName\": \"<string>\",\n \"PersonFullName\": \"<string>\",\n \"ActiveErpLinks\": 123,\n \"NextDueDate\": \"2023-11-07T05:31:56Z\",\n \"Number\": \"<string>\",\n \"TableRight\": {\n \"Mask\": \"<string>\",\n \"Reason\": \"<string>\"\n },\n \"FieldProperties\": {}\n },\n \"ApplicationId\": \"<string>\",\n \"Location\": \"<string>\",\n \"RatingPercent\": 123\n },\n \"ToAssociateIds\": [\n 123\n ],\n \"ToGroupIds\": [\n 123\n ],\n \"ToAll\": true\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
NewsFeedItem: {
NewsFeedItemId: 123,
Title: '<string>',
Summary: '<string>',
Description: {},
Actions: [{Identifier: '<string>', Title: '<string>'}],
ImageLink: '<string>',
SourceLink: '<string>',
PreviewHint: '<string>',
FromName: '<string>',
FromCategoryName: '<string>',
Registered: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
ExpiresAt: '2023-11-07T05:31:56Z',
IsRead: true,
ReadAt: '2023-11-07T05:31:56Z',
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: {}
},
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: {}
},
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: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ApplicationId: '<string>',
Location: '<string>',
RatingPercent: 123
},
ToAssociateIds: [123],
ToGroupIds: [123],
ToAll: true
})
};
fetch('http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "56350",
CURLOPT_URL => "http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'NewsFeedItem' => [
'NewsFeedItemId' => 123,
'Title' => '<string>',
'Summary' => '<string>',
'Description' => [
],
'Actions' => [
[
'Identifier' => '<string>',
'Title' => '<string>'
]
],
'ImageLink' => '<string>',
'SourceLink' => '<string>',
'PreviewHint' => '<string>',
'FromName' => '<string>',
'FromCategoryName' => '<string>',
'Registered' => '2023-11-07T05:31:56Z',
'Updated' => '2023-11-07T05:31:56Z',
'ExpiresAt' => '2023-11-07T05:31:56Z',
'IsRead' => true,
'ReadAt' => '2023-11-07T05:31:56Z',
'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' => [
]
],
'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' => [
]
],
'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' => [
]
],
'Sale' => [
'ContactName' => '<string>',
'SaleDate' => '2023-11-07T05:31:56Z',
'SaleId' => 123,
'Probability' => 123,
'Title' => '<string>',
'Amount' => 123,
'Currency' => '<string>',
'ProjectName' => '<string>',
'AssociateFullName' => '<string>',
'Description' => '<string>',
'WeightedAmount' => 123,
'ProjectId' => 123,
'EarningPercent' => 123,
'Earning' => 123,
'ContactId' => 123,
'AssociateId' => 123,
'PersonId' => 123,
'SaleTypeId' => 123,
'SaleTypeName' => '<string>',
'PersonFullName' => '<string>',
'ActiveErpLinks' => 123,
'NextDueDate' => '2023-11-07T05:31:56Z',
'Number' => '<string>',
'TableRight' => [
'Mask' => '<string>',
'Reason' => '<string>'
],
'FieldProperties' => [
]
],
'ApplicationId' => '<string>',
'Location' => '<string>',
'RatingPercent' => 123
],
'ToAssociateIds' => [
123
],
'ToGroupIds' => [
123
],
'ToAll' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem"
payload = {
"NewsFeedItem": {
"NewsFeedItemId": 123,
"Title": "<string>",
"Summary": "<string>",
"Description": {},
"Actions": [
{
"Identifier": "<string>",
"Title": "<string>"
}
],
"ImageLink": "<string>",
"SourceLink": "<string>",
"PreviewHint": "<string>",
"FromName": "<string>",
"FromCategoryName": "<string>",
"Registered": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"ExpiresAt": "2023-11-07T05:31:56Z",
"IsRead": True,
"ReadAt": "2023-11-07T05:31:56Z",
"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": {}
},
"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": {}
},
"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": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ApplicationId": "<string>",
"Location": "<string>",
"RatingPercent": 123
},
"ToAssociateIds": [123],
"ToGroupIds": [123],
"ToAll": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
NewsFeedItem: {
NewsFeedItemId: 123,
Title: '<string>',
Summary: '<string>',
Description: {},
Actions: [{Identifier: '<string>', Title: '<string>'}],
ImageLink: '<string>',
SourceLink: '<string>',
PreviewHint: '<string>',
FromName: '<string>',
FromCategoryName: '<string>',
Registered: '2023-11-07T05:31:56Z',
Updated: '2023-11-07T05:31:56Z',
ExpiresAt: '2023-11-07T05:31:56Z',
IsRead: true,
ReadAt: '2023-11-07T05:31:56Z',
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: {}
},
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: {}
},
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: {}
},
Sale: {
ContactName: '<string>',
SaleDate: '2023-11-07T05:31:56Z',
SaleId: 123,
Probability: 123,
Title: '<string>',
Amount: 123,
Currency: '<string>',
ProjectName: '<string>',
AssociateFullName: '<string>',
Description: '<string>',
WeightedAmount: 123,
ProjectId: 123,
EarningPercent: 123,
Earning: 123,
ContactId: 123,
AssociateId: 123,
PersonId: 123,
SaleTypeId: 123,
SaleTypeName: '<string>',
PersonFullName: '<string>',
ActiveErpLinks: 123,
NextDueDate: '2023-11-07T05:31:56Z',
Number: '<string>',
TableRight: {Mask: '<string>', Reason: '<string>'},
FieldProperties: {}
},
ApplicationId: '<string>',
Location: '<string>',
RatingPercent: 123
},
ToAssociateIds: [123],
ToGroupIds: [123],
ToAll: true
})
};
fetch('http://localhost:56350/api/v1/Agents/NewsFeed/PostNewsFeedItem', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"NewsFeedItemId": 123,
"Title": "<string>",
"Summary": "<string>",
"Description": {},
"Actions": [
{
"Identifier": "<string>",
"Title": "<string>",
"CtaType": "Unknown",
"CtaFlavor": "Normal"
}
],
"ImageLink": "<string>",
"SourceLink": "<string>",
"PreviewHint": "<string>",
"FromName": "<string>",
"FromCategoryName": "<string>",
"Priority": "NoPriority",
"Registered": "2023-11-07T05:31:56Z",
"Updated": "2023-11-07T05:31:56Z",
"ExpiresAt": "2023-11-07T05:31:56Z",
"Status": "Normal",
"IsRead": true,
"ReadAt": "2023-11-07T05:31:56Z",
"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": {}
},
"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": {}
},
"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": {}
},
"Sale": {
"ContactName": "<string>",
"SaleDate": "2023-11-07T05:31:56Z",
"SaleId": 123,
"Probability": 123,
"Title": "<string>",
"Amount": 123,
"Currency": "<string>",
"ProjectName": "<string>",
"AssociateFullName": "<string>",
"Description": "<string>",
"Status": "Unknown",
"WeightedAmount": 123,
"ProjectId": 123,
"EarningPercent": 123,
"Earning": 123,
"ContactId": 123,
"AssociateId": 123,
"PersonId": 123,
"SaleTypeId": 123,
"SaleTypeName": "<string>",
"PersonFullName": "<string>",
"Completed": "Unknown",
"ActiveErpLinks": 123,
"NextDueDate": "2023-11-07T05:31:56Z",
"Number": "<string>",
"TableRight": {
"Mask": "<string>",
"Reason": "<string>"
},
"FieldProperties": {}
},
"ApplicationId": "<string>",
"Location": "<string>",
"RatingPercent": 123
}Headers
Convert string references and multi-language values into a specified language (iso2) code.
Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
Specify the timezone code that you would like date/time responses converted to.
The application token that identifies the partner app. Used when calling Online WebAPI from a server.
Query Parameters
Optional comma separated list of properties to include in the result. Other fields are then nulled out to reduce payload size: "Name,department,category". Default = show all fields.
Body
NewsFeedItem, ToAssociateIds, ToGroupIds, ToAll
PostNewsFeedItem: Saves a new item to the newsfeed, publishing it to the specified users.
News feed items are created by agents or other services for display on the start page and other relevant places in the UI. Carrier object for NewsFeedItem. Services for the NewsFeedItem Carrier is available from the NewsFeed Agent.
Show child attributes
Show child attributes
Response
OK
News feed items are created by agents or other services for display on the start page and other relevant places in the UI. Carrier object for NewsFeedItem. Services for the NewsFeedItem Carrier is available from the NewsFeed Agent.
Primary key
Short, descriptive headline. Plain text title. Multi-language string supported: 'US:"english";NO:"norsk"'.
Short, descriptive summary. Plain text summary. Multi-language string supported: 'US:"english";NO:"norsk"'.
Multi-language descriptions for the news feed item, where the key is an ISO 2 letter language code (e.g. 'en', 'no', 'de') and the value is the description in that language. Styling via pre-defined CSS classes. No SCRIPT or STYLE tags allowed. The 'current' value is set based on the Accept-Language/SO-Language header.
Show child attributes
Show child attributes
Call to action items for the news feed item. Each item contains a title, an identifier, a type and flavor.
Show child attributes
Show child attributes
URL Link to an image associated with the news item.
URL Link to the source of the news item, or an SOProtocol link to a SuperOffice item
Preview hint for the news item. e.g. {contact_id=123}
Name of the instance that published this item. e.g. Pete the prospector
Type of the instance that published this item. e.g. Prospector Agent
Importance of the news item. Low to High. Higher priority items may be shown more prominently in the feed.
NoPriority, Highest, High, Normal, Low, Lowest Registered when in UTC.
Last updated when in UTC.
When the news item expires and should no longer be shown in feeds (UTC) in UTC.
Indicates if the item is being handled by a CTA. (normal, processing, processed)
Normal, Handling, Handled Set to true when the recipient user has read the news feed item.
When the recipient user read the news feed item (UTC) in UTC.
Carrier object for Contact. Services for the Contact Carrier is available from the Contact Agent.
Show child attributes
Show child attributes
Carrier object for Person. Services for the Person Carrier is available from the Person Agent.
Show child attributes
Show child attributes
Carrier object for Project. Services for the Project Carrier is available from the Project Agent.
Show child attributes
Show child attributes
Carrier object for Sale. Services for the Sale Carrier is available from the Sale Agent.
Show child attributes
Show child attributes
The id of the application that registered this news item. Used to resolve where any CTA should be posted when clicked.
Place related to news item (city or city + country) (optional)
Rating as percentage (0-100). 0 = undefined. 1-9 = No stars, 10-30 = One star, Two stars = 31-50, 90-100 = Five stars. Client can render rating as stars, pie chart, thumbs up or down, however they want. Default 0 indicates no rating.
Related topics
Post News Feed ItemWebAPI changes in SuperOffice 12.2Delete News Feed ItemNewsFeedItemGet News Feed Item