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:

  • default: The system default template.
    Note: When type is set to default, the system default template content overwrites the custom content.
  • custom: The custom template.
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:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

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"
}