---
updatedAt: 2026-10-31T08:03:05.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Update Email Template

This API Used to update email template details by event. This API can be used by admin and super admin to update email template details. User can use this api to update email template details related to it like replyToEmail, scheduledAT, sendTo, subjectLine  and many other.
User have to pass the message details as body params.
This API used at event host side to update email template details.

Here is the description of response attributes, which returns to the form of JSON.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Attribute
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        **type** 
      </td>

      <td style={{ textAlign: "left" }}>
        This field returns type of message like success or error.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        **message** 
      </td>

      <td style={{ textAlign: "left" }}>
        This field returns a message description.
      </td>
    </tr>
  </tbody>
</Table>

This API Returns a void response with 200 status if API executed successfully.

Here is the possible error messages, which return if any condition gets failed or required data is missing for processing.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Error code
      </th>

      <th>
        Error Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        400
      </td>

      <td>
        The request could not be understood by the server due to malformed syntax.
      </td>
    </tr>

    <tr>
      <td>
        401
      </td>

      <td>
        You are not authorized to view the resource.
      </td>
    </tr>

    <tr>
      <td>
        403
      </td>

      <td>
        Accessing the resource you were trying to reach is forbidden.
      </td>
    </tr>

    <tr>
      <td>
        404
      </td>

      <td>
        The resource you were trying to reach is not found.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "accelevents",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.accelevents.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/rest/host/event/{eventUrl}/contact/message": {
      "put": {
        "summary": "Update Email Template",
        "description": "This API Used to update email template details by event. This API can be used by admin and super admin to update email template details. User can use this api to update email template details related to it like replyToEmail, scheduledAT, sendTo, subjectLine  and many other.\nUser have to pass the message details as body params.\nThis API used at event host side to update email template details.",
        "operationId": "update-email-template",
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "description": "API Authentication Token",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eventUrl",
            "in": "path",
            "description": "Event url is unique identifier for your event. E.g https://www.accelevents.com/events/demo. Here demo is the event url.",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "messageToContactDto": {
                    "type": "object",
                    "description": "Update Email Template",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "description": "id of contact, if record exists in system.",
                        "format": "int64"
                      },
                      "subjectLine": {
                        "type": "string",
                        "description": "The message's title as subject line"
                      },
                      "dateSentOrSchedule": {
                        "type": "string",
                        "description": "It's contains message sent or schedule on date. When the particular message sent on date, and it will return in MM/dd/yyyy HH:mm format."
                      },
                      "encodedTemplateId": {
                        "type": "string",
                        "description": "It's contains the encoded template id"
                      },
                      "messageJson": {
                        "type": "string",
                        "description": "It's contains the message json string."
                      },
                      "notificationIcon": {
                        "type": "string",
                        "description": "It's contains the notification icon."
                      },
                      "replyToEmail": {
                        "type": "string",
                        "description": "It's contains the reply to email address."
                      },
                      "scheduledAT": {
                        "type": "string",
                        "description": "It's contains scheduled time of the message. When the particular message sent on specific time, and it will return in MM/dd/yyyy HH:mm format."
                      },
                      "sendTo": {
                        "type": "string",
                        "description": "send list must be either of ALL_CONTACTS, ALL_TICKER_HOLDER_AND_BUYERS, ALL_AUCTION_PARTICIPANTS, ALL_AUCTION_WINNERS, ALL_RAFFLE_WINNERS, ALL_FUND_A_NEED_PLEDGERS, ALL_TEXT_TO_GIVE_DONORS, BY_TICKET_TYPE_VIA, ALL_SPEAKERS, ALL_EXHIBITORS, CHECKED_IN, NOT_CHECKED_IN, ALL_RAFFLE_PARTICIPANTS"
                      },
                      "sentToCount": {
                        "type": "integer",
                        "description": "It's contains the total number of people to whom message sent.",
                        "format": "int32"
                      },
                      "status": {
                        "type": "string",
                        "description": "It's contains the status of the email message.it will return data like SENT,SCHEDULED etc."
                      },
                      "targetAudienceType": {
                        "type": "string",
                        "description": "It's contains the target audience type should be All, WEB_APP, MOBILE_APP.",
                        "enum": [
                          "All",
                          "WEB_APP",
                          "MOBILE_APP"
                        ]
                      },
                      "ticketTypeIds": {
                        "type": "string",
                        "description": "Ticket Type Id to send mail if EMAIL_RECIPIENTS is BY_TICKET_TYPE_VIA"
                      },
                      "type": {
                        "type": "string",
                        "description": "Email OR Notification Type"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"message\": \"string\",\n  \"type\": \"string\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "string"
                    },
                    "type": {
                      "type": "string",
                      "example": "string"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          },
          "404": {
            "description": "404",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```