Create Alert Configuration
Changed onCreates an alert configuration for the authenticated company from one of BambooHR's alert templates, and returns the stored configuration, including its server-assigned id, as a single JSON object.
Use this to add a configuration the company does not have yet. To overwrite one that already exists, use Replace Alert Configuration (replace-alert-configuration) instead; to see what is already configured, use List Alert Configurations (list-alert-configurations). bambooAlertId names the alert template the configuration is built on and comes from List Alert Templates (list-alert-templates). An alert configuration sends scheduled email to people; to receive a programmatic HTTP callback when employee data changes instead, use Webhooks > Create Webhook (create-webhook).
The configuration is live as soon as it is created and begins sending on the schedule it defines. Nothing limits a template to one configuration, so repeating this call with the same bambooAlertId adds a second configuration rather than replacing the first, and no endpoint deletes an alert configuration once it exists. The returned object also carries additionalRecipientEmails, employeeIds, listValueIds, and userIds; this API never stores those, so scope an alert's audience with filterListValueIds and the sendTo* properties instead.
Access is all-or-nothing rather than per-record. An authenticated caller without view access to the company's Email Alerts settings receives 403 instead of a partial success.
OAuth Scopes: alerts.write
Request
- Base URLhttps://companySubDomain.bamboohr.com
- AuthOAuth 2Authorization code/authorize.phpToken URL/token.phpScopesalerts.write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"runAtTime": "07:00:00",
"runAtTimeZone": "America/Denver"
}Response
The created alert configuration, as a single JSON object.
Example response
{
"runAtTime": "07:00:00",
"runAtTimeZone": "America/Denver"
}Changes
- breaking
request property
/was restricted to a list of enum values - breaking
request property
/was restricted to a list of enum values - breaking
the request property
became required - breaking
response property
lastEditedlist-of-types was widened by adding typesstringto media typeapplication/jsonof response201 - warning
the
/request property's max was set to32767.00 - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- warning
added the new
daysenum value to the/response property for the response status - warning
added the new
departmentenum value to the/response property for the response status - warning
added the new
divisionenum value to the/response property for the response status - warning
added the new
jobTitleenum value to the/response property for the response status - warning
added the new
locationenum value to the/response property for the response status - warning
added the new
monthsenum value to the/response property for the response status - warning
added the new
weeksenum value to the/response property for the response status - info
api operation id
a05e93bc2eb9c39a40fbd71e6e07f3c6removed and replaced withcreate-alert-configuration - info
api tag
Alertsadded - info
api tag
Alert Configurationsremoved - info
the
request property default valuefalsewas added - info
the
request property default valuefalsewas added - info
the
request property default valuetruewas added - info
the
request property default valuedailywas added - info
the
request property default valuefalsewas added - info
the
request property default valuetruewas added - info
the
request property default valuefalsewas added - info
added the new
daysenum value to the request property/ - info
added the new
departmentenum value to the request property/ - info
added the new
divisionenum value to the request property/ - info
added the new
jobTitleenum value to the request property/ - info
added the new
locationenum value to the request property/ - info
added the new
monthsenum value to the request property/ - info
added the new
weeksenum value to the request property/ - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
added the non-success response with the status
- breaking