# publish

URL: /business/nouns/review/publish · Id: `verb:Review.publish` · Call: `await $.Review.publish({ … })` (SDK) or the `do` tool at `https://api.sb/mcp`. Inputs says what to pass, Outputs what returns, When it waits who approves.

> Publish shows a Review on the Startup’s Pages with its rating counted, whatever the rating.

Publish shows a [Review](/business/nouns/review) on the [Startup](/business/nouns/startup)’s [Pages](/business/nouns/page) with its rating counted, whatever the rating.

## Inputs
| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `review` | [Review](/business/nouns/review) | Yes | The Review to show. |

## Outputs
| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `review` | [Review](/business/nouns/review) | Yes | The Review, now `published`. |

## Effects
- Emits [`Review.published`](/business/events/Review.published).
- Performed by the [Marketing Lead](/agents/marketing/marketing-lead).
- Two-way: it runs at once, in the `try`, `send` and `do` modes.
- Adds its rating to the Product’s average on every Page that shows one.

## Refuses when
| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | [Review.publish](/business/nouns/review/publish) |

## When it waits
| Gate | Default |
| --- | --- |
| Decision class | Medium: two-way, visible |
| [Delay window](/systems/trust-and-governance/controls/one-way-windows) | 1 business hour, in which a watcher can pause, redirect or cancel it; then it runs. |
| Limit | The call [Limit](/business/nouns/limit) of the [Permission](/business/nouns/permission) it runs under. |
| Over the Limit | It waits `pending` for an [Approval](/business/nouns/approval) from the [Founder](/agents/founding/founder). Approved, it runs; refused, it ends `refused` with [`limit-exceeded`](/code/api/errors/limit-exceeded); unanswered by its deadline, it ends `canceled`. |

## Example

**Ask**

```text
Publish the latest review.
```

**API**

```bash
curl -X POST https://api.sb/patentpad.com/reviews/review_1/publish \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/patentpad.com",
  "review": {
    "$id": "https://api.sb/patentpad.com/reviews/review_1",
    "$type": "Review",
    "rating": 1,
    "status": "submitted"
  },
  "action": {
    "$id": "https://api.sb/patentpad.com/actions/action_1",
    "operation": "Review.publish",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/patentpad.com/actions/action_1"
  }
}
```

**SDK**

```ts
import { $ } from 'startup-builder'

const review = await $.Review.publish({ review: 'review_1' })
```

**CLI**

```bash
npx startup-builder do Review.publish --json '{"review":"review_1"}'
```

**MCP**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Review.publish({ review: 'review_1' })"
  }
}
```