Api Home > Announcement > GetUserAnnouncements

GET api/V3/Announcement/GetUserAnnouncements?userId={userId}&languageCode={languageCode} Get all announcements by user and language.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

The user Id

globally unique identifier

Required

languageCode

The 3-letter language code

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Announcement
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Title

string

None.

Priority

string

None.

PriorityId

globally unique identifier

None.

Body

string

None.

AccessGroupId

globally unique identifier

None.

StartDate

date

None.

EndDate

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "d141daea-4cc4-4590-b56c-97a910531306",
    "Title": "sample string 2",
    "Priority": "sample string 3",
    "PriorityId": "9f060ebf-ff10-4077-8cfd-9f8330252be1",
    "Body": "sample string 5",
    "AccessGroupId": "8a8a966f-b2ae-4bda-a649-3b44434486eb",
    "StartDate": "2019-12-08T10:04:36.907Z",
    "EndDate": "2019-12-08T10:04:36.907Z"
  },
  {
    "Id": "d141daea-4cc4-4590-b56c-97a910531306",
    "Title": "sample string 2",
    "Priority": "sample string 3",
    "PriorityId": "9f060ebf-ff10-4077-8cfd-9f8330252be1",
    "Body": "sample string 5",
    "AccessGroupId": "8a8a966f-b2ae-4bda-a649-3b44434486eb",
    "StartDate": "2019-12-08T10:04:36.907Z",
    "EndDate": "2019-12-08T10:04:36.907Z"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAnnouncement xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cireson.ServiceManager.WebConsole.ViewModels">
  <Announcement>
    <AccessGroupId>8a8a966f-b2ae-4bda-a649-3b44434486eb</AccessGroupId>
    <Body>sample string 5</Body>
    <EndDate>2019-12-08T10:04:36.9078752+00:00</EndDate>
    <Id>d141daea-4cc4-4590-b56c-97a910531306</Id>
    <Priority>sample string 3</Priority>
    <PriorityId>9f060ebf-ff10-4077-8cfd-9f8330252be1</PriorityId>
    <StartDate>2019-12-08T10:04:36.9078752+00:00</StartDate>
    <Title>sample string 2</Title>
  </Announcement>
  <Announcement>
    <AccessGroupId>8a8a966f-b2ae-4bda-a649-3b44434486eb</AccessGroupId>
    <Body>sample string 5</Body>
    <EndDate>2019-12-08T10:04:36.9078752+00:00</EndDate>
    <Id>d141daea-4cc4-4590-b56c-97a910531306</Id>
    <Priority>sample string 3</Priority>
    <PriorityId>9f060ebf-ff10-4077-8cfd-9f8330252be1</PriorityId>
    <StartDate>2019-12-08T10:04:36.9078752+00:00</StartDate>
    <Title>sample string 2</Title>
  </Announcement>
</ArrayOfAnnouncement>