Add or remove ids on one of a narrative's multi-link fields
Changed onRequest
- Base URLhttps://www.onlyworlds.com
- AuthAPI key in header API-Key and API key in header API-Pin
Path parameters
The narrative's id (a malformed id is a 422).
A multi-link field of this type (anything else is a 422).
Headers
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.
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.
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.
Request body
Atomic add/remove on one multi-link field. Adds dedupe; removes of absent ids are tolerated. Added ids must exist in this world.
Response
Updated: the full element.
A narrative as the API returns it. Single links are an id or null, multi links an array of ids; extension fields appear inline. ?fields= returns only the named keys, and ?expand= replaces the named links' ids with ElementStub objects.
Name of the element.
Any kind of details about the element.
The top level classification of the element within its type.
The sub level classification through which the element is further sorted within its type.
URL to an image representing the element.
Content of the narrative, as told or remembered.
Outcomes or legacy of the narrative.
Date when the narrative is first told or recorded, in the world's time unit (World time_basic_unit); the span it recounts lives on its events.
Date when the narrative stops being told, in the world's time unit (World time_basic_unit); empty while it is still told.
Position of this narrative within a parent narrative's sequence.
Larger narrative that this narrative takes place in. A Narrative's id.
Primary character of the narrative. A Character's id.
Opposing character of the narrative. A Character's id.
Character credited with telling or recording the narrative. A Character's id.
Institution that preserves or curates the narrative. An Institution's id.
Events relevant to the narrative. Event ids, as stored (a write keeps each id once).
Characters relevant to the narrative. Character ids, as stored (a write keeps each id once).
Objects relevant to the narrative. Object ids, as stored (a write keeps each id once).
Locations relevant to the narrative. Location ids, as stored (a write keeps each id once).
Species relevant to the narrative. Species ids, as stored (a write keeps each id once).
Creatures relevant to the narrative. Creature ids, as stored (a write keeps each id once).
Institutions relevant to the narrative. Institution ids, as stored (a write keeps each id once).
Traits relevant to the narrative. Trait ids, as stored (a write keeps each id once).
Groups relevant to the narrative. Collective ids, as stored (a write keeps each id once).
Zones relevant to the narrative. Zone ids, as stored (a write keeps each id once).
Abilities relevant to the narrative. Ability ids, as stored (a write keeps each id once).
Phenomena relevant to the narrative. Phenomenon ids, as stored (a write keeps each id once).
Languages relevant to the narrative. Language ids, as stored (a write keeps each id once).
Families relevant to the narrative. Family ids, as stored (a write keeps each id once).
Relationships relevant to the narrative. Relation ids, as stored (a write keeps each id once).
Titles relevant to the narrative. Title ids, as stored (a write keeps each id once).
Constructs relevant to the narrative. Construct ids, as stored (a write keeps each id once).
Laws relevant to the narrative. Law ids, as stored (a write keeps each id once).
The world change sequence at this element's last write.
The world membership that created this element, or null when the world's owner did. Members only: absent for the public, as doors is.
The world membership that last changed this element, or null when the world's owner (or the server) did, or no write has touched it since doors were recorded: null with a non-null changed_via other than server is the world owner's write (the owner is the account, not a membership); null with server is the server's own write; null in both is a row from before writers were recorded. An id whose row on GET /members has status: removed is a former member's write: the id outlives the membership (removed, left, or its account deleted), and is never the owner's. Members only: absent for the public, as doors is.
The door of the last change: seat (an AI seat), mcp (the MCP server), declared (the request sent an X-OW-Agent header), api, v1, sync (the mobile app's sync), site (the owner on onlyworlds.com) or server (the server, on its own behalf). The first three are the doors the platform marks as an AI's. Null: no write since doors were recorded. Members only: absent for the public, as doors is.
The name the client gave itself on the last change, in its X-OW-Client header (atlas, lantern, sdk): the client's claim, never proof, and it changes nothing about the door the change came through (that is changed_via). Null: no name sent, a value outside the rule, a server write, or a change from before names were recorded. Members only: absent for the public, as doors is.
Where this element has been: one key per tool that wrote it, each with the time of that tool's last write (the same string as updated_at after that write, so the newest key's time is this body's updated_at). The key is the name the client gave in its X-OW-Client header (atlas, lantern) when it sent one, else the door the write came through (api, seat, mcp, server and the other changed_via words), never both for one write. At most 16 keys: a new one past that drops the key with the oldest time. Members only: served to the world's owner and every member (co-builders, contributors, guests and AI seats); absent for the public, absent on a known-of stub, and never in the change feed or a world file. Null: no write since the history was recorded. A write carrying it is accepted and the key ignored.
Present, and true, only on an element this reader knows of but does not see whole: a guest or player reaches it only because its own Character's sheet links to it (one step out). Such a row keeps id, type, name, description, supertype, subtype, image_url, created_at, updated_at and change_seq, and its type's public fields (none for a narrative); every other field reads as unset (text "", numbers and single links null, multi links [], created_by, changed_by and changed_via null, no doors, no extension fields), its files are 404, and search matches only what it keeps. Absent: the element is whole. Any other grant (it names the reader's Character, the reader knows it, it is on the roster, the reader made it) makes it whole; a hidden element is never even a stub, whatever its public fields. Read-only: a write carrying known_of is refused (known_of_not_writable).
Present, and true, only when the world's owner or a co-builder hid this element and this reader still sees it: the owner, a co-builder, a key the owner minted, or the member who made it (to every other reader it does not exist). Absent otherwise, never false. A world file (the site's download) never carries it. Sent back in an update, it is ignored: hide and unhide an existing element through PUT and DELETE /{type}/{id}/hidden. Sent on a create, hidden: true creates the element hidden (the write body's hidden).
Served only, on a message (a Narrative with supertype Message, the message profile): present when one or more ids in characters or narrator were left out because this reader may not see them, and it names those fields, characters before narrator; never which ids, never how many. A message addressed only to Characters hidden from this reader is served characters: [] with ["characters"], so it reads "to someone hidden from you", never "to everyone" (an empty characters without this key still addresses every member). A hidden sender is served narrator: null with ["narrator"]. Absent when nothing was left out, and for the keyless public reader. The world's owner, its co-builders and keys the owner minted read every id, so their own reading never carries it; they meet it when they read as someone else: with ?as=, and in a Character's context read with mode=voice, whose bodies are served as she reads them. An answer that carries it is sent Cache-Control: private, no-store. Never written: a body carrying it is a 422 (served_trimmed_not_writable) on every write, /bulk item by item.
Changes
- info
added the optional property
allOf[subschema #1: Error]/error/limitto the response with the status - info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status
5 more changes in this revision
- info