> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Publish an email

POST`/workspace/{orgId}/email/templates/{id}/publish`

Publishes the draft as the next version: {"revision", "note"?, "ignoreChecks"?}. Refused with a 422 listing the failing checks (as POST .../email/check finds them) unless "ignoreChecks": true; a 409 when the draft moved on or nothing changed since the published version. Owners and admins.

## Path Parameters

`orgId`

numberrequired

`id`

numberrequired

## Response

200

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/workspace/{orgId}/email/templates/{id}/publish'
```

**JavaScript**

```javascript
const options = {
  method: 'POST'
};

fetch('https://api.workover.io/workspace/{orgId}/email/templates/{id}/publish', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/email/templates/{id}/publish"

response = requests.post(url)

print(response.text)
```
