PUT
/
admin
/
auto_emails
/
template
curl --request PUT \
  --url https://api.helpyousponsor.com/v1/admin/auto_emails/template \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "emailset_id": 123,
  "trigger": "<string>",
  "client_id": 123,
  "subject": "<string>",
  "message": "<string>",
  "to": "<string>",
  "disabled": true,
  "no_email": true,
  "id": 123
}'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Data needed to edit an email template
emailset_id
integer

The id of the email set

trigger
string

The trigger for the email

client_id
integer

The id of the client

subject
string

The subject of the email

message
string

The message of the email

to
string

The recipient of the email

disabled
boolean

Whether the email is disabled

no_email
boolean

Whether to send the email

id
integer

The id of the email template

Response

200
application/json
Successful operation
message
string

Success message