Announcement Templates
Read and manage the global catalog of reusable announcement templates (e.g. "See you later {name}!"). Shared by every company; read by announcement authors, managed by admins.
Updates an existing template identified by its id. All editable fields are replaced; the id is preserved.
SessionId
Template identifier
64f8a0e2d5b7c9a1e3f4a5b6Global reusable announcement template shared by all companies (e.g. "See you later {name}!"). Placeholder tokens are stored verbatim.
Unique template identifier
507f1f77bcf86cd799439020Stable business key / slug identifying the template
farewellGrouping shown in the dashboard template picker
life-eventsCover/illustration image URL associated with the template
Display ordering within the catalog (ascending)
1Whether the template is offered to authors; disabled templates are hidden from the picker
truePlaceholder tokens the template exposes, for the dashboard token palette
["name"]Template updated
Global reusable announcement template shared by all companies (e.g. "See you later {name}!"). Placeholder tokens are stored verbatim.
Unique template identifier
507f1f77bcf86cd799439020Stable business key / slug identifying the template
farewellGrouping shown in the dashboard template picker
life-eventsCover/illustration image URL associated with the template
Display ordering within the catalog (ascending)
1Whether the template is offered to authors; disabled templates are hidden from the picker
truePlaceholder tokens the template exposes, for the dashboard token palette
["name"]Template not found, validation failed, or key conflict
PUT /api/v1/company/announcements/templates/{templateId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 427
{
"key": "farewell",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"body": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"resume": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"category": "life-events",
"coverImageURL": "text",
"order": 1,
"enabled": true,
"placeholders": [
"name"
]
}{
"id": "507f1f77bcf86cd799439020",
"key": "farewell",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"body": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"resume": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"category": "life-events",
"coverImageURL": "text",
"order": 1,
"enabled": true,
"placeholders": [
"name"
]
}Deletes a template from the global catalog, identified by its id.
SessionId
Template identifier
64f8a0e2d5b7c9a1e3f4a5b6Template deleted
Global reusable announcement template shared by all companies (e.g. "See you later {name}!"). Placeholder tokens are stored verbatim.
Unique template identifier
507f1f77bcf86cd799439020Stable business key / slug identifying the template
farewellGrouping shown in the dashboard template picker
life-eventsCover/illustration image URL associated with the template
Display ordering within the catalog (ascending)
1Whether the template is offered to authors; disabled templates are hidden from the picker
truePlaceholder tokens the template exposes, for the dashboard token palette
["name"]Template not found
DELETE /api/v1/company/announcements/templates/{templateId} HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
{
"id": "507f1f77bcf86cd799439020",
"key": "farewell",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"body": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"resume": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"category": "life-events",
"coverImageURL": "text",
"order": 1,
"enabled": true,
"placeholders": [
"name"
]
}Returns the enabled templates of the global catalog, ordered for display in the dashboard picker. Placeholder tokens (e.g. {name}) are returned verbatim; the client substitutes them when the author picks a template.
SessionId
Enabled templates, ordered ascending
Global reusable announcement template shared by all companies (e.g. "See you later {name}!"). Placeholder tokens are stored verbatim.
Unique template identifier
507f1f77bcf86cd799439020Stable business key / slug identifying the template
farewellGrouping shown in the dashboard template picker
life-eventsCover/illustration image URL associated with the template
Display ordering within the catalog (ascending)
1Whether the template is offered to authors; disabled templates are hidden from the picker
truePlaceholder tokens the template exposes, for the dashboard token palette
["name"]GET /api/v1/company/announcements/templates HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
Enabled templates, ordered ascending
[
{
"id": "507f1f77bcf86cd799439020",
"key": "farewell",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"body": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"resume": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"category": "life-events",
"coverImageURL": "text",
"order": 1,
"enabled": true,
"placeholders": [
"name"
]
}
]Creates a new template in the global catalog. The key must be unique and the default title must be non-empty; the generated id is returned.
SessionId
Global reusable announcement template shared by all companies (e.g. "See you later {name}!"). Placeholder tokens are stored verbatim.
Unique template identifier
507f1f77bcf86cd799439020Stable business key / slug identifying the template
farewellGrouping shown in the dashboard template picker
life-eventsCover/illustration image URL associated with the template
Display ordering within the catalog (ascending)
1Whether the template is offered to authors; disabled templates are hidden from the picker
truePlaceholder tokens the template exposes, for the dashboard token palette
["name"]Template created
Global reusable announcement template shared by all companies (e.g. "See you later {name}!"). Placeholder tokens are stored verbatim.
Unique template identifier
507f1f77bcf86cd799439020Stable business key / slug identifying the template
farewellGrouping shown in the dashboard template picker
life-eventsCover/illustration image URL associated with the template
Display ordering within the catalog (ascending)
1Whether the template is offered to authors; disabled templates are hidden from the picker
truePlaceholder tokens the template exposes, for the dashboard token palette
["name"]Validation failed or the key already exists
POST /api/v1/company/announcements/templates HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Content-Type: */*
Accept: */*
Content-Length: 427
{
"key": "farewell",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"body": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"resume": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"category": "life-events",
"coverImageURL": "text",
"order": 1,
"enabled": true,
"placeholders": [
"name"
]
}{
"id": "507f1f77bcf86cd799439020",
"key": "farewell",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"body": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"resume": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"category": "life-events",
"coverImageURL": "text",
"order": 1,
"enabled": true,
"placeholders": [
"name"
]
}Returns every template of the global catalog, including disabled ones, for admin management. Ordered by order ascending.
SessionId
All templates, including disabled ones
Global reusable announcement template shared by all companies (e.g. "See you later {name}!"). Placeholder tokens are stored verbatim.
Unique template identifier
507f1f77bcf86cd799439020Stable business key / slug identifying the template
farewellGrouping shown in the dashboard template picker
life-eventsCover/illustration image URL associated with the template
Display ordering within the catalog (ascending)
1Whether the template is offered to authors; disabled templates are hidden from the picker
truePlaceholder tokens the template exposes, for the dashboard token palette
["name"]GET /api/v1/company/announcements/templates/all HTTP/1.1
Host: api.happyforce.com
SessionId: YOUR_API_KEY
Accept: */*
All templates, including disabled ones
[
{
"id": "507f1f77bcf86cd799439020",
"key": "farewell",
"title": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"body": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"resume": {
"defaultValue": "Happy birthday!",
"langValues": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"valid": true
},
"category": "life-events",
"coverImageURL": "text",
"order": 1,
"enabled": true,
"placeholders": [
"name"
]
}
]Last updated