Patch World
Changed onThe owner, or a co-builder (a person's key or an AI seat's): a co-builder may send every writable field but owner_character, which stays the owner's, as do the switches of who may read the world (public_read and the public page are set on the website; a co-builder sending one is 403 owner_only). A contributor's or a guest's key is 403 owner_only. Writable: name, description, image_url, time_basic_unit, time_format_names, time_format_equivalents, time_range_min, time_range_max, time_range_current, length_unit, mass_unit, distance_unit (free-text unit labels, at most 64 characters, trimmed; "" clears), and owner_character (a Character id in this world, or null: the owner's "this Character is me", shown by GET /members and GET /me).
Extension keys: any key starting x_, atlas_ or shadow_ is a tool's own setting on the world, served at the top level of this body and kept as given (any JSON value; at most 65536 bytes in all, counted as compact UTF-8 JSON, the same cap as an element's extensions). An object or array in one may sit at most 200 levels deep, the World record as the first. What a key means is its profile's, published in schema-dist (x_names, for one: the world's own words for the 22 types). Two keys are served by their profiles' rule: x_strand (the strand profile: {narrative, event, location}, only narrative required) and x_calendar (the calendar profile: the id of the element that carries the world's calendar) are each left out for a reader who may not read the element it names, in any shape the value takes. PATCH sets each key it names and null removes one; the owner or a co-builder may write them.
origin: where the world first came from, as the tool that made it from a folder wrote it (the folder format's provenance lines, 4.2): source {server, world, at} and producer {tool, version, input}, each an object or null (null: not known). Written as the plain keys source and producer on the account's world create (POST /api/v2/account/worlds) or on PATCH, by the owner or a co-builder, and kept as given: the server checks only that each is an object or null, that no object or array in it sits more than 200 levels deep (the World record as the first), and that source.world and producer.tool are strings when present. origin itself is not writable. The owner's download keeps writing its own source line beside it.
Request
- Base URLhttps://www.onlyworlds.com
- AuthAPI key in header API-Key and API key in header API-Pin
Request body
Only the fields to change. Any other key, a read-only one included, is a 422, except the prefixed extension keys.
The names of the calendar's steps, e.g. ['Day', 'Week', 'Month', 'Year'].
How many time_basic_unit each step of time_format_names holds, in the same order, e.g. [1, 7, 30, 365] when the basic unit is Day.
The unit every element date and duration counts in (e.g. 'Year', 'Day'): a birth_date of 1200 is 1200 of these.
The earliest point of the world's timeline, in time_basic_unit.
The latest point of the world's timeline, in time_basic_unit.
The world's present moment, in time_basic_unit.
Free-text label for the numbers counted in the world's length units; nothing converts.
Free-text label for the numbers counted in the world's mass units; nothing converts.
Free-text label for the numbers counted in the world's distance units; nothing converts.
The owner's "this Character is me": a Character id in this world, or null.
{server, world, at}: the server and world the folder was exported from, and when. Kept as given. Served as origin.source; null clears it. An object, or null; source.world a string when present. An object or array in it may sit at most 200 levels deep, the World record as the first.
{tool, version, input}: the tool that made the folder, its version, and what it made it from. Kept as given. Served as origin.producer; null clears it. An object, or null; producer.tool a string when present. An object or array in it may sit at most 200 levels deep, the World record as the first.
Response
The updated world.
The world named by the credential.
The names of the calendar's steps, e.g. ['Day', 'Week', 'Month', 'Year'].
How many time_basic_unit each step of time_format_names holds, in the same order, e.g. [1, 7, 30, 365] when the basic unit is Day.
The unit every element date and duration counts in (e.g. 'Year', 'Day'): a birth_date of 1200 is 1200 of these.
The earliest point of the world's timeline, in time_basic_unit.
The latest point of the world's timeline, in time_basic_unit.
The world's present moment, in time_basic_unit.
Free-text label for the numbers counted in the world's length units; nothing converts.
Free-text label for the numbers counted in the world's mass units; nothing converts.
Free-text label for the numbers counted in the world's distance units; nothing converts.
Whether the world's owner opened it to the public: where the public reader is on, anyone reads it with no key (?world=). Set by the owner on the world page; not writable here.
Whether a Narrative written through an AI seat is narrated by that seat's own Character, as a guest's is. Set by the world's owner on the world page; not writable here.
Whether an AI seat's writes land as proposals: on, a seat's PATCH, PUT, link edit or /bulk item on an existing element answers 202 with {"proposal": ...} and the element does not change until the owner or a co-builder accepts it; its new elements carry x_review_proposed and wait in the queue until a keeper settles them (POST /api/v2/{type}/{id}/review); it deletes only what it made. A person's key, through MCP or not, is never held. Set by the world's owner on the world page; not writable here.
The owner's "this Character is me": a Character id in this world, or null.
The world's public page address, onlyworlds.com/w/<slug>: null when the world has no page (a slug exists only while the page is on). Also a keyless ?world= value. Set by the owner on the world page; not writable here.
The world's public page as its owner set it: on, and the levers (palette, one of midnight, daylight, parchment, brass, dusk, or null for the house's; hero, one plain line; sections, the types shown in their order, empty for all in the house order; pin, one element's id, or null; index, always false for now: search engines stay off). Every key is present with the page off. Set by the owner on the world page; not writable here.
origin: where the world first came from, as the tool that made it from a folder wrote it (the folder format's provenance lines, 4.2): source {server, world, at} and producer {tool, version, input}, each an object or null (null: not known). Written as the plain keys source and producer on the account's world create (POST /api/v2/account/worlds) or on PATCH, by the owner or a co-builder, and kept as given: the server checks only that each is an object or null, that no object or array in it sits more than 200 levels deep (the World record as the first), and that source.world and producer.tool are strings when present. origin itself is not writable. The owner's download keeps writing its own source line beside it.
Moves when the world's own fields change, not on element writes.
How many elements this reader may read, in all and per type, counted as it reads them: the owner and a co-builder every element, a contributor the world less what the owner hid, a guest its own slice, a keyless read what the public reads. On every GET of the world; the PATCH answer leaves it out.
Changes
- info
added the optional property
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
2 more changes in this revision
- info