All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
get_template_by_type | GET /v2/facts/{proj_id}/{env_id}/email_templates/{template_type} | Get Template By Type |
list_templates | GET /v2/facts/{proj_id}/{env_id}/email_templates/ | List Templates |
send_test_email_by_type | POST /v2/facts/{proj_id}/{env_id}/email_templates/{template_type}/send_test_email | Send Test Email By Type |
update_template_by_type | POST /v2/facts/{proj_id}/{env_id}/email_templates/{template_type} | Update Template By Type |
models::EmailTemplateRead get_template_by_type(proj_id, env_id, template_type) Get Template By Type
Lists all the email configurations defined within an environment.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
template_type | EmailTemplateType | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vecmodels::EmailTemplateRead list_templates(proj_id, env_id, page, per_page) List Templates
Lists all the email configurations defined within an environment.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
page | Option<i32> | Page number of the results to fetch, starting at 1. | [default to 1] | |
per_page | Option<i32> | The number of results per page (max 100). | [default to 30] |
Vecmodels::EmailTemplateRead
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
serde_json::Value send_test_email_by_type(template_type, proj_id, env_id, email_template_update) Send Test Email By Type
Name | Type | Description | Required | Notes |
---|---|---|---|---|
template_type | EmailTemplateType | [required] | ||
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
email_template_update | EmailTemplateUpdate | [required] |
serde_json::Value
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::EmailTemplateRead update_template_by_type(proj_id, env_id, template_type, email_template_update) Update Template By Type
Updates an email template by a given type.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
template_type | EmailTemplateType | [required] | ||
email_template_update | EmailTemplateUpdate | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]