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

# Publish a journey

POST`/workspace/{orgId}/journeys/{id}/publish`

Make a draft live: {"atPublish": "new\_only"} enrolls only people who meet the trigger from now on; "everyone\_now" also enrolls a segment’s members (or an attribute’s holders) at once. Refused while an email step lacks a topic, a From address, a subject or a body, and wherever email cannot be sent yet. Answers the impact and how many entered. Owners and admins.

## Path Parameters

`orgId`

numberrequired

`id`

numberrequired

## Response

200

**cURL**

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

**JavaScript**

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

fetch('https://api.workover.io/workspace/{orgId}/journeys/{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}/journeys/{id}/publish"

response = requests.post(url)

print(response.text)
```
