Narrative

Delete a narrative

Changed on

Idempotent: 204 whether or not the element existed. Its id is scrubbed from every other element's links. If-Match works as on PATCH; an element that is not there (never was, or already deleted) is the 204 whatever the tag, since there is no element to be stale against.

delete/api/v2/narrative/{id}

Request

  • Base URL
    https://www.onlyworlds.com
  • Auth
    API key in header API-Key and API key in header API-Pin

Path parameters

id, string uuid required

The narrative's id (a malformed id is a 422).

Headers

If-Match, string

Apply only if the element's change_seq is still this number (quoted or bare; * or no header means unconditional). When the element has moved, 412 precondition_failed with the live element as current beside the envelope; nothing is written and nothing is merged.

X-OW-Agent, string

Send it (any non-empty value) when an AI makes this write: the change is recorded with changed_via declared (a delete's tombstone with deleted_via). An AI seat's key is recorded as seat and MCP as mcp without it. The value is never stored.

X-OW-Client, string

The client's own name for itself (atlas, lantern, sdk): lower case letters, digits and hyphens, 1 to 32 characters, after a trim. It is stored on the element as changed_client (a delete's tombstone as deleted_client), beside the door; it changes no door and no permission. A value outside the rule is ignored (stored as null), never refused.

Response

Deleted (or already absent).

Changes

    • info

      added the optional property allOf[subschema #1: Error]/error/limit to the response with the status

    • info

      added the optional property error/limit to the response with the status

    • info

      added the optional property error/limit to the response with the status

    3 more changes in this revision