---
title: "news.story.unpublished@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/news.story.unpublished"
updated: null
---

# news.story.unpublished@1 · OpenVibe.Services

HTML: [news.story.unpublished@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/news.story.unpublished)

# NewsStoryUnpublishedPayload `news.story.unpublished@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: news
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/news.story.unpublished.v1.json`](/docs/contracts/news.story.unpublished.json)

news.story.unpublished v1 (OpenVibe.News server/domain/publication.js afterChange, via openvibe-publishing/index-hooks publicationEvent). An editor unpublished a published or retracted story (news.story.publish, stories.js unpublish), in the transaction of the change: it leaves the site, feeds and Search. For subscribers other than Search: canonical URL, publication state and Search-shaped indexability, never the text (Search gets the tombstone from news.index\_document.deleted). Envelope: subject { type: story, id: sty\_…, revision: <published revision> }, visibility internal, priority important (the envelope default; News sets none), actor the editor { type: user } (also when a service acts for a signed-in editor), otherwise the calling service.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `canonical_url` | string \| null | yes | null: the event carries a tombstone, which has no URL. |  |
| `publication_state` | const | yes |  | - `= "unpublished"` |
| `indexability` | object \| null | yes | The gate's decision for the unpublished story (noindex, not\_published), or null when its published revision cannot be read. |  |
| `topic` | string |  | Slug of the story's topic (news\_topics); absent when it has none. | - `minLength 1`<br>- `maxLength 60` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: no-decision

~~~~
{
  "canonical_url": null,
  "publication_state": "unpublished",
  "indexability": null
}
~~~~

Valid: unpublished

~~~~
{
  "canonical_url": null,
  "publication_state": "unpublished",
  "indexability": {
    "decision": "noindex",
    "reasons": [
      "not_published"
    ]
  },
  "topic": "space"
}
~~~~

Rejected: extra-property

~~~~
{
  "canonical_url": null,
  "publication_state": "unpublished",
  "indexability": null,
  "note": "Taken down"
}
~~~~

Rejected: missing-canonical-url

~~~~
{
  "publication_state": "unpublished",
  "indexability": null
}
~~~~

Rejected: wrong-state

~~~~
{
  "canonical_url": null,
  "publication_state": "retracted",
  "indexability": null
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('news.story.unpublished@1', value);   // { valid, errors: [{ path, message }] }
~~~~
