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

# Publish to WordPress

POST`/project/doc/{docId}/wp/publish`

Publish the document to its WordPress site, creating the post when it has none.

## Path Parameters

`docId`

stringrequired

## Response

201

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/project/doc/{docId}/wp/publish'
```

**JavaScript**

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

fetch('https://api.workover.io/project/doc/{docId}/wp/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/project/doc/{docId}/wp/publish"

response = requests.post(url)

print(response.text)
```
