---
ref: tool:notra/update-post
name: Update or publish a post
company: company:notra
workflows: []
access: [mcp, cli, api]
tags: [capability:publish-content, category:geo, has:api, has:cli, has:mcp]
docs: https://docs.usenotra.com/api-reference/content/update-a-single-post
updated: 2026-09-28
---

# Update or publish a post

Changes a post's title, slug, markdown or status, and publishes it when the status is set to `published`.

Note: Sending markdown re-renders the stored HTML. Slugs are accepted only for blog posts and changelogs.

## Set up

Use the first option your agent supports.

### MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

```json
{ "mcpServers": { "notra": { "url": "https://mcp.usenotra.com/mcp" } } }
```

Call the MCP tool `update_post`.

Server URL: https://mcp.usenotra.com/mcp

### CLI (official)

Install the command and sign in with it, then confirm it runs.

```sh
npm i -g notra
notra --version
```

Run `notra posts update`.

### API (official)

- Base URL: https://api.usenotra.com
- Endpoint: `PATCH /v1/posts/{postId}`
- Auth: send the header `Authorization: Bearer $NOTRA_API_KEY`
- Docs: https://docs.usenotra.com/api/authentication

Before anything else, confirm access with the cheapest read-only call, like a list or a search. Never send or change anything to test access.

## Rules

- Ask the user before anything that sends messages, costs money, or changes data, and say how many records it touches. One approval covers a batch the user has seen.
- Never print API keys.
