Edit Welcome Email Template
Edit the welcome email template.
Request URL
POST {base_url}/{api_path}/email_template/update?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| type | No | String | The type of the template. Valid value:
|
| subject | No | String | The email subject. Template variables are supported. |
| body | No | String | The email body. HTML content and template variables are supported. |
| login_credentials_validity_period | No | Integer | The validity period of the login credentials included the welcome email, in
days. Valid value:
|
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
Example
Request example
POST /openapi/v1.0/email_template/update?access_token=w3rTvBskMgZ1XpQd7NhLc0eYfA6UoIjK HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
"login_credentials_validity_period": 5
}
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS"
}