Skip to main content
POST
/
api
/
public
/
v1
/
email-templates
/
update
Update email template
curl --request POST \
  --url http://app.localhost:3000/api/public/v1/email-templates/update \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "subject": {},
    "active": true,
    "storeId": "<string>",
    "params": {
      "replyTo": "<string>",
      "specific": {}
    },
    "templateVariables": {}
  }
}
'
{
  "message": "<string>",
  "code": "<string>",
  "issues": [
    {
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
id
string
required
data
object
required

Response

Successful response