email_template
Update a specific email template by its ID
put/api/v1/template/{id}
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Request body
Response
Template successfully updated
Example response
{
"status": "success",
"status_code": 200,
"message": "Template successfully updated",
"data": {
"id": "01910b26-4508-7e1b-8855-15aeb15133aa",
"name": "updated_template_name",
"body": "<!DOCTYPE html>\r\n<html>\r\n <body>\r\n Updated template body\r\n </body>\r\n</html>",
"created_at": "2024-08-01T02:00:14.011782+01:00",
"updated_at": "2024-08-01T03:00:14.011782+01:00"
}
}Changes
No recorded changes to this operation across all 15 revisions of this API.