---
title: "Restore a deleted newsletter email"
method: PATCH
path: "/newsletter-subscription/restore/{Id}"
tags: ["newsletter"]
---

# Restore a deleted newsletter email

`PATCH /newsletter-subscription/restore/{Id}`

## Request

- Base URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1`
- URL: `https://staging.api-golang.boilerplate.hng.tech/api/v1/newsletter-subscription/restore/{Id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/docs/newsletter-subscription/restore/:Id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Restore a deleted newsletter email by its ID.

## Path parameters

- `Id` string, uuid, required

## Response `200`

Newsletter email restored successfully

- SuccessResponseSchema
  - `status` string
  - `status_code` integer: The HTTP status code. Usually 200 , 201, 204 etc
  - `message` string: A basic message describing a request was processed successfully. example: "Successfully"

## Other responses

- `401`: Authentication error
- `404`: Email not found
- `500`: Server error

## Changes

- **2024-08-08** `fc17737cd0c3`: 1 info
  - endpoint added
- **2024-08-08** `0e62b1539f9c`: 1 breaking
  - api path removed without deprecation
- **2024-08-07** `c8383e0fbfb5`: 1 info
  - endpoint added
- **2024-08-07** `06cecc2ac126`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/changes/newsletter-subscription/restore/:Id/patch.md)

---

[API](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger.md) - [All operations](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/llms.txt) - [OpenAPI document](https://skmtc.dev/hngprojects/apis/kimiko-golang-swagger/revisions/2d1d3ed96bb9?raw)
