Skip to main content

Update an event

PUT /api/2.0/community/event/{feedid}

Updates the selected event changing the event title, content or/and event type specified in the request.

Path parameters​

feedid​

type: integer

Feed ID

Example: 0

Request body​

title​

type: string

New event title

Example: "string"

content​

type: string

New event content

Example: "string"

type​

type: integer

New event type

Example: 0

Request example​

{
"title": "string",
"content": "string",
"type": 0
}

Returns​

List of events. A request that is not authenticated returns 401.

Text​

type: string

Example: "Text of feed"

Poll​

type: PollWrapper

Id​

type: integer

Example: 10

Title​

type: string

Example: "Manager"

Created​

type: string

Example: "2020-12-07T13:56:02.2729203Z"

Updated​

type: string

Example: "2020-12-07T13:56:02.2729203Z"

Type​

type: "None" | "News" | "Order" | "Advert" | "AllNews" | "Poll" | "All"

[0 - None, 1 - News, 2 - Order, 4 - Advert, 7 - AllNews, 8 - Poll, 15 - All]

Example: 1

CreatedBy​

type: EmployeeWraper

Response example​

{
"Text": "Text of feed",
"Poll": {
"PollType": 0,
"EndDate": "2020-12-07T13:56:02.2859248Z",
"StartDate": "2020-12-07T13:56:02.2859248Z",
"Voted": false,
"Votes": [
{
"Id": 133,
"Name": "Variant 1",
"Votes": 100
}
]
},
"Id": 10,
"Title": "Manager",
"Created": "2020-12-07T13:56:02.2729203Z",
"Updated": "2020-12-07T13:56:02.2729203Z",
"Type": 1,
"CreatedBy": {
"Id": "00000000-0000-0000-0000-000000000000",
"DisplayName": "Mike Zanyatski",
"Title": "Manager",
"AvatarSmall": "url to small avatar",
"ProfileUrl": "/Products/People/Profile.aspx?user=administrator"
}
}