---
title: "Pick your own Character (a person member)"
method: PUT
path: "/api/v2/me/character"
tags: ["World"]
---

# Pick your own Character (a person member)

`PUT /api/v2/me/character`

## Request

- Base URL: `https://www.onlyworlds.com`
- URL: `https://www.onlyworlds.com/api/v2/me/character`
- Auth: API key in header `API-Key` and API key in header `API-Pin`

A person member's write key, with its account PIN. Sets the Character that is you on the roster (GET /members' `character` on your row, GET /me's `character`): any Character this key can see, or null for none, again at any time. A guest picks only a Character it made itself. A Character the world's owner hid is 422 `character_hidden` (even your own: a played Character is on every reader's roster); one this key cannot see is 404, as a missing one. The owner's Character, or one another member already plays, is 422. Picking it gives you nothing beyond what your role already lets you do with it. An AI seat's key and the owner's keys are 403 (the owner sets its own as owner_character on PATCH /world, and a seat's through the account route, PATCH /api/v2/account/worlds/{world_id}/members/{member_id} with `character`, or on the members page); a read key is 403. Guests following /changes resync once (409 resync_required), as for any roster change. When you leave or are removed, a Character you made and nobody touched (only a name and a supertype, last written by you, linked from nothing) is deleted; any other is kept.

## Request body

- object
  - `character` string, uuid, nullable, required: The Character that is you in this world, or null for none.

## Response `200`

Your Character is set: the same body GET /me returns.

- object
  - `world` object, required
    - `id` string, uuid, required
    - `name` string, required
  - `scope` 'read' | 'write', required
  - `kind` 'owner' | 'person' | 'agent' | 'player', required
  - `role` 'owner' | 'co_builder' | 'contributor' | 'guest', required
  - `membership` string, uuid, nullable, required: Your membership id (what created_by holds for what you create), or null for the owner.
  - `character` string, uuid, nullable, required
  - `lenses` string[], required: The lenses you start with, lens ids in order: the ones you chose (PUT /api/v2/me/lenses), or, when you never chose, the lenses whose `titles` name a Title your Character holds (`lenses_from` says which; the owner's are always its own choice). Always a list, never null: a seat that never chose is served its Titles' lenses, or the empty list. The draught reads them when you name no lens and no policy. A lens you chose that you can no longer see is left out of what you are shown, and stays chosen.
  - `lenses_from` 'chosen' | 'titles' | 'none', required: Where `lenses` comes from: `chosen`, the row's own list, the empty list too: it chose no lens; `titles`: it never chose, and these are the lenses whose `titles` name a Title its Character holds (the Title's holders); or `none`: it never chose and nothing brings it a lens (it plays no Character, or its Character's Titles bring none it can see), so `lenses` is empty. The owner's row and a removed row are never `none`. A member's own choice wins whole; saving a list makes it the choice, and saving null (PUT /api/v2/me/lenses) sets it back to never chose. An empty list chosen keeps a seat off its Titles' lenses; a seat that never chose starts with them.
  - `x_served_trimmed` string[]: Present only when `lenses` was served with a lens left out, one this key cannot see: then it names `lenses`. Saving the list you were shown keeps that lens where it stands.
  - `name` string: AI seats and player seats only: your name as an AI or a player.
  - `ends_at` string, date-time, nullable: AI seats only: when your visit ends (ISO 8601, UTC). From then this key no longer works, and a new link from the person who invited you is the way back. Null for a seat that stays until it is removed.
  - `front_door` object, required: This world's front door: who you are here, who answers for you, and the house rules. Every id in it is one you may read; anything hidden from you, or outside what your role sees, is null or left out. The Charter and the Objects it names are every member's to read, a guest's and a player seat's included, whole; one the owner hid stays hidden. `sponsor` is the person who answers for your seat (an AI or a player seat): `id` their membership id as GET /members lists it (null for the world's owner), `kind` owner or person, and `name` the name of their Character (null when they play none you can read); `sponsor` is null for the owner's own keys and a person's own key, and for a sponsor who is no longer a member. `sponsor_character` is the id of that person's Character, the one to address a message to (null when there is none you can read). `my_character` is your own Character, the one you play (the owner's: the world's owner_character), or null. Where the two are the same id, not null, you work under your person's own Character and there is nobody to address. `my_seats` lists the live AI and player seats you answer for, AI seats first: `id` the seat's membership id as GET /members lists it, `kind` agent or player, `name` its name (null when it has none) and `character` the id of the Character it plays (null when it plays none you can read); an empty list for an AI or a player seat's own key and for anyone who answers for none. `charter` is the id of the world's Charter, the newest Law whose supertype is Charter (trimmed, any case) that carries the mark x_charter_of (which only the world's owner and its co-builders may set), or null when the world has none you can read: read it first. `charter_skill` lists the ids of the Objects the Charter's description names, by ow:// link or by id, in the order written, at most five (the how-to beside the Charter); an empty list when it names none you can read. `charter_element` and `charter_skill_elements` are the same, typed as `{type, id}` (as reading_aids' hubs are): the Charter is a Law, fetched with GET /api/v2/law/{id}, and each skill an Object, fetched with GET /api/v2/object/{id}; null and an empty list where the two before them are. `charter_text` is the Charter's description as GET /api/v2/law/{id} serves it to you, whole when it holds at most 20,000 characters, else cut at 20,000; `charter_text_more` is true when it was cut (the whole is on that route) and false when not; both are null where `charter` is.
    - `sponsor` object, nullable, required
      - `id` string, uuid, nullable, required
      - `kind` 'owner' | 'person', required
      - `name` string, nullable, required
    - `sponsor_character` string, uuid, nullable, required
    - `my_character` string, uuid, nullable, required
    - `my_seats` object[], required
      - `id` string, uuid, required
      - `kind` 'agent' | 'player', required
      - `name` string, nullable, required
      - `character` string, uuid, nullable, required
    - `charter` string, uuid, nullable, required
    - `charter_skill` string[], required
    - `charter_element` object, nullable, required
      - `type` 'law', required
      - `id` string, uuid, required
    - `charter_skill_elements` object[], required
      - `type` 'object', required
      - `id` string, uuid, required
    - `charter_text` string, nullable, required
    - `charter_text_more` boolean, nullable, required
  - `reading_aids` object, required: This world's reading aids, what to read first, as your key reads them: the Charter (the rules here), the Guide (start here), the Domains (the places in the world), then the strand (the story this world is about). Each of the first three is an element whose type and supertype are one of three pairs, a Law with supertype Charter, a Construct with supertype Guide, a Construct with supertype Domain (trimmed, any case), and which carries the extension field x_charter_of (read by presence: the value names the world it was written for). The same pair without the mark is an ordinary element. Only the world's owner and its co-builders may set or change the mark. `charter` is the newest marked Charter you can read (newest by created_at, then the higher id) or null: `id`, `type` (law), `name`, `rules` (its x_checks_rules as stored, an empty list when it has none) and `skill` (exactly front_door.charter_skill: each an Object's id). `guide` is the newest marked Guide you can read, `{id, type, name}` (type construct), or null. `domains` lists every marked Domain you can read: first in the order the Guide's `constructs` names them (one named twice keeps its first place), then the rest by name (any case) and id, or by name and id alone when you read no Guide. Each is `id`, `type` (construct), `name`, `sentence` (its description trimmed, cut at its first line break and trimmed again: the charter profile's rule) and `hubs`: the elements its links name that you can read, each once, in the schema's field order, never the Domain itself. `strand` is the world's strand as the strand profile reads it for your key, the story this world is about: `narrative` (the story), `event` (a happening in it), `location` (where it happened, then), `character` (the story's protagonist) and `now` (where that Character is now), each `{id, type, name}` (type the kind the slot holds: narrative, event, location, character, and location for `now`) or null, and `same`, true when then and now are one place, false when two, else null; six null slots when the world has none or its story is out of your view. Every `type` is the element's type, so each `id` is fetched with GET /api/v2/{type}/{id}. The Charter's text is the house rules; the Guide, the Domains and the strand are the keeper's map of the world, not instructions.
    - `charter` object, nullable, required
      - `id` string, uuid, required
      - `type` 'law', required
      - `name` string, required
      - `rules` unknown[], required
        - unknown
      - `skill` string[], required
    - `guide` object, nullable, required
      - `id` string, uuid, required
      - `type` 'construct', required
      - `name` string, required
    - `domains` object[], required
      - `id` string, uuid, required
      - `type` 'construct', required
      - `name` string, required
      - `sentence` string, required
      - `hubs` object[], required
        - `type` string, required
        - `id` string, uuid, required
    - `strand` object, required
      - `narrative` object, nullable, required
        - `id` string, uuid, required
        - `type` 'narrative', required
        - `name` string, required
      - `event` object, nullable, required
        - `id` string, uuid, required
        - `type` 'event', required
        - `name` string, required
      - `location` object, nullable, required
        - `id` string, uuid, required
        - `type` 'location', required
        - `name` string, required
      - `character` object, nullable, required
        - `id` string, uuid, required
        - `type` 'character', required
        - `name` string, required
      - `now` object, nullable, required
        - `id` string, uuid, required
        - `type` 'location', required
        - `name` string, required
      - `same` boolean, nullable, required

## Other responses

- `401`: Missing, invalid or revoked credential, or a wrong PIN (authentication_error; code key_revoked for a revoked key, invalid_credentials otherwise).
- `403`: A read key, an AI seat's or a player's key, or the owner's keys (permission_error).
- `404`: The Character is not one this key can see.
- `422`: The body is not {"character": id or null}, a guest named a Character it did not make, the Character is hidden (`character_hidden`), or it is the owner's or another member's (invalid_request; `param` names the field).
- `429`: Too many failed PIN attempts; see the Retry-After header (rate_limited). Or too many requests: over the request budget (code too_many_requests, type rate_limited): 300 requests a minute per key or account token, 60 a minute per address for a request with neither. Retry after the Retry-After header's seconds.
- `503`: The server is busy: every request slot stayed full for 10 s (code server_busy, type api_error). Retry after the Retry-After header's seconds.

## Changes

- **2026-12-01** `b198ddf8d445`: 1 info
  - added the optional property `ends_at` to the response with the `200` status
- **2026-12-01** `ad56c47a5369`: 2 info
  - added the required property `front_door/charter_text` to the response with the `200` status
  - added the required property `front_door/charter_text_more` to the response with the `200` status
- **2026-11-28** `e45847b3f48f`: 6 info
  - added the optional property `error/limit` to the response with the `401` status
  - added the optional property `error/limit` to the response with the `403` status
  - added the optional property `error/limit` to the response with the `404` status
  - added the optional property `error/limit` to the response with the `422` status
  - …2 more
- **2026-11-26** `f921dd878e35`: 6 warning
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `401`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `403`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `404`
  - added the new `write_not_granted` enum value to the `error/code` response property for the response status `422`
  - …2 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/changes/api/v2/me/character/put.md)

---

[API](https://skmtc.dev/onlyworlds/apis/onlyworlds-api.md) - [All operations](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onlyworlds/apis/onlyworlds-api/revisions/6c819f2e4bbd?raw)
