forked from cds-snc/notification-api
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
d78a365
commit 0c1d116
Showing
2 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: VA Notify API Documentation | ||
version: 1.0.9 | ||
version: 1.0.10 | ||
description: | | ||
<p>This documents the API schemas for consumption by internal VA developers.</p> | ||
<h1>Authorization header</h1> | ||
|
@@ -1113,10 +1113,20 @@ paths: | |
* `billing_code` - A string to indicate your billing code | ||
* `callback_url` - An https URL; note that this overrides any service level callback | ||
* `email_reply_to_id` - A UUID | ||
* `personalisation` - If the template includes personalisation, the fields to populate (see examples) | ||
* `personalisation` - A JSON object containing the fields needed to populate the notification template. See **Advanced Usage** section and **dynamic bullet list** example for details. | ||
* `reference` - A string to indicate any reference | ||
* `scheduled_for` - A datetime indicated when to send the notification (not available at this time) | ||
### Advanced usage | ||
The `personalisation` JSON object allows for dynamic customization of the notification template by passing variables: | ||
- **Keys**: Represent variable names defined in the notification template. | ||
- **Values**: Specify the data to replace the variables. Values can be: | ||
- **Strings**: Used for simple text replacement. | ||
- **Lists**: Rendered as bulleted lists in the email notification. | ||
``` | ||
security: | ||
- serviceAuth: [] | ||
tags: | ||
|
@@ -1154,6 +1164,22 @@ paths: | |
email_reply_to_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | ||
reference: string | ||
scheduled_for: string | ||
dynamic bulleted list: | ||
value: | ||
template_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | ||
email_address: [email protected] | ||
personalisation: | ||
full_name: John Smith | ||
claim_id: '123456' | ||
tasks: | ||
- "Task 1" | ||
- "Task 2" | ||
- "Task 3" | ||
billing_code: string | ||
callback_url: https://staging-api.va.gov/vanotify/internal/swagger | ||
email_reply_to_id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 | ||
reference: string | ||
scheduled_for: string | ||
responses: | ||
'201': | ||
description: CREATED | ||
|