Announcement Sections
get
Returns a list of sections of announcements container
Authorizations
Responses
200
OK
application/json
Announcement section: id, title, layout, representation, listing type, search, and HTML content.
idstringOptionalExample:
Section identifier
64f8a0e2d5b7c9a1e3f4a5b6titlestringOptional
Section title
layoutstring · enumOptionalPossible values:
Banner layout type
representationstring · enumOptionalPossible values:
Representation type
listingTypestring · enumOptionalPossible values:
Listing type
searchEnabledbooleanOptional
Whether search is enabled for this section
htmlContentstringOptional
HTML content of the section
get/api/v1/employee/announcements/{employeeId}/sections
GET /api/v1/employee/announcements/{employeeId}/sections HTTP/1.1
Host: api.happyforce.com
Accept: */*
200
OK
[
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": "text",
"layout": "HORIZONTAL",
"representation": "COVER",
"listingType": "STANDARD",
"searchEnabled": true,
"htmlContent": "text"
}
]get
Returns the configuration of a given section
Authorizations
Path parameters
sectionIdstringRequiredExample:
64f8a0e2d5b7c9a1e3f4a5b6Responses
200
OK
application/json
Announcement section: id, title, layout, representation, listing type, search, and HTML content.
idstringOptionalExample:
Section identifier
64f8a0e2d5b7c9a1e3f4a5b6titlestringOptional
Section title
layoutstring · enumOptionalPossible values:
Banner layout type
representationstring · enumOptionalPossible values:
Representation type
listingTypestring · enumOptionalPossible values:
Listing type
searchEnabledbooleanOptional
Whether search is enabled for this section
htmlContentstringOptional
HTML content of the section
get/api/v1/employee/announcements/{employeeId}/sections/{sectionId}
GET /api/v1/employee/announcements/{employeeId}/sections/{sectionId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
200
OK
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"title": "text",
"layout": "HORIZONTAL",
"representation": "COVER",
"listingType": "STANDARD",
"searchEnabled": true,
"htmlContent": "text"
}Last updated