Construct

Add or remove ids on one of a construct's multi-link fields

Changed on
post/api/v2/construct/{id}/links/{field}

Request

  • Base URL: https://www.onlyworlds.com
  • URL: https://www.onlyworlds.com/api/v2/construct/{id}/links/{field}
  • Auth: API key in header API-Key and API key in header API-Pin

Path parameters

idstring uuid required

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

field'characters' | 'objects' | 'locations' | 'species' | 'creatures' | 'institutions' | 'traits' | 'collectives' | 'zones' | 'abilities' | 'phenomena' | 'languages' | 'families' | 'relations' | 'titles' | 'constructs' | 'events' | 'narratives' required

A multi-link field of this type (anything else is a 422).

Headers

If-Matchstring

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-Agentstring

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

Request body

addstring[]
removestring[]

Response

Updated: the full element.

type'construct' required
idstring uuid required
namestring required

Name of the element.

descriptionstring required

Any kind of details about the element.

supertypestring required

The top level category to which the element belongs.

subtypestring required

The sub level category through which the element is further classified.

image_urlstring required

URL to an image representing the element.

rationalestring required

The internal reasoning, structure, or justification of how the construct functions or makes sense within the world.

historystring required

The historical development or ideation of the construct, and its place in wider historical contexts.

statusstring required

The present condition or operational status of the construct.

reachstring required

The geographic, cultural, or political extent of the construct's influence.

start_dateinteger nullable required

The point in time when the construct began or was first established (uses world's TIME definition).

end_dateinteger nullable required

The point in time when the construct ceased to function or lost its meaning.

founderstring uuid nullable required

Character who conceived or initiated the construct. A Character's id.

custodianstring uuid nullable required

Institution maintaining, enforcing, or exploiting the construct. An Institution's id.

charactersstring[] required

Characters relevant to the construct. Character ids.

objectsstring[] required

Objects relevant to the construct. Object ids.

locationsstring[] required

Locations relevant to the construct. Location ids.

speciesstring[] required

Species relevant to the construct. Species ids.

creaturesstring[] required

Creatures relevant to the construct. Creature ids.

institutionsstring[] required

Institutions relevant to the construct. Institution ids.

traitsstring[] required

Traits relevant to the construct. Trait ids.

collectivesstring[] required

Collectives relevant to the construct. Collective ids.

zonesstring[] required

Zones relevant to the construct. Zone ids.

abilitiesstring[] required

Abilities relevant to the construct. Ability ids.

phenomenastring[] required

Phenomena relevant to the construct. Phenomenon ids.

languagesstring[] required

Languages relevant to the construct. Language ids.

familiesstring[] required

Families relevant to the construct. Family ids.

relationsstring[] required

Relations relevant to the construct. Relation ids.

titlesstring[] required

Titles relevant to the construct. Title ids.

constructsstring[] required

Other constructs relevant to the construct. Construct ids.

eventsstring[] required

Events relevant to the construct. Event ids.

narrativesstring[] required

Narratives relevant to the construct. Narrative ids.

created_atstring date-time required
updated_atstring date-time required
change_seqinteger required

The world change sequence at this element's last write.

created_bystring uuid nullable required

The world membership that created this element, or null when the world's owner did.

changed_bystring uuid nullable required

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.

changed_via'seat' | 'mcp' | 'declared' | 'api' | 'v1' | 'sync' | 'server' | 'null' nullable required

The door of the last change: seat (an agent seat), mcp (the MCP server), declared (the request sent an X-OW-Agent header), api, v1, sync (the mobile app's sync) or server (the server, on its own behalf). The first three mean an agent made it. Null: no write since doors were recorded.

known_oftrue

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; every other field reads as unset (text "", numbers and single links null, multi links [], created_by, changed_by and changed_via null, no extension fields), its files are 404, and search matches only its name and description. 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.

Changes

    • warning

      added the new character_taken enum value to the // response property for the response status

    • warning

      added the new character_taken enum value to the / response property for the response status

    • warning

      added the new character_taken enum value to the / response property for the response status

    • warning

      added the new character_taken enum value to the / response property for the response status

    • warning

      added the new character_taken enum value to the / response property for the response status

    • warning

      added the new character_taken enum value to the / response property for the response status

    • warning

      added the new character_taken enum value to the / response property for the response status

    • warning

      added the new character_taken enum value to the / response property for the response status

    • warning

      added the new world_full enum value to the // response property for the response status

    • warning

      added the new world_full enum value to the / response property for the response status

    • warning

      added the new world_full enum value to the / response property for the response status

    • warning

      added the new world_full enum value to the / response property for the response status

    • warning

      added the new world_full enum value to the / response property for the response status

    • warning

      added the new world_full enum value to the / response property for the response status

    • warning

      added the new world_full enum value to the / response property for the response status

    • warning

      added the new world_full enum value to the / response property for the response status

    • info

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

    • info

      added the optional property to the response with the status