Provides API endpoints related to announcements
Summary
Functions
@spec createannouncement( body :: Gleanex.Client.CreateAnnouncementRequest.t(), opts :: keyword() ) :: {:ok, Gleanex.Client.Announcement.t()} | {:error, Gleanex.Error.t()}
Create Announcement
Create a textual announcement visible to some set of users based on department and location.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
Announcement content
@spec deleteannouncement( body :: Gleanex.Client.DeleteAnnouncementRequest.t(), opts :: keyword() ) :: :ok | {:error, Gleanex.Error.t()}
Delete Announcement
Delete an existing user-generated announcement.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
Delete announcement request
@spec updateannouncement( body :: Gleanex.Client.UpdateAnnouncementRequest.t(), opts :: keyword() ) :: {:ok, Gleanex.Client.Announcement.t()} | {:error, Gleanex.Error.t()}
Update Announcement
Update a textual announcement visible to some set of users based on department and location.
Options
locale: The client's preferred locale in rfc5646 format (e.g.en,ja,pt-BR). If omitted, theAccept-Languagewill be used. If not present or not supported, defaults to the closest match oren.
Request Body
Content Types: application/json
Announcement content. Id need to be specified for the announcement.