{"openapi":"3.1.0","info":{"title":"clubsandwich api","description":"The catch-all Game API for clubsandwich, a private-server reimplementation of the Rec\nRoom backend: everything the client calls that has not been split out into its own\nworker yet. Today that is config, the friend graph, inventions, saved photos,\nplayer events, reputation and the assorted sinks the client hits while loading.\nRelationships, inventions, images and player events are D1-backed; several\nendpoints are still stubs, noted per route.\n\nExpect this surface to shrink. Paths that also exist on a dedicated worker (avatar,\nequipment, consumables and objectives on `econ`) are already served there — the\nclient calls that host and the copy here is a stub, which each route says.","version":"1.0.0"},"servers":[{"url":"https://api.clubsandwich.dev","description":"Production"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"An `access_token` from the auth worker’s `POST /connect/token`."}}},"paths":{"/api/config/v1/amplitude":{"get":{"operationId":"getApiConfigV1Amplitude","tags":["Config"],"summary":"Analytics keys","description":"The Amplitude / RudderStack / StatSig keys the client initialises its analytics with. Served with the same live Rec Room client keys FemRec used — a blank StatSigKey makes the 2023 client log \"StatSig is disabled\" and skip the Split Tests UI entirely.","responses":{"200":{"description":"Analytics / Statsig client keys","content":{"application/json":{"schema":{"type":"object","properties":{"AmplitudeKey":{"type":"string"},"UseRudderStack":{"type":"boolean"},"RudderStackKey":{"type":"string"},"UseStatSig":{"type":"boolean"},"StatSigKey":{"type":"string"},"StatSigEnvironment":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["AmplitudeKey","UseRudderStack","RudderStackKey","UseStatSig","StatSigKey","StatSigEnvironment"]}}}}}}},"/api/config/v1/azurespeech":{"get":{"operationId":"getApiConfigV1Azurespeech","tags":["Config"],"summary":"Speech-to-text config","description":"Azure Speech credentials for the client’s voice transcription. `Enabled` is false here, so the key and region are never used.","responses":{"200":{"description":"Speech config, disabled","content":{"application/json":{"schema":{"type":"object","properties":{"Key":{"type":"string"},"Region":{"type":"string"},"Enabled":{"type":"boolean"}},"required":["Key","Region","Enabled"]}}}}}}},"/api/config/v1/backtrace":{"get":{"operationId":"getApiConfigV1Backtrace","tags":["Config"],"summary":"Crash reporter config","description":"Budget, sampling and log-capture settings for the client’s Backtrace crash reporter. Nothing on this server receives the reports.","responses":{"200":{"description":"Crash reporter settings","content":{"application/json":{"schema":{"type":"object","properties":{"ReportBudget":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"FilterType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SampleRate":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LogLineCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CaptureNativeCrashes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AMRThresholdMS":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"MessageCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"MessageRegex":{"type":"string"},"VersionRegex":{"type":"string"}},"required":["ReportBudget","FilterType","SampleRate","LogLineCount","CaptureNativeCrashes","AMRThresholdMS","MessageCount","MessageRegex","VersionRegex"]}}}}}}},"/api/config/v2":{"get":{"operationId":"getApiConfigV2","tags":["Config"],"summary":"The main client config blob","description":"The large feature-switch / endpoint config the client reads at startup. Served from a static asset, except `ShareBaseUrl`, which is templated from the deploy-time base domain so share links point at this deployment.","responses":{"200":{"description":"The client config","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The static client config, plus a ShareBaseUrl templated from the deploy domain"}}}}}}},"/api/versioncheck/v4":{"get":{"operationId":"getApiVersioncheckV4","tags":["Config"],"summary":"Client version check","description":"Whether the client build is current. Compares the client’s `?v=` build against the builds we serve (`SUPPORTED_GAME_VERSIONS`): `VersionStatus` is 0 when the client is on one of them, 1 when it is on some other build.","responses":{"200":{"description":"Version status","content":{"application/json":{"schema":{"type":"object","properties":{"VersionStatus":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = current, 1 = client on a different build","example":12345},"UpdateNotificationStage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsVersionIslanded":{"type":"boolean"},"IsCrossPlayDisabled":{"type":"boolean"}},"required":["VersionStatus","UpdateNotificationStage","IsVersionIslanded","IsCrossPlayDisabled"]}}}}}}},"/api/versioncheck/islandedversions":{"get":{"operationId":"getApiVersioncheckIslandedversions","tags":["Config"],"summary":"Islanded client builds","description":"The builds that are islanded off into their own matchmaking pool. This server never islands a build, so the list is always empty.","responses":{"200":{"description":"Always an empty list","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/gameconfigs/v1/all":{"get":{"operationId":"getApiGameconfigsV1All","tags":["Config"],"summary":"Per-game configuration","description":"An opaque static catalog of per-game settings. The 2023-era build (`20230414` and same-day point releases) gets the 2023 catalog; every newer build — and any request with no readable token version — gets the 2025 catalog (this stack’s 2025/2026 players). The build is read from the token’s `rn.ver` claim. Served with `Cache-Control: no-store` so BestHTTP never keeps a stale catalog after a deploy.","responses":{"200":{"description":"The game config catalog for the caller’s build","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"/statsigUserProperties":{"post":{"operationId":"postStatsigUserProperties","tags":["Config"],"summary":"Statsig user properties","description":"Despite the name, the reference server returns no properties here — just `success`, its `StatsigEnabled` config value as a bool. Kept false with UseStatSig off. 2026 announcement gating is gameconfig-based (`Retention.Coordinate.ReceiveAnnouncement`).","responses":{"200":{"description":"The fixed `StatsigEnabled` flag","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"The Statsig-enabled flag (true)"}},"required":["success"]}}}}}}},"/statsig/v1/initialize":{"post":{"operationId":"postStatsigV1Initialize","tags":["Config"],"summary":"Statsig initialize","description":"The feature gates, dynamic configs and layers the client evaluates, keyed by `base64(sha256(name))`. Starts from a capture of Rec Room’s live Statsig answer, with the admin console’s overrides applied. Reached only through the client patches, which repoint `https://statsigapi.net/v1` at `/statsig/v1`.","responses":{"200":{"description":"A Statsig initialize response","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"/voice/config":{"get":{"operationId":"getVoiceConfig","tags":["Config"],"summary":"Voice-moderation vendor credentials","description":"Credentials the client uses to talk to the voice-moderation vendor directly, so it can moderate audio before it reaches other players. Both fields are empty strings here — no vendor is wired up — and the client treats that as \"voice moderation is off\" and continues. The keys MUST be present and strings; a missing key or null trips the client’s parser and silently aborts voice setup, which is why the party voice call button does nothing when this returns `{}`.","responses":{"200":{"description":"`{ AccountId: \"\", ApiKey: \"\" }`","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"/aimoderation/roomie/enabledForPlayer":{"get":{"operationId":"getAimoderationRoomieEnabledForPlayer","tags":["Config","Roomie AI"],"summary":"May Roomie’s AI run for the caller?","description":"A bare JSON boolean: true only for an account on the Roomie AI allowlist (`ROOMIE_AI_ACCOUNT_IDS`, account 2 unless overridden), false for everyone else. The 2026 client reads it after opening a realtime session and shows \"RoomieAI is currently unavailable\" for anything that is not an answer. 401 without a bearer token.","responses":{"200":{"description":"A bare boolean","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/aimoderation/roomie/conversation":{"post":{"operationId":"postAimoderationRoomieConversation","tags":["Config","Roomie AI"],"summary":"Accept a finished Roomie conversation","description":"Posted (form field `conversation`) after a Roomie conversation for review. Nothing here reviews conversations, so it is accepted and dropped without being stored or logged. 401 without a bearer token.","responses":{"200":{"description":"`{}`","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"/api/admin/v1/ping":{"get":{"operationId":"getApiAdminV1Ping","tags":["Admin"],"summary":"Admin health ping","responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"/api/relationships/v2/get":{"get":{"operationId":"getApiRelationshipsV2Get","tags":["Social"],"summary":"The caller’s relationships","description":"Every relationship the signed-in player has, projected from their point of view — a bare array. `None` rows are included: that is how an unfriending, or an ignore/mute of someone you were never friends with, is recorded, and they still carry the caller’s favorited/ignored/muted flags.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s relationships","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/mutualfriends":{"get":{"operationId":"getApiRelationshipsMutualfriends","tags":["Social"],"summary":"Friends in common with another player","description":"The accounts the caller and `id` are both friends with — a bare array, ascending by account id and capped at 100. Only real friendships count; pending requests on either side are ignored.\n\nAnswers an empty array rather than an error for the degenerate cases: no target id, an id of 0 or below, or the caller asking for mutuals with themselves. Mutual ids with no account row are dropped, so the list can be shorter than the intersection.\n\nEach entry is a trimmed account card. `ProfileImage` is an empty string, never null, when the account has no image.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The shared friends; empty when there are none","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"AccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Username":{"type":"string"},"DisplayName":{"type":"string"},"ProfileImage":{"type":"string","description":"The image name; an empty string when the account has none"}},"required":["AccountId","Username","DisplayName","ProfileImage"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/messages/v2/send":{"post":{"operationId":"postApiMessagesV2Send","tags":["Social"],"summary":"Send a message to another player","description":"Pushes a `MessageReceived` notification to `ToPlayerId` carrying the message — the same frame the Coach broadcast sends (see the `notify` worker’s `coachMessageAll`), except `FromPlayerId` is the caller rather than the Coach account and it goes to one player. The hub queues it when the recipient is offline, so it arrives on their next connect.\n\nPersisted first, then pushed from the stored record, so the frame carries the stored id and the recipient reads the same message back from `GET /api/messages/v2/get` whether or not the push reached them. The sender is the caller (from the bearer token), NOT a body field. `Type` is a Message-model type (a different enum from `NotificationType`) passed through unmapped, defaulting to 0; `Data` is the payload and is commonly empty.\n\nAnswers the same `{ success, error }` envelope as the report / warning writes, `error` an empty string on success. A hub failure is still reported honestly as a 500 with `success: false` — the message is in their inbox, but the caller asked to send one and nothing was delivered.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The message","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"ToPlayerId":{"type":"string","description":"Account id of the recipient"},"Type":{"description":"The Message-model type, e.g. `10`. Passed through unmapped; defaults to 0","type":"string"},"Data":{"description":"The message payload; often empty","type":"string"}},"required":["ToPlayerId"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"ToPlayerId":{"type":"string","description":"Account id of the recipient"},"Type":{"description":"The Message-model type, e.g. `10`. Passed through unmapped; defaults to 0","type":"string"},"Data":{"description":"The message payload; often empty","type":"string"}},"required":["ToPlayerId"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No `ToPlayerId` in the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"500":{"description":"The notifications hub could not be reached","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/messages/v1/sendMultiple":{"post":{"operationId":"postApiMessagesV1SendMultiple","tags":["Social"],"summary":"Send one message to several players","description":"The bulk form of `POST /api/messages/v2/send`: pushes the same `MessageReceived` frame to every id in `ToPlayerIds`, each addressed to its own recipient (`ToPlayerId` differs per frame — the payload is not shared). Same sender rule: the caller’s bearer token, never a body field. Stored the same way too — one notification per recipient, each with its own id.\n\nThe body is JSON rather than the single send’s form encoding, so `Type` is a number (still an unmapped Message-model type, defaulting to 0) and `Data` a string, commonly empty. Repeated ids are delivered once.\n\nAnswers the same `{ success, error }` envelope. Delivery is attempted for every recipient even after one fails, but a hub failure for ANY of them is reported honestly as a 500 — the envelope has no room to say which. Each recipient gets a stored notification of their own, with its own id, so an undelivered one is still waiting in that player’s inbox.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The message and its recipients","content":{"application/json":{"schema":{"type":"object","properties":{"ToPlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"description":"Account ids of the recipients"},"Type":{"description":"The Message-model type, e.g. `20`. Passed through unmapped; defaults to 0","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Data":{"description":"The message payload; often empty","type":"string"}},"required":["ToPlayerIds"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No usable id in `ToPlayerIds`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"500":{"description":"The notifications hub could not be reached","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/relationships/v2/sendfriendrequest":{"get":{"operationId":"getApiRelationshipsV2Sendfriendrequest","tags":["Social"],"summary":"Send a friend request","description":"Offer friendship to another player. A new request also lands in the target’s inbox as a `FriendInvite` message (type 4), pushed as `MessageReceived` — that message, not the `RelationshipChanged` frame, is what the client shows them. Re-sending an outstanding request is a no-op and notifies nobody.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV2Sendfriendrequest","tags":["Social"],"summary":"Send a friend request","description":"Offer friendship to another player. A new request also lands in the target’s inbox as a `FriendInvite` message (type 4), pushed as `MessageReceived` — that message, not the `RelationshipChanged` frame, is what the client shows them. Re-sending an outstanding request is a no-op and notifies nobody.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v2/acceptfriendrequest":{"get":{"operationId":"getApiRelationshipsV2Acceptfriendrequest","tags":["Social"],"summary":"Accept a friend request","description":"Turn a pending incoming request into a friendship. The requester is told with a `FriendRequestAccepted` message (type 40) pushed as `MessageReceived`. Accepting nothing pending is a no-op and notifies nobody.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV2Acceptfriendrequest","tags":["Social"],"summary":"Accept a friend request","description":"Turn a pending incoming request into a friendship. The requester is told with a `FriendRequestAccepted` message (type 40) pushed as `MessageReceived`. Accepting nothing pending is a no-op and notifies nobody.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v2/removefriend":{"get":{"operationId":"getApiRelationshipsV2Removefriend","tags":["Social"],"summary":"Unfriend, or cancel/decline a request","description":"All three are the same operation. The row is kept as a `None` relationship so the per-side favorited/ignored/muted flags survive.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV2Removefriend","tags":["Social"],"summary":"Unfriend, or cancel/decline a request","description":"All three are the same operation. The row is kept as a `None` relationship so the per-side favorited/ignored/muted flags survive.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v2/addfriend":{"get":{"operationId":"getApiRelationshipsV2Addfriend","tags":["Social"],"summary":"Befriend directly","description":"Become friends with no pending-request step. Already being friends is a no-op.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV2Addfriend","tags":["Social"],"summary":"Befriend directly","description":"Become friends with no pending-request step. Already being friends is a no-op.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The relationship, from the caller’s point of view","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerID":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The other player in the pair","example":12345},"RelationshipType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = none, 1 = friend request sent, 2 = friend request received, 3 = friend","example":12345},"Favorited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Ignored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345},"Muted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0/1 — the caller‘s own flag","example":12345}},"required":["PlayerID","RelationshipType","Favorited","Ignored","Muted"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v1/ignore":{"get":{"operationId":"getApiRelationshipsV1Ignore","tags":["Social"],"summary":"Ignore a player","description":"Sets the caller’s `ignored` flag. Ignoring someone you have no relationship with creates a bare (`None`) row to hold the flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV1Ignore","tags":["Social"],"summary":"Ignore a player","description":"Sets the caller’s `ignored` flag. Ignoring someone you have no relationship with creates a bare (`None`) row to hold the flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v1/unignore":{"get":{"operationId":"getApiRelationshipsV1Unignore","tags":["Social"],"summary":"Stop ignoring a player","description":"Clears the caller’s `ignored` flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV1Unignore","tags":["Social"],"summary":"Stop ignoring a player","description":"Clears the caller’s `ignored` flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v1/mute":{"get":{"operationId":"getApiRelationshipsV1Mute","tags":["Social"],"summary":"Mute a player","description":"Sets the caller’s `muted` flag. Like ignore, this works on a player you have no relationship with.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV1Mute","tags":["Social"],"summary":"Mute a player","description":"Sets the caller’s `muted` flag. Like ignore, this works on a player you have no relationship with.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v1/unmute":{"get":{"operationId":"getApiRelationshipsV1Unmute","tags":["Social"],"summary":"Unmute a player","description":"Clears the caller’s `muted` flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV1Unmute","tags":["Social"],"summary":"Unmute a player","description":"Clears the caller’s `muted` flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v1/favorite":{"get":{"operationId":"getApiRelationshipsV1Favorite","tags":["Social"],"summary":"Favorite a player","description":"Sets the caller’s `favorited` flag — what pins a player to the top of their friends list. Works on a player you have no relationship with.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV1Favorite","tags":["Social"],"summary":"Favorite a player","description":"Sets the caller’s `favorited` flag — what pins a player to the top of their friends list. Works on a player you have no relationship with.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/relationships/v1/unfavorite":{"get":{"operationId":"getApiRelationshipsV1Unfavorite","tags":["Social"],"summary":"Unfavorite a player","description":"Clears the caller’s `favorited` flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiRelationshipsV1Unfavorite","tags":["Social"],"summary":"Unfavorite a player","description":"Clears the caller’s `favorited` flag.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"The other player. The client uses this form.","schema":{"type":"integer","example":12345}},{"name":"playerId","in":"query","required":false,"description":"Accepted as an alias for `id`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The ack; the relationship arrives over the notification hub","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"type":"string"}},"required":["Success","Message"]}}}},"400":{"description":"No target id, or the caller targeting themselves","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/messages/v2/get":{"get":{"operationId":"getApiMessagesV2Get","tags":["Social"],"summary":"Direct messages","description":"The caller’s inbox — everything sent to them that they haven’t deleted, newest first. The client reads this on login, which is what makes it the DURABLE half of a message: the `MessageReceived` frame the hub pushes is best-effort (dropped once sent rather than acked, bounded per player, and skipped whenever the hub believes it delivered), so a message that only ever existed as a frame could be lost with nothing left to show for it.\n\nEach entry is the same Message the frame carries, `Id` included and equal — one message, delivered twice, which is how the client recognises the two as the same.\n\nAuth-gated. Capped at the newest `MAX_NOTIFICATIONS_PER_PLAYER`, which is also what the store keeps — the client shows an inbox, not an archive. This is also how a co-owner invite (`RoomCoOwnerInvited`) survives a missed live push.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s messages, newest first","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"Id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The message’s id — also the `Id` on the frame that delivered it","example":12345},"FromPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ToPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SentTime":{"type":"string","description":"ISO-8601 UTC"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The Message-model type (a different enum from `NotificationType`)","example":12345},"Data":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null on the types carrying no payload of their own"},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]}},"required":["Id","FromPlayerId","ToPlayerId","SentTime","Type","Data","RoomId","PlayerEventId"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/messages/v3/get":{"get":{"operationId":"getApiMessagesV3Get","tags":["Social"],"summary":"Direct messages (website)","description":"The website inbox page — same rows as `GET /api/messages/v2/get`.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"`{ Messages, TotalResults }`"},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/messages/v3/getCount":{"get":{"operationId":"getApiMessagesV3GetCount","tags":["Social"],"summary":"Unread message count (website)","description":"The header bell’s badge on the website — inbox size, newest-wins capped.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"A bare number"},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/messages/v3/delete":{"post":{"operationId":"postApiMessagesV3Delete","tags":["Social"],"summary":"Delete messages","description":"Drops the given messages from the caller’s inbox — the ids being the `Id` on each message `GET /api/messages/v2/get` served.\n\nScoped to the CALLER’s inbox, not just to the ids: an id names a message globally, so matching on id alone would let anyone holding one clear somebody else’s inbox. An id that isn’t theirs, or is already gone, matches nothing — not an error, since the client removes its rows locally and re-reads the list either way.\n\nAuth-gated now that there is a store behind it. The ids arrive either as a bare JSON array or under `MessageIds`; both are read. Answered 200 with an empty body, which is what the client wants.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The messages to delete","content":{"application/json":{"schema":{"type":"object","properties":{"MessageIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"description":"Ids of the messages to delete"}},"required":["MessageIds"]}}}},"responses":{"200":{"description":"Accepted (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/messages/v1/friendOnlineStatus":{"post":{"operationId":"postApiMessagesV1FriendOnlineStatus","tags":["Social"],"summary":"How many friends are online","description":"The caller’s `Friend` relationships joined to live `presence`. Only unexpired presence counts, and friends in the lobby (no room instance) count too — they are signed in, just not in a room.\n\nA friend’s `statusVisibility` is not consulted: nothing else in the stack filters presence on it, so hiding people here would disagree with the list the client renders underneath the count.\n\nA POST that takes no body — the player is the bearer token.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s online-friend count","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"value":{"type":"object","properties":{"FriendsOnlineCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Friends with live presence right now","example":12345}},"required":["FriendsOnlineCount"]}},"required":["success","value"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/messages/v1/favoriteFriendOnlineStatus":{"get":{"operationId":"getApiMessagesV1FavoriteFriendOnlineStatus","tags":["Social"],"summary":"Online status of favorited friends","description":"Presence for the caller’s favorited friends. Presence lives in the `match` worker and is not joined in here yet, so this is an empty list.","responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/playerReputation/v1/{id}":{"get":{"operationId":"getApiPlayerReputationV1ById","tags":["Progression"],"summary":"A player’s reputation","description":"The cheer counters shown on a player’s profile, from the `reputation` table. A player nobody has cheered has no row and reads back all-zero. `CheerCredit` is the odd one out — what they have left to GIVE today, out of 20; it refills lazily, so a stale window reads as full without being reset here.","parameters":[{"name":"id","in":"path","required":true,"description":"Account id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The player’s reputation","content":{"application/json":{"schema":{"type":"object","properties":{"AccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsCheerful":{"type":"boolean"},"Noteriety":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SelectedCheer":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The cheer pinned to the profile; 0 = none selected","example":12345},"CheerCredit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerGeneral":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerHelpful":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCreative":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerGreatHost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerSportsman":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubscriberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubscribedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["AccountId","IsCheerful","Noteriety","SelectedCheer","CheerCredit","CheerGeneral","CheerHelpful","CheerCreative","CheerGreatHost","CheerSportsman","SubscriberCount","SubscribedCount"]}}}}}}},"/api/players/v1/progression/xpEarnedToday":{"get":{"operationId":"getApiPlayersV1ProgressionXpEarnedToday","tags":["Progression"],"summary":"XP the caller earned today (stub)","description":"The XP earned so far today, as a bare integer. Always `0` — XP is banked as a running total and nothing records when it was earned.","responses":{"200":{"description":"A bare `0`","content":{"application/json":{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}}}}}}},"/api/players/v1/progression/{id}":{"get":{"operationId":"getApiPlayersV1ProgressionById","tags":["Progression"],"summary":"A player’s level and XP","description":"The level and XP banked in `progression` (game rewards pay into it from the `econ` worker); `XP` is the progress into the current level, not a lifetime total. A player who has earned none has no row and reads back as level 1 with 0 XP. Also pushes the same values as a `PlayerProgressionLevelUpdate` frame, as the reference does — that is what moves the client’s bar.","parameters":[{"name":"id","in":"path","required":true,"description":"Account id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The player’s progression","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Level":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"XP":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["PlayerId","Level","XP"]}}}}}}},"/api/playerReputation/v1/bulk":{"post":{"operationId":"postApiPlayerReputationV1Bulk","tags":["Progression"],"summary":"Reputations in bulk (v1)","description":"The older bulk form, superseded by v2. It answers an empty list rather than synthesizing defaults — the client only uses v2.","requestBody":{"description":"The account ids to look up","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}}}},"responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/playerReputation/v2/bulk":{"post":{"operationId":"postApiPlayerReputationV2Bulk","tags":["Progression"],"summary":"Reputations in bulk","description":"One reputation per requested id, in request order. Ids that name no account — or that nobody has cheered — still get an all-zero record rather than being dropped: the client renders a profile card from each entry.","requestBody":{"description":"The account ids to look up","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}}}},"responses":{"200":{"description":"One reputation per requested id","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"AccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsCheerful":{"type":"boolean"},"Noteriety":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SelectedCheer":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The cheer pinned to the profile; 0 = none selected","example":12345},"CheerCredit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerGeneral":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerHelpful":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCreative":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerGreatHost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerSportsman":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubscriberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubscribedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["AccountId","IsCheerful","Noteriety","SelectedCheer","CheerCredit","CheerGeneral","CheerHelpful","CheerCreative","CheerGreatHost","CheerSportsman","SubscriberCount","SubscribedCount"]}}}}}}},"get":{"operationId":"getApiPlayerReputationV2Bulk","tags":["Progression"],"summary":"Reputations in bulk (GET form)","description":"What the 2023 client sends: the same bulk lookup with the ids as repeated query params instead of a form body.","parameters":[{"name":"id","in":"query","required":false,"description":"Repeated once per account id (`?id=1&id=2`); not comma-separated","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"One reputation per requested id","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"AccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsCheerful":{"type":"boolean"},"Noteriety":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SelectedCheer":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The cheer pinned to the profile; 0 = none selected","example":12345},"CheerCredit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerGeneral":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerHelpful":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCreative":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerGreatHost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerSportsman":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubscriberCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubscribedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["AccountId","IsCheerful","Noteriety","SelectedCheer","CheerCredit","CheerGeneral","CheerHelpful","CheerCreative","CheerGreatHost","CheerSportsman","SubscriberCount","SubscribedCount"]}}}}}}}},"/api/PlayerCheer/v1/create":{"post":{"operationId":"postApiPlayerCheerV1Create","tags":["Progression"],"summary":"Cheer another player","description":"Hands one cheer to `PlayerIdTo` in the category `CheerCategory` names (0 General, 10 Helpful, 20 Sportmanship, 30 GreatHost, 40 Creative), counting it on their `reputation` row.\n\nA player may give 20 cheers per day. The credit refills lazily: the first cheer opens a 24-hour window, and the first cheer after that window has passed starts a fresh one at full credit — so a player who spends all day refills 24h after their FIRST cheer, not their last.\n\nThe cheered player gets a durable `MessageReceived` frame carrying a Message of type 50 (`PlayerCheer`) — 51 (`PlayerCheerAnonymous`, sender 0) when `Anonymous` — with `Data` = the category. That message is what plays the cheer on their client; the `ReputationUpdate` frames below only refresh the numbers.\n\nA cheer is played in front of people, so the `ReputationUpdate` frame naming the cheered player goes to EVERYONE in the room instance the caller is standing in, not just the two of them. The cheered player gets it durably (their counters really moved); the rest of the room gets it only if they are connected, since the effect belongs to the moment. The caller gets a second frame of their own because their `CheerCredit` moved and the response body does not carry it.\n\n`Anonymous` swaps the message for its anonymous twin (type 51, sender 0) and nothing else — the counters move the same either way.\n\nThe audience comes from the caller’s live presence, not from `RoomId`, which is accepted and unused: a client cannot aim its effect at a room it is not in. Neither field is stored — this keeps counters, not a log of individual cheers.\n\nRefusals (no credit left, an unknown category, cheering yourself) answer 200 with `{ Success: false, Message }` rather than an error status — the client shows the message.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The cheer","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"PlayerIdTo":{"type":"string","description":"The account being cheered"},"CheerCategory":{"type":"string","description":"0 General, 10 Helpful, 20 Sportmanship, 30 GreatHost, 40 Creative"},"RoomId":{"description":"The room it happened in. Accepted but NOT used — the audience for the cheer’s effect comes from the caller’s live presence, so a client cannot aim it at a room it is not in","type":"string"},"Anonymous":{"description":"`True`/`False` (default `False`). Not stored — it picks the `PlayerCheerAnonymous` message type (sender 0) over `PlayerCheer` for the frame that plays the cheer","type":"string"}},"required":["PlayerIdTo","CheerCategory"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"PlayerIdTo":{"type":"string","description":"The account being cheered"},"CheerCategory":{"type":"string","description":"0 General, 10 Helpful, 20 Sportmanship, 30 GreatHost, 40 Creative"},"RoomId":{"description":"The room it happened in. Accepted but NOT used — the audience for the cheer’s effect comes from the caller’s live presence, so a client cannot aim it at a room it is not in","type":"string"},"Anonymous":{"description":"`True`/`False` (default `False`). Not stored — it picks the `PlayerCheerAnonymous` message type (sender 0) over `PlayerCheer` for the frame that plays the cheer","type":"string"}},"required":["PlayerIdTo","CheerCategory"]}}}},"responses":{"200":{"description":"`{ Success: true, Message: null }` — see above for refusals","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null when the cheer landed"}},"required":["Success","Message"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/PlayerCheer/v1/SetSelectedCheer":{"post":{"operationId":"postApiPlayerCheerV1SetSelectedCheer","tags":["Progression"],"summary":"Pin a cheer to your profile","description":"Stores `CheerCategory` as the caller’s `SelectedCheer` (-1 `None` unpins, read back as 0) and pushes them a `ReputationUpdate` so a second device catches up. Same `{ Success, Message }` reply as the cheer.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The category to pin","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"CheerCategory":{"type":"string","description":"The category to pin: 0 General, 10 Helpful, 20 Sportmanship, 30 GreatHost, 40 Creative; -1 unpins"}},"required":["CheerCategory"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"CheerCategory":{"type":"string","description":"The category to pin: 0 General, 10 Helpful, 20 Sportmanship, 30 GreatHost, 40 Creative; -1 unpins"}},"required":["CheerCategory"]}}}},"responses":{"200":{"description":"`{ Success: true, Message: null }`","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null when the cheer landed"}},"required":["Success","Message"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/players/v1/progression/bulk":{"post":{"operationId":"postApiPlayersV1ProgressionBulk","tags":["Progression"],"summary":"Progressions in bulk (v1)","description":"No progression is stored yet, so this is an empty list.","requestBody":{"description":"The account ids to look up","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}}}},"responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/players/v2/progression/bulk":{"post":{"operationId":"postApiPlayersV2ProgressionBulk","tags":["Progression"],"summary":"Progressions in bulk (v2)","description":"Identical to v1 — same ids in, same empty list out.","requestBody":{"description":"The account ids to look up","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}}}},"responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}},"get":{"operationId":"getApiPlayersV2ProgressionBulk","tags":["Progression"],"summary":"Progressions in bulk (GET form)","description":"What the 2023 client sends. Unlike the POST forms this one does answer — one progression per requested id, in request order, defaulting to level 1 / 0 XP for ids that have earned nothing.","parameters":[{"name":"id","in":"query","required":false,"description":"Repeated once per account id (`?id=1&id=2`); not comma-separated","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"One progression per requested id","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Level":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"XP":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["PlayerId","Level","XP"]}}}}}}}},"/api/v1/progression/bulk":{"post":{"operationId":"postApiV1ProgressionBulk","tags":["Progression"],"summary":"Progressions in bulk (unversioned path)","description":"An older unversioned path some client builds still call. Same empty answer as the versioned POST forms.","requestBody":{"description":"The account ids to look up","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}}}},"responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/progressionEvents/active":{"get":{"operationId":"getApiProgressionEventsActive","tags":["Progression"],"summary":"Progression event currently running","description":"A bare event id, `0` for none: the admin console’s manual pick when one is set, otherwise the enabled stored event whose collection window contains now (the latest-starting, if several). No auth: the same answer for every player.","responses":{"200":{"description":"The active event id, or 0","content":{"application/json":{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}}}}}}},"/api/progressionEvents/event/{id}":{"get":{"operationId":"getApiProgressionEventsEventById","tags":["Progression"],"summary":"A progression event’s definition","description":"The stored event with this `ProgressionEventId` (server-only settings stripped), else the archived official event verbatim: rewards, keepsake room lists, start/end/collection times and boost settings. 404 for an id neither holds. No auth.","parameters":[{"name":"id","in":"path","required":true,"description":"The `ProgressionEventId`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The progression event","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"404":{"description":"No such event (empty body)"}}}},"/api/progressionEvents/record/{id}":{"get":{"operationId":"getApiProgressionEventsRecordById","tags":["Progression"],"summary":"Your progress through a progression event","description":"`{ AccountId, ProgressionEventId, Xp, GameMinutesToday, RewardsCollected, PremiumRewardsCollected, BonusRewardsCollected, XpBoostLastPurchasedAt }` — the collected counts are per track (free / RR+), each collected in order. For the active, running event the read first banks the gameplay since the previous read (while presence shows the caller in a room, at most 10 minutes per step) and converts it to XP under the event’s daily cap. 404 for an unknown event.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The `ProgressionEventId`","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The progress record","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/avatar/v2/gifts/generate":{"post":{"operationId":"postApiAvatarV2GiftsGenerate","tags":["Avatar"],"summary":"Generate a gift box","description":"Mint the gift box a player earned (levelling up, a room reward). With no EarnableRewards catalog wired up this always falls back to a token gift of a random amount, and the box is not persisted — its `Id` is 0 and it cannot be opened through the `econ` worker’s consume endpoint.","security":[{"bearerAuth":[]}],"requestBody":{"description":"Where the gift was earned","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"GiftContext":{"description":"Where the gift was earned","type":"string"},"Message":{"type":"string"},"Xp":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"GiftContext":{"description":"Where the gift was earned","type":"string"},"Message":{"type":"string"},"Xp":{"type":"string"}}}}}},"responses":{"200":{"description":"The generated (unpersisted) gift","content":{"application/json":{"schema":{"type":"object","properties":{"Id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Always 0 — gifts generated here are not persisted","example":12345},"FromPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ConsumableItemDesc":{"type":"string"},"AvatarItemDesc":{"type":"string"},"FriendlyName":{"type":"string"},"AvatarItemType":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null — a token box holds no avatar item"},"EquipmentPrefabName":{"type":"string"},"EquipmentModificationGuid":{"type":"string"},"CurrencyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Currency":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"A random token amount","example":12345},"Xp":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Level":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Platform":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"PlatformsToSpawnOn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BalanceType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GiftContext":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GiftRarity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Message":{"type":"string"}},"required":["Id","FromPlayerId","ConsumableItemDesc","AvatarItemDesc","FriendlyName","AvatarItemType","EquipmentPrefabName","EquipmentModificationGuid","CurrencyType","Currency","Xp","Level","Platform","PlatformsToSpawnOn","BalanceType","GiftContext","GiftRarity","Message"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/avatar/v1/lockeditems/bulk":{"post":{"operationId":"postApiAvatarV1LockeditemsBulk","tags":["Avatar"],"summary":"Locked avatar items in bulk","description":"Resolves a batch of avatar-item ids to the ones that are LOCKED for the caller, as a bare array. Nothing on this server locks avatar items, so it is always `[]` and the posted ids are not parsed — a miss is not an error, the client simply renders nothing as locked.\n\nNo auth, matching the reference, which returns the empty array without checking a token — in contrast to `/api/customAvatarItems/v1/bulk`, which validates one first.","responses":{"200":{"description":"The locked items — always empty here","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/customAvatarItems/v1/isCreationAllowedForAccount":{"get":{"operationId":"getApiCustomAvatarItemsV1IsCreationAllowedForAccount","tags":["Avatar"],"summary":"May this account create custom items?","description":"A feature gate with no backing implementation — we answer yes. Note this one wraps its answer in the `{ success, value }` envelope while the two gates below return a bare boolean.","responses":{"200":{"description":"Allowed","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"value":{"type":"null"}},"required":["success","value"]}}}}}}},"/api/customAvatarItems/v1/isCreationEnabled":{"get":{"operationId":"getApiCustomAvatarItemsV1IsCreationEnabled","tags":["Avatar"],"summary":"Is custom-item creation enabled?","description":"A server-wide feature gate. Enabled; flip to `false` to disable the flow.","responses":{"200":{"description":"A bare `true`","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/customAvatarItems/v1/isRenderingEnabled":{"get":{"operationId":"getApiCustomAvatarItemsV1IsRenderingEnabled","tags":["Avatar"],"summary":"Is custom-item rendering enabled?","description":"A server-wide feature gate. Enabled; flip to `false` to disable the flow.","responses":{"200":{"description":"A bare `true`","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/customAvatarItems/v1/minPriceForPublicItem":{"get":{"operationId":"getApiCustomAvatarItemsV1MinPriceForPublicItem","tags":["Avatar"],"summary":"Minimum token price for a public custom item","description":"The floor the creation UI enforces when listing a custom item publicly. A fixed `100`.","responses":{"200":{"description":"A bare `100`","content":{"application/json":{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}}}}}}},"/api/customAvatarItems/v1":{"post":{"operationId":"postApiCustomAvatarItemsV1","tags":["Avatar"],"summary":"Create a custom avatar item","description":"Multipart: a `metadata` JSON text field plus two file parts, `thumbnailImage` (PNG) and `design` (the design blob). Inserts a `custom_avatar_item` row owned by the caller and answers with it in the PascalCase `{ Value, Success, Error, error_id }` envelope. The item is filed under `OutfitType` 105, the custom shirt, which is what the store’s user-generated-content tab searches for.\n\nThe two files go to the shared image bucket (`clubsandwich-img`) under `avatar-item/<date>/<id>-thumb.png` and `avatar-item/<date>/<id>-design.png`; those keys are the `ThumbnailImageFilename` / `DesignFilename` on the row.\n\n`Price` is capped at 1000 tokens (`MAX_PLAYER_ITEM_PRICE`); one above it, or below 0, is refused with `Success: false` (HTTP 200 — Studio’s Result client cannot read `Error` off an HTTP 400) rather than clamped.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The metadata and the two files","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"metadata":{"type":"string","description":"JSON `CreateCustomAvatarItemMetadata`, posted as a text field"},"thumbnailImage":{"type":"string","description":"The thumbnail PNG (binary file part)"},"design":{"type":"string","description":"The design blob (binary file part)"}},"required":["metadata","thumbnailImage","design"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"metadata":{"type":"string","description":"JSON `CreateCustomAvatarItemMetadata`, posted as a text field"},"thumbnailImage":{"type":"string","description":"The thumbnail PNG (binary file part)"},"design":{"type":"string","description":"The design blob (binary file part)"}},"required":["metadata","thumbnailImage","design"]}}}},"responses":{"200":{"description":"The created item, or a refusal with `Success: false`","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"413":{"description":"Either file exceeds the configured per-file limit","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/customAvatarItems/firstParty":{"post":{"operationId":"postApiCustomAvatarItemsFirstParty","tags":["Avatar"],"summary":"Create a custom avatar item (Studio, JSON)","description":"The JSON body of Rec Room Studio’s create (`CustomAvatarItemCreateRequestDTO`), handled exactly as the metadata-only multipart create: no base item, no files, its own `OutfitType`. The item is filed under the caller.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The created item, or a refusal with `Success: false`","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/customAvatarItems/v1/me":{"get":{"operationId":"getApiCustomAvatarItemsV1Me","tags":["Avatar"],"summary":"My custom avatar items (Studio)","description":"Everything the caller has authored, unpublished included, newest first, paged by `skip`/`take` into `{ Results, TotalResults }` — Rec Room Studio’s avatar item list.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"One page","content":{"application/json":{"schema":{"type":"object","properties":{"Results":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]}},"TotalResults":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Results","TotalResults"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/customAvatarItems/v1/{id}":{"get":{"operationId":"getApiCustomAvatarItemsV1ById","tags":["Avatar"],"summary":"One custom avatar item","description":"The bare item record, or 404 — which Rec Room Studio reads as \"no such item\". Drafts (`Accessibility` 0) are creator-only; Public and Unlisted answer to anyone.","parameters":[{"name":"id","in":"path","required":true,"description":"The `CustomAvatarItemId`","schema":{"type":"string"}}],"responses":{"200":{"description":"The item","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}},"put":{"operationId":"putApiCustomAvatarItemsV1ById","tags":["Avatar"],"summary":"Edit a custom avatar item","description":"A partial edit of `Name`, `Description`, `Price`, `Accessibility` and `Tags` — Rec Room Studio’s save always posts every field (null = leave alone). Only the creator may edit. `ModifiedAt` is bumped. Answers the updated item in the `{ Value, Success, Error, error_id }` envelope.\n\n`Price` is 0–1000 tokens. A refused edit is HTTP **200** with `Success: false` and `Error` set — Studio’s client calls `EnsureSuccessStatusCode` before reading the Result, so an HTTP 400 only ever surfaces as a bare \"400\" and hides the message (e.g. over the price cap).","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The `CustomAvatarItemId`","schema":{"type":"string"}}],"requestBody":{"description":"The fields to change","content":{"application/json":{"schema":{"type":"object","properties":{"Name":{"anyOf":[{"type":"string"},{"type":"null"}]},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"Price":{"description":"Tokens, 0–1000 (MAX_PLAYER_ITEM_PRICE)","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"Accessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"Tags":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["Value"],"additionalProperties":false}},{"type":"null"}]}}}}}},"responses":{"200":{"description":"The updated item, or a refused edit with `Success: false`","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the creator","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}}}},"delete":{"operationId":"deleteApiCustomAvatarItemsV1ById","tags":["Avatar"],"summary":"Delete a custom avatar item","description":"Removes the item and its two bucket objects (thumbnail and design). Only the creator may delete. Answers the deleted item in the `{ Value, Success, Error, error_id }` envelope.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The `CustomAvatarItemId`","schema":{"type":"string"}}],"responses":{"200":{"description":"The deleted item","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the creator","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}},"404":{"description":"No such item","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]},{"type":"null"}]},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}]},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/customAvatarItems/{id}/saves":{"get":{"operationId":"getApiCustomAvatarItemsByIdSaves","tags":["Avatar"],"summary":"An item’s Studio saves","description":"The item’s save history, newest first, as `Result<PagedResults<CustomAvatarItemSaveWithCreatorDetailsDTO>>`: each save with its source manifest (`SourceUnityAssetFilename`/`Hash`) and the bundles built from it (`BakedAssets`). Creator only — the list includes unpublished saves.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The `CustomAvatarItemId`","schema":{"type":"string"}}],"responses":{"200":{"description":"One page of saves","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"value":{"type":"null"}},"required":["success","value"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiCustomAvatarItemsByIdSaves","tags":["Avatar"],"summary":"Save an item from Rec Room Studio","description":"Rec Room Studio’s `SaveCustomAvatarItemRequestDTO`: a new source manifest (`NewUnityAssetFile`, uploaded to storage first) or the content of an earlier save (`ExistingUnityAssetId`, which keeps that save’s build), plus thumbnail, body type and configuration. Answers `Result<long>`, the new save id. `UpdateCurrentSaveIfPrivate` publishes it at once when the item is unpublished; otherwise publishing is its own step. Bundles come from the Club Sandwich editor build, posted to the studio worker.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The `CustomAvatarItemId`","schema":{"type":"string"}}],"responses":{"200":{"description":"The new save id","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"value":{"type":"null"}},"required":["success","value"]}}}},"400":{"description":"Malformed body","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"value":{"type":"null"}},"required":["success","value"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/customAvatarItems/{id}/saves/{saveId}/publish":{"post":{"operationId":"postApiCustomAvatarItemsByIdSavesBySaveIdPublish","tags":["Avatar"],"summary":"Publish a Studio save","description":"Makes the save the item’s current one for its body type — the entry in `CurrentSaves` the game renders. A save not built yet is published as soon as its bundles arrive. Answers the `Result` envelope.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The `CustomAvatarItemId`","schema":{"type":"string"}},{"name":"saveId","in":"path","required":true,"description":"The save id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"Published","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/customAvatarItems/v1/featured":{"get":{"operationId":"getApiCustomAvatarItemsV1Featured","tags":["Avatar"],"summary":"Featured custom avatar items","description":"The curated feed: items with `IsFeatured` set that are also Public in the store (Draft and Unlisted are excluded even when flagged), newest first, up to 50. Nothing sets the flag yet, so it stays empty until an operator does.","responses":{"200":{"description":"The items, newest first","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]}}}}}}}},"/api/customAvatarItems/v1/search":{"get":{"operationId":"getApiCustomAvatarItemsV1Search","tags":["Avatar"],"summary":"Search custom avatar items","description":"The store’s item search: Public items only (Draft is unpublished; Unlisted is published onto the creator’s portfolio and reachable by id, but not browsable here — `fromCreator` / by-id / bulk still serve it), newest first, as a BARE ARRAY. `searchQuery` matches an item’s NAME or its DESCRIPTION, case-insensitively, as a substring; `%` and `_` in it are literal. `outfitTypes` may repeat and acts as a whitelist; sending none means no filter rather than no results, since the client sends every type it can render. `minPrice`/`maxPrice` bound the price, inclusive. `skip`/`take` page the results, `take` capped at 200. `includeCoachItems` picks a SIDE of the catalog: `true` serves the Coach’s stock content (account 1) plus CreationFactory’s (account 3) 3D items — everything of its outside the custom-shirt slot 105, listed after the Coach’s — `false` everything not by the Coach, and leaving it out serves both. The client’s storefront tab and its search box send `True` with a dozen slots, its user-generated-content tab `False` with 105 alone, so the two tabs never overlap. `creatorAccountId` narrows to one author’s items — what a player’s creations list sends (`creatorAccountId=<id>&includeCoachItems=False`); still published items only. `outfitTypes` values are `RecRoom.Avatars.OutfitType` ordinals; the user-generated- content tab sends 105 (`CustomShirt`) alone, the storefront tab a dozen slots. `itemTypes` (a separate enum: All -1, None 0, Shirt 1 — not the outfit type), `ordering` (0 is `SearchScoreDescending`) and `unityAssetVersion` are accepted and NOT yet acted on — nothing records purchase or wear counts to rank by, no per-version asset variants are stored, and custom shirts are the only item type there is. `unityAssetTarget` IS acted on: 2 (Android/Oculus) serves each save’s `UnityAsset`/`UnityAsset2` under `quest/`, the Android build of the same assetbundle; 0 (PC), any other value, and none at all get the bare filenames as stored. `includePurchaseInfos` likewise: `PurchaseInfo` is null on every item for now, whatever it says.","parameters":[{"name":"searchQuery","in":"query","required":false,"description":"Free text matched against the item’s name or description","schema":{"type":"string"}},{"name":"outfitTypes","in":"query","required":false,"description":"OutfitType to include; repeat for several. None means all.","schema":{"type":"array","items":{"type":"integer","example":12345}}},{"name":"skip","in":"query","required":false,"description":"Rows to skip (default 0)","schema":{"type":"integer","minimum":0,"example":12345}},{"name":"take","in":"query","required":false,"description":"Rows to return (default 50, capped at 200)","schema":{"type":"integer","minimum":0,"example":12345}},{"name":"minPrice","in":"query","required":false,"description":"Lowest price to include, inclusive","schema":{"type":"integer","minimum":0,"example":12345}},{"name":"maxPrice","in":"query","required":false,"description":"Highest price to include, inclusive","schema":{"type":"integer","minimum":0,"example":12345}},{"name":"includeCoachItems","in":"query","required":false,"description":"true: the Coach’s stock items plus CreationFactory’s 3D items; false: everything not by the Coach; absent: both","schema":{"type":"boolean"}},{"name":"creatorAccountId","in":"query","required":false,"description":"Only items this account made","schema":{"type":"integer","example":12345}},{"name":"unityAssetTarget","in":"query","required":false,"description":"The Unity build target the assetbundles are wanted for: 0 PC (Windows), 2 Android/Oculus — which is served the `quest/` builds","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The matching items, newest first","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]}}}}}}}},"/api/customAvatarItems/v1/hot":{"get":{"operationId":"getApiCustomAvatarItemsV1Hot","tags":["Avatar"],"summary":"Trending custom avatar items","description":"The “hot” feed: Public store items only (Draft and Unlisted are left out), newest first, up to 50. No purchase or wear counts are recorded, so there is no trend to rank by and recency stands in for one.","responses":{"200":{"description":"The items, newest first","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]}}}}}}}},"/api/customAvatarItems/v1/bulk":{"post":{"operationId":"postApiCustomAvatarItemsV1Bulk","tags":["Avatar"],"summary":"Custom avatar items in bulk","description":"Resolves a batch of custom-avatar-item ids to their items: the posted `customAvatarItemIds` filtered against the `custom_avatar_item` table, returned as a BARE ARRAY of the ones that matched, in the order they were asked for. Not the `{ Results, TotalResults }` page the sibling custom-item reads serve — the reference keeps its catalog in that shape but answers this route with the filtered array alone.\n\nA miss is not an error: unknown ids are simply absent from the response, and the client reads the items it got back rather than the ids it asked for. Unpublished items (`Accessibility` 0) miss for everyone but their creator, the same rule the feeds and the creator shelf apply.\n\nIds ride as repeated `customAvatarItemIds` form fields; a comma-separated value and the same spelling on the query string are both accepted, since the client’s exact encoding here has not been pinned down.\n\nA caller asking for the Quest build — `unityAssetTarget` 2 (Android/Oculus), on the query string or in the form — is served each save’s `UnityAsset`/`UnityAsset2` under `quest/`, the Android build of the same assetbundle. Target 0 (PC), any other value, and no target at all get the bare filenames as stored.\n\nA batch of more than 100 ids answers an EMPTY array without reading the table: the client has been seen posting more than a screen could draw, and a miss is already not an error here.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The custom-avatar-item ids to resolve","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"customAvatarItemIds":{"type":"array","items":{"type":"string"},"description":"The ids to resolve; repeat the field once per id"},"unityAssetTarget":{"description":"The Unity build target the assetbundles are wanted for: 0 PC (Windows), 2 Android/Oculus — which is served the `quest/` builds. Read off the query string too","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["customAvatarItemIds"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"customAvatarItemIds":{"type":"array","items":{"type":"string"},"description":"The ids to resolve; repeat the field once per id"},"unityAssetTarget":{"description":"The Unity build target the assetbundles are wanted for: 0 PC (Windows), 2 Android/Oculus — which is served the `quest/` builds. Read off the query string too","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["customAvatarItemIds"]}}}},"responses":{"200":{"description":"The items that matched, in request order","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/customAvatarItems/v2/fromCreator/{accountId}":{"get":{"operationId":"getApiCustomAvatarItemsV2FromCreatorByAccountId","tags":["Avatar"],"summary":"A creator’s custom avatar items","description":"The items an account has authored, newest first, in the same page shape as the `econ` worker’s `customAvatarItems/v1/owned`. Published items only — unless the bearer token is the creator’s, in which case their unpublished (`Accessibility` 0) items are included too. Paging is not applied (the client sends none), so `TotalResults` is the length of `Results`.","security":[{},{"bearerAuth":[]}],"parameters":[{"name":"accountId","in":"path","required":true,"description":"Creator account id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The creator’s items","content":{"application/json":{"schema":{"type":"object","properties":{"Results":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemId":{"type":"string"},"CreatorAccountId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean"},"IsFeatured":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean"},"BaseAvatarItemId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"BaseAvatarItemColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"DesignFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailImageFilename":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"PreviewOrientation":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RankingContext":{"type":"null"},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentSaves":{"type":"array","items":{"type":"object","properties":{"CustomAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CustomAvatarItemId":{"type":"string"},"UnityAssetId":{"type":"string"},"BodyType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"OutfitType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"QAState":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"ModifiedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ThumbnailFileName":{"type":"string"},"AdditionalConfiguration":{"type":"string","description":"JSON-in-a-string"},"UnityAsset":{"type":"string"},"UnityAssetHash":{"type":"string"},"UnityAsset2":{"anyOf":[{"type":"string"},{"type":"null"}]},"UnityAsset2Hash":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["CustomAvatarItemSaveId","CustomAvatarItemId","UnityAssetId","BodyType","OutfitType","QAState","CreatedAt","ModifiedAt","Description","ThumbnailFileName","AdditionalConfiguration","UnityAsset","UnityAssetHash","UnityAsset2","UnityAsset2Hash"]}},"Tags":{"type":"array","items":{"type":"object","properties":{"TagType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Value":{"type":"string"}},"required":["TagType","Value"]}},"CustomBadgeMetadata":{"anyOf":[{},{"type":"null"}]},"RankedEntityId":{"type":"string"},"PurchaseInfo":{"type":"null"}},"required":["CustomAvatarItemId","CreatorAccountId","Name","Description","Price","Accessibility","ForceCannotPublish","IsFeatured","IsRecRoomApproved","BaseAvatarItemId","BaseAvatarItemColor","DesignFilename","ThumbnailImageFilename","CreatedAt","ModifiedAt","PreviewOrientation","RankingContext","OutfitType","CurrentSaves","Tags","CustomBadgeMetadata","RankedEntityId","PurchaseInfo"]}},"TotalResults":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Results","TotalResults"]}}}}}}},"/api/customAvatarItems/GetCustomAvatarItemCurrentSavesForLegacyAvatarItems":{"post":{"operationId":"postApiCustomAvatarItemsGetCustomAvatarItemCurrentSavesForLegacyAvatarItems","tags":["Avatar"],"summary":"Custom-item saves for legacy avatar items","description":"Given a set of legacy avatar items, the custom-item saves that replace them, keyed by the legacy item’s `AvatarItemDesc`. The RecNet Addressable clothing pack was never archived, so the map is always empty — the client then draws only items still baked into the build. The request body is ignored.\n\nThe value shape is the official one, recorded here for documentation; we never emit one until those bundles exist on CDN.","responses":{"200":{"description":"An empty map","content":{"application/json":{"schema":{"type":"object","properties":{"customAvatarItemSavesByAvatarItemDesc":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"customAvatarItemSaveId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The save’s id","example":12345},"customAvatarItemId":{"type":"string","description":"Guid of the custom item this save belongs to"},"unityAssetId":{"type":"string","description":"Guid of the built Unity asset"},"createdAt":{"type":"string","description":"ISO 8601 timestamp"},"thumbnailFileName":{"type":"string"},"additionalConfiguration":{"type":"string"},"unityAsset":{"type":"string"},"unityAssetHash":{"type":"string"}},"required":["customAvatarItemSaveId","customAvatarItemId","unityAssetId","createdAt","thumbnailFileName","additionalConfiguration","unityAsset","unityAssetHash"]}}},"required":["customAvatarItemSavesByAvatarItemDesc"]}}}}}}},"/outfits/me":{"get":{"operationId":"getOutfitsMe","tags":["Avatar","2025"],"summary":"The caller’s outfit","description":"The newer outfit read, on a bare un-prefixed path. Served from slot 0 of the shared `outfit` table — the newer client treats slot 0 as the outfit currently worn — and handed back exactly as it was saved, since the payload’s heavy fields are the client’s own JSON-in-a-string documents.\n\nA player who has never saved gets the brand-new-account envelope, which is a different, flatter shape than a stored outfit: the four empty-string fields `FaceFeatures`, `HairColor`, `OutfitSelections` and `SkinColor`, and nothing else.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The stored outfit, or the empty envelope","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"LegacyData":{"type":"object","properties":{"SelectionsV1":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Semicolon-delimited legacy descriptors"},"SelectionsV2":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string: `{ selections: [...] }`"},"FaceFeatures":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string"},"SkinColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"HairColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["SelectionsV1","SelectionsV2","FaceFeatures","SkinColor","HairColor"]},"Selections":{"type":"array","items":{}},"DataVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The client’s outfit format version, as saved","example":12345},"CustomizationSettings":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string: the same outfit in the newer structured form"},"ThumbnailFileName":{"anyOf":[{"type":"string"},{"type":"null"}]},"Name":{"anyOf":[{"type":"string"},{"type":"null"}]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 — the outfit being worn","example":12345}},"required":["LegacyData","Selections","DataVersion","CustomizationSettings","ThumbnailFileName","Name","Accessibility","Slot"]},{"type":"object","properties":{"FaceFeatures":{"type":"string"},"HairColor":{"type":"string"},"OutfitSelections":{"type":"string"},"SkinColor":{"type":"string"}},"required":["FaceFeatures","HairColor","OutfitSelections","SkinColor"]}]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"put":{"operationId":"putOutfitsMe","tags":["Avatar","2025"],"summary":"Save the caller’s outfit","description":"Saves into the shared `outfit` table, in the slot the body names — slot 0 being the outfit worn, which is what the GET reads. Re-saving a slot overwrites it.\n\nThe payload is stored verbatim: its heavy fields (`SelectionsV2`, `FaceFeatures`, `CustomizationSettings`) are whole JSON documents encoded as strings by the client’s own serializer, so nothing here parses or re-encodes them.\n\nThe response is the base envelope with no `Value` key — three keys, and the outfit is not echoed back. The mixed casing (`Success`/`Error` but `error_id`) is the reference’s, not a typo.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The outfit to save","content":{"application/json":{"schema":{"type":"object","properties":{"DataVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The client’s outfit format version (2 in observed saves)","example":12345},"LegacyData":{"type":"object","properties":{"SelectionsV1":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Semicolon-delimited legacy descriptors"},"SelectionsV2":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string: `{ selections: [...] }`"},"FaceFeatures":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string"},"SkinColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"HairColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["SelectionsV1","SelectionsV2","FaceFeatures","SkinColor","HairColor"],"additionalProperties":false},"CustomizationSettings":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string: the same outfit in the newer structured form"},"Selections":{"type":"array","items":{},"description":"Empty in observed saves"},"Slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"anyOf":[{"type":"string"},{"type":"null"}]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ThumbnailFileName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["DataVersion","LegacyData","CustomizationSettings","Selections","Slot","Name","Accessibility","ThumbnailFileName"]}}}},"responses":{"200":{"description":"Saved — `{ Success: true, Error: null, error_id: null }`","content":{"application/json":{"schema":{"type":"object","properties":{"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null on success"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Null on success. snake_case, unlike its siblings"}},"required":["Success","Error","error_id"]}}}},"400":{"description":"Unparseable body","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/outfits/bulk":{"post":{"operationId":"postOutfitsBulk","tags":["Avatar"],"summary":"Several players’ outfits","description":"The worn outfit (slot 0) of each account in `AccountIds`, keyed by account id — the call the client makes to dress a room full of players in one request.\n\nA MAP rather than a list: the client looks each player up by id. The key is the id as a string, and the value is the same stored outfit `GET /outfits/me` serves, handed back exactly as it was saved. An account with nothing saved in slot 0 is ABSENT from the map rather than carrying a null — a map says “no outfit” by not having the key, and inventing one for a player who has never saved would dress them in something they never chose.\n\nRepeated ids collapse, and at most 99 distinct accounts may be named — one query, one round trip, and a room holds nothing like that many players. A longer list is a 400 rather than a partial answer, which would read as “those players have no outfit”. `UnityAssetTarget` / `UnityAssetVersion` name a baked-asset build and are accepted and ignored: nothing here bakes assets.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The accounts whose outfits are wanted","content":{"application/json":{"schema":{"type":"object","properties":{"AccountIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"description":"The accounts whose worn outfit is wanted"},"UnityAssetTarget":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Baked-asset platform. Accepted and ignored — nothing bakes assets here"},"UnityAssetVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Baked-asset version. Accepted and ignored, like its sibling"}},"required":["AccountIds","UnityAssetTarget","UnityAssetVersion"]}}}},"responses":{"200":{"description":"The outfits that exist, keyed by account id","content":{"application/json":{"schema":{"type":"object","properties":{"OutfitsByAccountId":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"LegacyData":{"type":"object","properties":{"SelectionsV1":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Semicolon-delimited legacy descriptors"},"SelectionsV2":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string: `{ selections: [...] }`"},"FaceFeatures":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string"},"SkinColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"HairColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["SelectionsV1","SelectionsV2","FaceFeatures","SkinColor","HairColor"]},"Selections":{"type":"array","items":{}},"DataVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The client’s outfit format version, as saved","example":12345},"CustomizationSettings":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"JSON-in-a-string: the same outfit in the newer structured form"},"ThumbnailFileName":{"anyOf":[{"type":"string"},{"type":"null"}]},"Name":{"anyOf":[{"type":"string"},{"type":"null"}]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Slot":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 — the outfit being worn","example":12345}},"required":["LegacyData","Selections","DataVersion","CustomizationSettings","ThumbnailFileName","Name","Accessibility","Slot"]},"description":"Keyed by account id as a string. Accounts with no saved outfit are omitted"}},"required":["OutfitsByAccountId"]}}}},"400":{"description":"Unparseable body, or more than 99 accounts","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/outfits/me/saved":{"get":{"operationId":"getOutfitsMeSaved","tags":["Avatar","2025"],"summary":"The caller’s saved outfits","description":"The wardrobe behind the newer outfit screen: every slot the caller has saved, ordered by slot, and `[]` when they have saved none. The same rows `econ`’s `GET /api/avatar/v3/saved` serves — both write paths land in the shared `outfit` table.\n\nSlot 0 is included. It is the outfit being worn (what `GET /outfits/me` reads) but it is a saved slot too, and the client chooses the slot it saves into, so omitting it would hide a real outfit whenever a wardrobe entry lands there.\n\nEach outfit is served exactly as it was stored, unprojected: slots written through `PUT /outfits/me` hold the newer envelope while `econ`’s saved-set slots hold the old flat shape, and neither is converted into the other.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The saved outfits, ordered by slot (empty when none)","content":{"application/json":{"schema":{"type":"array","items":{}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/inventions/v1":{"get":{"operationId":"getApiInventionsV1","tags":["Inventions"],"summary":"One invention by id","description":"The stored `RRInvention`. Public — an unpublished invention is served too.","parameters":[{"name":"inventionId","in":"query","required":false,"description":"Invention id; required","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The invention","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]}}}},"400":{"description":"Missing or non-numeric inventionId","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention"}}}},"/api/inventions/v1/tagfilters":{"get":{"operationId":"getApiInventionsV1Tagfilters","tags":["Inventions"],"summary":"Invention browse filter chips","description":"The filter chips on the invention browse screen, derived from the tags actually in use on published inventions — most popular first, the top few pinned. `TrendingFilters` is null: that needs recent-activity data we do not keep, and the client treats null as absent.","responses":{"200":{"description":"The chips in use","content":{"application/json":{"schema":{"type":"object","properties":{"PinnedFilters":{"type":"array","items":{"type":"string"}},"PopularFilters":{"type":"array","items":{"type":"string"}},"TrendingFilters":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Null — needs recent-activity data we don‘t keep"}},"required":["PinnedFilters","PopularFilters","TrendingFilters"]}}}}}}},"/api/inventions/v2/batch":{"get":{"operationId":"getApiInventionsV2Batch","tags":["Inventions"],"summary":"Inventions by id, in bulk","description":"Look up several inventions at once. Unknown ids are dropped rather than 404ing, and an empty request is an empty list. Auth is optional and only widens what you see: an unpublished invention comes back only to its creator.","parameters":[{"name":"id","in":"query","required":false,"description":"Repeatable; each value may be a comma-separated list of ids","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The inventions the caller may see","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]}}}}}}}},"/api/inventions/v1/fulllineageowner":{"get":{"operationId":"getApiInventionsV1Fulllineageowner","tags":["Inventions"],"summary":"Does the caller own this whole lineage?","description":"Asked when saving an invention built out of other inventions: may this player use every piece? The client sends the whole lineage as repeated `id`s, and this answers a single bare `true`/`false` for the set — false as soon as one is not the caller’s. An invention is theirs if they created it or acquired it; an id with no invention behind it is not owned. Price and permission don’t enter into it — a free invention still has to be picked up, and that writes the same inventory row a paid one does.\n\nOnly the ids asked about are checked — this does not walk `ReferencedInventions` to widen the lineage, since the client knows what the thing it is holding is actually made of. No ids at all is `true`: nothing in an empty lineage is unowned.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"Repeatable; each value may be a comma-separated list of ids","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"Whether the caller owns every invention asked about","content":{"application/json":{"schema":{"type":"boolean"}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/inventions/v1/room":{"get":{"operationId":"getApiInventionsV1Room","tags":["Inventions"],"summary":"A room’s inventions","description":"Published inventions created in that room, newest first.","parameters":[{"name":"id","in":"query","required":false,"description":"Room id; required","schema":{"type":"integer","example":12345}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The room’s inventions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]}}}}},"400":{"description":"Missing or non-numeric id","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/api/inventions/v1/personaldetails/{inventionId}":{"get":{"operationId":"getApiInventionsV1PersonaldetailsByInventionId","tags":["Inventions"],"summary":"The caller’s own relation to an invention","description":"Whether the caller is cheering this invention. Signed-out callers receive false, since there is no player interaction to look up.","parameters":[{"name":"inventionId","in":"path","required":true,"description":"Invention id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The caller’s cheer state","content":{"application/json":{"schema":{"type":"object","properties":{"IsCheering":{"type":"boolean","description":"Whether the caller currently cheers this invention"}},"required":["IsCheering"]}}}}}}},"/api/inventions/v1/version":{"get":{"operationId":"getApiInventionsV1Version","tags":["Inventions"],"summary":"One version of an invention","description":"The bare `RRInventionVersion`, which carries the blob name the client downloads and `BlobHash`, the base64 SHA-256 of that blob (null when the named blob was never uploaded). Serves the current revision and any prior one parked by `v4/addversion`; an unknown version number 404s rather than naming a blob that is not there.\n\n`version=0` is the exception: it means “whichever is current” rather than a number to match, and gets the current version. No invention has a version 0 — a fresh save is version 1 — so a caller sending it does not know which version it wants, and matching it literally 404s an invention that exists.","parameters":[{"name":"inventionId","in":"query","required":false,"description":"Invention id; required","schema":{"type":"integer","example":12345}},{"name":"version","in":"query","required":false,"description":"Version number; required. `0` means the current version","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The version","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]}}}},"400":{"description":"Missing inventionId or version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention, or a version number that was never saved"}}}},"/api/inventions/v1/update":{"get":{"operationId":"getApiInventionsV1Update","tags":["Inventions"],"summary":"Edit an invention’s metadata","description":"GET or POST — the client sends both, and the fields to change ride as query params either way; no body is read. Absent params keep their stored value. An empty `description` clears it, but an empty `name`/`imageName` is ignored rather than blanking the invention. A supplied name/description must satisfy the same rules `v6/save` enforces. Publishing and pricing are separate endpoints.","security":[{"bearerAuth":[]}],"parameters":[{"name":"inventionId","in":"query","required":false,"description":"Invention id; required","schema":{"type":"integer","example":12345}},{"name":"name","in":"query","required":false,"description":"3–24 chars, letters/digits/spaces/dashes/colons; empty is ignored","schema":{"type":"string"}},{"name":"description","in":"query","required":false,"description":"Max 512 chars; present-but-empty clears it","schema":{"type":"string"}},{"name":"imageName","in":"query","required":false,"description":"New thumbnail; empty is ignored","schema":{"type":"string"}},{"name":"allowTrial","in":"query","required":false,"description":"`true`/`1` to allow trials","schema":{"type":"string"}},{"name":"permission","in":"query","required":false,"description":"What other players get (`GeneralPermission`). The picker sends `UseOnly`, `EditAndSave` or `Publish`; any ladder name (case- and underscore-insensitive) or the raw number is accepted","schema":{"type":"string"}}],"responses":{"200":{"description":"The updated invention, in the save envelope","content":{"application/json":{"schema":{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]}},"required":["Status","Invention","InventionVersion"]}}}},"400":{"description":"A supplied name or description breaks its rule","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s invention","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention"}}},"post":{"operationId":"postApiInventionsV1Update","tags":["Inventions"],"summary":"Edit an invention’s metadata","description":"GET or POST — the client sends both, and the fields to change ride as query params either way; no body is read. Absent params keep their stored value. An empty `description` clears it, but an empty `name`/`imageName` is ignored rather than blanking the invention. A supplied name/description must satisfy the same rules `v6/save` enforces. Publishing and pricing are separate endpoints.","security":[{"bearerAuth":[]}],"parameters":[{"name":"inventionId","in":"query","required":false,"description":"Invention id; required","schema":{"type":"integer","example":12345}},{"name":"name","in":"query","required":false,"description":"3–24 chars, letters/digits/spaces/dashes/colons; empty is ignored","schema":{"type":"string"}},{"name":"description","in":"query","required":false,"description":"Max 512 chars; present-but-empty clears it","schema":{"type":"string"}},{"name":"imageName","in":"query","required":false,"description":"New thumbnail; empty is ignored","schema":{"type":"string"}},{"name":"allowTrial","in":"query","required":false,"description":"`true`/`1` to allow trials","schema":{"type":"string"}},{"name":"permission","in":"query","required":false,"description":"What other players get (`GeneralPermission`). The picker sends `UseOnly`, `EditAndSave` or `Publish`; any ladder name (case- and underscore-insensitive) or the raw number is accepted","schema":{"type":"string"}}],"responses":{"200":{"description":"The updated invention, in the save envelope","content":{"application/json":{"schema":{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]}},"required":["Status","Invention","InventionVersion"]}}}},"400":{"description":"A supplied name or description breaks its rule","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s invention","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention"}}}},"/api/inventions/v3/publish":{"get":{"operationId":"getApiInventionsV3Publish","tags":["Inventions"],"summary":"Publish an invention","description":"What puts an invention into search and the feeds. Sets the permission other players get (defaulting to UseOnly) and its price. Another GET that writes. A price over 1000 tokens (`MAX_INVENTION_PRICE`) refuses the whole publish with a 400 rather than being clamped or dropped.","security":[{"bearerAuth":[]}],"parameters":[{"name":"inventionId","in":"query","required":false,"description":"Invention id; required","schema":{"type":"integer","example":12345}},{"name":"permissionLevel","in":"query","required":false,"description":"A name like `useonly`, or the raw number","schema":{"type":"string"}},{"name":"price","in":"query","required":false,"description":"Price in tokens, at most 1000; negative is ignored","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The published invention, in the save envelope","content":{"application/json":{"schema":{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]}},"required":["Status","Invention","InventionVersion"]}}}},"400":{"description":"A price over 1000","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s invention","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention"}}}},"/api/inventions/v1/updateprice":{"post":{"operationId":"postApiInventionsV1Updateprice","tags":["Inventions"],"summary":"Set an invention’s price","description":"Unlike update/publish, this one POSTs a JSON body. Creator only; a negative price is rejected, as is one over 1000 tokens (`MAX_INVENTION_PRICE`).","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention and its new price","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Tokens, 0–1000 (MAX_INVENTION_PRICE)","example":12345}},"required":["InventionId","Price"]}}}},"responses":{"200":{"description":"The repriced invention, in the save envelope","content":{"application/json":{"schema":{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]}},"required":["Status","Invention","InventionVersion"]}}}},"400":{"description":"Unparseable body, or a price below 0 or over 1000","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s invention","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention"}}}},"/api/inventions/v1/settags":{"post":{"operationId":"postApiInventionsV1Settags","tags":["Inventions"],"summary":"Replace an invention’s tags","description":"`CustomTags` are the creator’s own (Type 0), `AutoTags` the ones the client derives from the invention (Type 2); both lists are replaced wholesale. Creator only.\n\nEvery tag in either list must be at most 15 letters (a–z once lowercased); one that isn’t fails the whole call, so no tag is ever silently dropped.\n\nNote the asymmetry: this answers the flat list of tag *names* (auto first, then custom), while `v1/details` serves the typed `{ Tag, Type }` objects.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The replacement tag lists","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AutoTags":{"description":"Client-derived tags (Type 2); each at most 15 letters once lowercased","type":"array","items":{"type":"string"}},"CustomTags":{"description":"Creator-submitted tags (Type 0); each at most 15 letters once lowercased","type":"array","items":{"type":"string"}}},"required":["InventionId"]}}}},"responses":{"200":{"description":"The resulting tag names","content":{"application/json":{"schema":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"Auto tags first, then custom"}},"required":["Result","Tags"]}}}},"400":{"description":"Unparseable body, or a tag that breaks the rule","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s invention","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention"}}}},"/api/inventions/v1/details":{"get":{"operationId":"getApiInventionsV1Details","tags":["Inventions"],"summary":"An invention’s detail card","description":"Which in practice is just its tags, as typed `{ Tag, Type }` objects. An untagged invention reports an empty list.","parameters":[{"name":"inventionId","in":"query","required":false,"description":"Invention id; required","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The invention’s tags","content":{"application/json":{"schema":{"type":"object","properties":{"Tags":{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["Tags"]}}}},"400":{"description":"Missing or non-numeric inventionId","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No such invention"}}}},"/api/inventions/v1/toptoday":{"get":{"operationId":"getApiInventionsV1Toptoday","tags":["Inventions"],"summary":"The “top today” feed","description":"Published inventions ranked by how many players acquired them in the last 24 hours, counted from the purchase records — free grants included, one per player per invention. Genuinely a window: an invention nobody has picked up since yesterday falls off, and a day with no acquisitions at all serves an empty list. It trails the clock rather than resetting at midnight.","parameters":[{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 50)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The top inventions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]}}}}}}}},"/api/inventions/v1/featured":{"get":{"operationId":"getApiInventionsV1Featured","tags":["Inventions"],"summary":"The featured feed","description":"Curated (`IsFeatured`) inventions, newest first — published and non-hidden only. Serves an empty list while nothing is flagged rather than standing in the top feed: the client presents these as hand-picked, so a fallback would be a lie.","parameters":[{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 50)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The featured inventions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]}}}}}}}},"/api/inventions/v1/featureddormskins":{"get":{"operationId":"getApiInventionsV1Featureddormskins","tags":["Inventions"],"summary":"The featured dorm-skin feed","description":"Curated dorm-skin inventions. Nothing is curated yet, so it is empty.","responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/inventions/v1/fromcreators":{"get":{"operationId":"getApiInventionsV1Fromcreators","tags":["Inventions"],"summary":"Inventions by particular creators","description":"The inventions of the accounts named by `id` (repeatable), newest first — a creator’s portfolio, and the \"from creators you follow\" row. Only PUBLISHED inventions are listed, the caller’s own included: unpublished ones are served by `v2/mine` alone. No `id` is an empty array.","parameters":[{"name":"id","in":"query","required":false,"description":"Creator account id; repeatable","schema":{"type":"integer","example":12345}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The creators’ inventions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions","UgcVersion","DisplayMetadataJson","LatestVersionNumber","ForceCannotPublish","IsRecRoomApproved"]}}}}}}}},"/api/inventions/v2/search":{"get":{"operationId":"getApiInventionsV2Search","tags":["Inventions"],"summary":"Search / browse inventions","description":"Published inventions matching `value`, newest first. `value` is split into terms and every term must match, each against the name and the description. An absent `value` browses everything published — that is the browse screen’s initial request. A `value` starting with `@` names a player: `@djdevin` lists that player’s PUBLISHED inventions (the same set `v1/fromcreators` serves), resolved by username case-insensitively, with any further terms narrowing them as text; an unknown username is an empty array. Tags are NOT searched: a `#tag` term from the browse screen’s filter chips is treated as text and matches nothing.","parameters":[{"name":"value","in":"query","required":false,"description":"Search text; absent browses everything; `@username` is a player’s inventions","schema":{"type":"string"}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The matching inventions","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]}}}}}}}},"/api/inventions/v2/mine":{"get":{"operationId":"getApiInventionsV2Mine","tags":["Inventions"],"summary":"The caller’s own inventions","description":"“My inventions”, newest first — the ones the caller created plus the ones they bought. Includes unpublished ones, which nobody else can see, and keeps a bought invention listed even if it has since been unpublished or hidden. Not paginated.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s inventions — the stored record with the newer client’s flat DTO laid over it","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions","UgcVersion","DisplayMetadataJson","LatestVersionNumber","ForceCannotPublish","IsRecRoomApproved"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/customAvatarItems/v1/{id}/report":{"post":{"operationId":"postApiCustomAvatarItemsV1ByIdReport","tags":["Avatar","Moderation"],"summary":"Report a custom avatar item","description":"Files a report against a custom avatar item, named by the PATH. Stored as a row in the same `report` table a player report goes to (`POST /api/PlayerReporting/v3/create`), an event report and an invention report — the same submission with the same moderation life, which a moderator converts into a ban the same way. What marks it as an item report is `custom_avatar_item_id`; the row’s `reported_player_id` is the item’s CREATOR, read from the item. The body’s `ReportedPlayerId` is sent as null and IGNORED even when set — the client does not know who made the item, and letting a client name who a report is against would let it point one at anybody. Nothing fills `room_id`: an item isn’t tied to one room the way an event is.\n\nThe reporter is the caller (from the bearer token), never a body field. `ReportCategory` is stored verbatim — the enum is not mapped here. Nothing dedupes the rows: reporting the same item twice files two reports, and reporting your own is allowed rather than being a special case.\n\nAnswers the `{ success, error }` envelope the event and invention reports use, `error` being an empty string rather than null, on the rejected branches too so there is only one shape to parse.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The custom avatar item’s guid","schema":{"type":"integer","example":12345}}],"requestBody":{"description":"The report","content":{"application/json":{"schema":{"type":"object","properties":{"ReportCategory":{"description":"The reason picked in the report UI. Stored verbatim; unmapped","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Details":{"description":"The free-text description the reporter typed","type":"string"},"ReportedPlayerId":{"description":"Sent as null and IGNORED — the reported player is the item’s creator","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]}}}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such custom avatar item","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/inventions/v1/cheer":{"post":{"operationId":"postApiInventionsV1Cheer","tags":["Inventions"],"summary":"Cheer or un-cheer an invention","description":"Persists the caller’s cheer state and resyncs the invention’s `CheerCount`. Repeating the same state is idempotent.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention and new cheer state","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The invention whose cheer state is changing","example":12345},"Cheer":{"type":"boolean","description":"True to cheer; false to remove the cheer"}},"required":["InventionId","Cheer"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"Invalid body","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such invention","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/inventions/v2/cheer":{"post":{"operationId":"postApiInventionsV2Cheer","tags":["Inventions"],"summary":"Cheer or un-cheer an invention (v2)","description":"`v1/cheer` for the newer client: persists the caller’s cheer state and resyncs the invention’s `CheerCount`; repeating the same state is idempotent. Answers the `{ Value, Success, Error, error_id }` envelope with `Value` null, and a refusal — a bad body, an unknown invention — is `Success: false` with a message rather than an error status.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention and new cheer state","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The invention whose cheer state is changing","example":12345},"Cheer":{"type":"boolean","description":"True to cheer; false to remove the cheer"}},"required":["InventionId","Cheer"]}}}},"responses":{"200":{"description":"The envelope, `Value` null either way","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"type":"null","description":"Always null — the invention no longer exists"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; null on success"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"type":"null","description":"Always null — the invention no longer exists"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; null on success"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/inventions/v1/report":{"post":{"operationId":"postApiInventionsV1Report","tags":["Inventions","Moderation"],"summary":"Report an invention","description":"Files a report against an invention. Stored as a row in the same `report` table a player report goes to (`POST /api/PlayerReporting/v3/create`) and an event report (`POST /api/playerevents/v1/report`) — it is the same submission with the same moderation life, and a moderator converts any of them into a ban the same way. What marks it as an invention report is `invention_id`; the row’s `reported_player_id` is the invention’s CREATOR — who a moderator would act against — read from the invention rather than sent by the client. Nothing fills `room_id`: an invention isn’t tied to one room the way an event is.\n\nThe reporter is the caller (from the bearer token), never a body field. `ReportCategory` is stored verbatim — the enum is not mapped here. Nothing dedupes the rows: reporting the same invention twice files two reports, and reporting your own is allowed rather than being a special case.\n\nAnswers the same `{ success, error }` envelope as the event report, `error` being an empty string rather than null, on the rejected branches too so there is only one shape to parse.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The report","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The invention being reported","example":12345},"ReportCategory":{"description":"The reason picked in the report UI. Stored verbatim; unmapped","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Details":{"description":"The free-text description the reporter typed","type":"string"}},"required":["InventionId"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No usable `InventionId` in the body","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such invention","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/inventions/v6/save":{"post":{"operationId":"postApiInventionsV6Save","tags":["Inventions"],"summary":"Save a new invention","description":"Records an invention’s metadata. The data file itself is uploaded separately through the `storage` worker and referenced here by `inventionDataFilename` — the one required field, since an invention with no data blob is unusable. An omitted name/description is defaulted rather than rejected; a supplied one must be 3–24 characters of letters, digits, spaces, dashes and colons (name) or at most 512 characters (description).\n\nA freshly saved invention is private: it shows up only in the creator’s own list until they call `v3/publish`.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention metadata (camelCase)","content":{"application/json":{"schema":{"type":"object","properties":{"inventionDataFilename":{"type":"string","description":"The blob uploaded through the storage worker; the one required field"},"name":{"description":"3–24 chars: letters, digits, spaces, dashes, colons. Omitted/blank ⇒ “Untitled”","type":"string"},"description":{"description":"At most 512 chars. Omitted/blank ⇒ “No description yet”","type":"string"},"imageName":{"type":"string"},"instantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"lightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"chipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"cloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"aiCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"creationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"referencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"creatorAccountRole":{"description":"Accepted and ignored — a room role, not a permission over the invention","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["inventionDataFilename"]}}}},"responses":{"200":{"description":"The stored invention, carrying its assigned id","content":{"application/json":{"schema":{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CurrentVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsPublished":{"type":"boolean","description":"Unpublished inventions are visible only to their creator"},"IsFeatured":{"type":"boolean"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"What other players may do with it once published","example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"Price":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AllowTrial":{"type":"boolean"},"HideFromPlayer":{"type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Set from `v9/save` on — absent on an invention saved through `v6/save`","type":"array","items":{"type":"string"}},"UgcVersion":{"description":"An invention field, not a version one — set from `v9/save` on","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LongDescription":{"description":"Set from `v9/save` on, when non-empty","type":"string"},"DisplayMetadataJson":{"description":"The client’s own display state, stored as the opaque string it sent","type":"string"},"ConvertedFromInventionId":{"description":"The invention this one was converted from, when `v9/save` named one","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Tags":{"description":"The real RRInvention carries no Tags field. Unset by `v6/save`; set by `v9/save` when its `tagsRequest` names at least one tag","type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = custom, 2 = auto","example":12345}},"required":["Tag","Type"]}}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","CurrentVersionNumber","CurrentVersion","Accessibility","IsPublished","IsFeatured","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","Price","AllowTrial","HideFromPlayer","ReferencedInventions"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string","description":"The `.inv` key in the storage worker‘s bucket"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Base64 SHA-256 of the blob; null when it was never uploaded"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"description":"Set from `v9/save` on — absent on a version saved through `v6/save`","type":"boolean"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio bundle ids to resolve before spawning the invention","type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","BlobName","BlobHash","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","AICost"]}},"required":["Status","Invention","InventionVersion"]}}}},"400":{"description":"Unparseable body, no inventionDataFilename, or an invalid name/description","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/inventions/v9/save":{"post":{"operationId":"postApiInventionsV9Save","tags":["Inventions"],"summary":"Save a new invention (v9)","description":"`v6/save` plus the fields the newer client sends: `referencedUnityAssetIds`, `longDescription`, `displayMetadataJson`, `convertedFromInventionId`, `ugcVersion`, `hasBetaContent`, and a `tagsRequest` carrying the same `AutoTags`/`CustomTags` lists `v1/settags` takes. Every one is optional and is stored only when sent, so a body v6 would accept produces the same record here.\n\nThe reply is where the two versions part: v9 is ENVELOPED as `{ Value, Success, Error, error_id }`, with v6’s `{ Status, Invention, InventionVersion }` inside `Value` alongside a `TagsResponse`. The client reads `Success` and then `Value.Invention.InventionId`; `Error` is the only text it ever shows a human.\n\nSo a refusal is *also* a 200 carrying `{ Success: false, Error, Value: null }` — the client dereferences `Value` unguarded when `Success` is true, and treats anything that isn’t this envelope as a null one. Tags are held to the `v1/settags` rule (at most 15 letters each), but one that breaks it costs the tags and not the save: `TagsResponse.Result` comes back non-zero and the creator re-submits them through `v1/settags`.\n\nA freshly saved invention is private: it shows up only in the creator’s own list until they call `v3/publish`.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention metadata (camelCase)","content":{"application/json":{"schema":{"type":"object","properties":{"inventionDataFilename":{"type":"string","description":"The blob uploaded through the storage worker; the one required field"},"name":{"description":"3–24 chars: letters, digits, spaces, dashes, colons. Omitted/blank ⇒ “Untitled”","type":"string"},"description":{"description":"At most 512 chars. Omitted/blank ⇒ “No description yet”","type":"string"},"imageName":{"type":"string"},"instantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"lightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"chipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"cloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"aiCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"creationRoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"referencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"creatorAccountRole":{"description":"Accepted and ignored — a room role, not a permission over the invention","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ugcVersion":{"description":"The UGC format the blob was written in","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"hasBetaContent":{"type":"boolean"},"referencedUnityAssetIds":{"type":"array","items":{"type":"string"}},"longDescription":{"description":"Stored when non-empty","type":"string"},"displayMetadataJson":{"description":"Opaque client display state, e.g. `{\"0\":0,\"99\":0}`; stored verbatim","type":"string"},"convertedFromInventionId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"tagsRequest":{"description":"The same two lists `v1/settags` takes, folded into the save","type":"object","properties":{"AutoTags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"CustomTags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"additionalProperties":false}},"required":["inventionDataFilename"]}}}},"responses":{"200":{"description":"The envelope — the stored invention under `Value`, or `Success: false` with `Error` when the save was refused","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/inventions/v2/metadata":{"put":{"operationId":"putApiInventionsV2Metadata","tags":["Inventions"],"summary":"Edit an invention’s metadata (v2)","description":"Creator only. Every field but `InventionId` is nullable and a null one is left as it is — the client sends the whole shape on every edit — so this is a patch, not a replace. An empty string is not a null: it is how a creator CLEARS a description, long description or image. `Name` is the exception, since a nameless invention isn’t a thing the client can draw: it is held to the same 3–24 character rule `v6/save` enforces, which an empty name fails.\n\n`TagsRequest` replaces both tag lists wholesale, exactly as `v1/settags` does; a null one leaves the stored tags alone. A tag that breaks the tag rule costs the tags and not the edit — `TagsResponse.Result` comes back non-zero.\n\nAnswers the enveloped result `v9/save` answers, carrying the UPDATED invention: the client re-renders the detail page from `Value.Invention`. Refusals — an unknown invention and someone else’s alike — are `Success: false` with a null `Value` rather than a bare error body, which that client cannot parse.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The fields to change","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"description":"3–24 chars, letters/digits/spaces/dashes/colons; null leaves it alone","anyOf":[{"type":"string"},{"type":"null"}]},"Description":{"description":"Max 512 chars; empty clears it","anyOf":[{"type":"string"},{"type":"null"}]},"LongDescription":{"description":"Empty clears it","anyOf":[{"type":"string"},{"type":"null"}]},"ImageName":{"description":"New thumbnail; empty clears it","anyOf":[{"type":"string"},{"type":"null"}]},"TagsRequest":{"description":"Replaces both lists wholesale, as `v1/settags` does; null leaves them alone","anyOf":[{"type":"object","properties":{"AutoTags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"CustomTags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]}},"required":["InventionId"]}}}},"responses":{"200":{"description":"The envelope — the updated invention under `Value`, or `Success: false` with `Error` when the edit was refused","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/inventions/v2/update":{"post":{"operationId":"postApiInventionsV2Update","tags":["Inventions"],"summary":"Edit an invention (v2)","description":"The newer client’s form of `v1/update`: a PascalCase JSON body in place of the query string. A patch, not a replace — every field but `InventionId` is nullable and a null one is left as it is, since the client sends the whole shape on every edit.\n\n**Creator only.** `Permission` decides what other players may do with the invention — up to editing, re-publishing and charging for it — so only the account that created it may set it.\n\n`Permission` is the raw `GeneralPermission` ladder number (UseOnly 20, EditAndSave 40, Publish 60 …), stored verbatim and unmapped, exactly as `v1/update` stores the value its picker names. A null one LEAVES IT ALONE — unlike `v4/publish`, where null means UseOnly: publishing something with no permission named is a decision, but editing it without naming one is not.\n\nPublishing, pricing and tags are elsewhere (`v4/publish`, `v1/updateprice`, `v2/metadata`), as they are for `v1/update`.\n\nAnswers the enveloped result `v9/save` answers, carrying the UPDATED invention: the client re-renders the detail sheet from `Value.Invention`, so a refusal — an unknown invention and someone else’s alike — is `Success: false` with a null `Value` rather than a bare error body, which that client cannot parse.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The fields to change","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Permission":{"description":"The `GeneralPermission` other players get, as a raw ladder number: Unassigned 0, LimitedOneUseOnly 10, DisallowKeyLock 15, UseOnly 20, EditAndSave 40, Publish 60, Charge 80, Unlimited 100. Unlike `v4/publish`, null LEAVES IT ALONE rather than falling back to UseOnly — an edit that names no permission is not a demotion","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"AllowTrial":{"description":"Whether other players may trial it; null leaves it alone","anyOf":[{"type":"boolean"},{"type":"null"}]},"Name":{"description":"3–24 chars, letters/digits/spaces/dashes/colons; null leaves it alone","anyOf":[{"type":"string"},{"type":"null"}]},"Description":{"description":"Max 512 chars; empty clears it","anyOf":[{"type":"string"},{"type":"null"}]},"LongDescription":{"description":"Empty clears it","anyOf":[{"type":"string"},{"type":"null"}]},"ImageName":{"description":"New thumbnail; empty clears it","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId"]}}}},"responses":{"200":{"description":"The envelope — the updated invention under `Value`, or `Success: false` with `Error` when the edit was refused","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/inventions/v4/addversion":{"post":{"operationId":"postApiInventionsV4Addversion","tags":["Inventions"],"summary":"Add a version to an invention","description":"Creator only. Parks the previous revision and makes a new one current — the quick-action “Save Invention Update” path used when iterating on a Rooms 2 / Studio invention. The data blob is uploaded separately through the `storage` worker and named here by `InventionDataFilename` (required).\n\n`ReferencedUnityAssetIds` is how Studio content rides on the revision; `UgcVersion` / `HasBetaContent` match what `v9/save` stores on a first save. An invention may have at most 50 versions (including the first); past that the call is refused rather than dropping history.\n\nAnswers the enveloped result `v9/save` answers, carrying the UPDATED invention. Refusals are `Success: false` with a null `Value`.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention id and the new revision","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The invention to append a version to; caller must be the creator","example":12345},"InventionDataFilename":{"type":"string","description":"The blob uploaded through the storage worker; required, like `v9/save`"},"ImageName":{"description":"New thumbnail; null/empty leaves it alone","anyOf":[{"type":"string"},{"type":"null"}]},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AICost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"UgcVersion":{"description":"The UGC format the blob was written in","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"description":"Studio Unity asset ids the revision points at","type":"array","items":{"type":"string"}}},"required":["InventionId","InventionDataFilename"]}}}},"responses":{"200":{"description":"The envelope — the updated invention under `Value`, or `Success: false` with `Error` when the update was refused","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/inventions/v4/publish":{"post":{"operationId":"postApiInventionsV4Publish","tags":["Inventions"],"summary":"Publish an invention (v4)","description":"What puts an invention into search and the feeds. Creator only.\n\n`Permission` is the `GeneralPermission` other players get, as a raw ladder number (the publish sheet sends 20, UseOnly). `Accessibility` says whether it is in the store — 1 (Public) lists it in search and the feeds, 2 (Unlisted) publishes it onto the creator’s portfolio and reachable by id but keeps it out of both. A null `Price` leaves the price alone rather than zeroing it, so re-publishing something that was for sale doesn’t give it away; every field but `InventionId` is nullable and an omitted one keeps what the invention has. A price over 1000 tokens (`MAX_INVENTION_PRICE`) refuses the publish in-band.\n\nPublishing is undone by `v2/unpublish`, and re-publishing doesn’t re-date the first publish. Refusals answer `Success: false` with a null `Value`, the way `v9/save` does.","security":[{"bearerAuth":[]}],"requestBody":{"description":"What the publish decides","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Permission":{"description":"The `GeneralPermission` other players get, as a raw ladder number: Unassigned 0, LimitedOneUseOnly 10, DisallowKeyLock 15, UseOnly 20, EditAndSave 40, Publish 60, Charge 80, Unlimited 100. Null publishes as UseOnly","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"Accessibility":{"description":"Public 1 publishes it into the store; Unlisted 2 publishes it but keeps it out of search and the feeds","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"Price":{"description":"Price in tokens, at most 1000 (MAX_INVENTION_PRICE); null leaves it as it is, a negative one is ignored, and one over the cap refuses the publish","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]}},"required":["InventionId"]}}}},"responses":{"200":{"description":"The envelope — the published invention under `Value`, or `Success: false` with `Error` when the publish was refused","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/inventions/v2/unpublish":{"post":{"operationId":"postApiInventionsV2Unpublish","tags":["Inventions"],"summary":"Unpublish an invention","description":"Creator only. Takes the invention back out of search, the feeds and the creator’s portfolio: `IsPublished` goes false and `Accessibility` back to 0, the state a save mints, so the next `v4/publish` sets both afresh. Players who already bought it keep it, the price and permission are left as they are, and the first-publish date is not cleared.\n\nAnswers the enveloped result `v4/publish` answers, carrying the unpublished invention. Refusals are `Success: false` with a null `Value`.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention to unpublish","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The invention to unpublish; the caller must have created it","example":12345}},"required":["InventionId"]}}}},"responses":{"200":{"description":"The envelope — the unpublished invention under `Value`, or `Success: false` with `Error` when it was refused","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"anyOf":[{"type":"object","properties":{"Status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; the client never reads it on this route","example":12345},"Invention":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Name":{"type":"string"},"Description":{"type":"string"},"ImageName":{"type":"string"},"UgcVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The UGC format the blob was written in; 1 when the save named none","example":12345},"CurrentVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LatestVersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The same as CurrentVersionNumber on a fresh save","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ForceCannotPublish":{"type":"boolean","description":"Always false — nothing here forbids publishing"},"ModifiedAt":{"type":"string"},"CreatedAt":{"type":"string"},"FirstPublishedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreationRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"NumPlayersHaveUsedInRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"NumDownloads":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"GeneralPermission":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsAGInvention":{"type":"boolean"},"IsCertifiedInvention":{"type":"boolean"},"IsRecRoomApproved":{"type":"boolean","description":"Always false — nothing here approves an invention"},"AllowTrial":{"type":"boolean"},"Price":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"HideFromPlayer":{"type":"boolean"},"DisplayMetadataJson":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["InventionId","ReplicationId","CreatorPlayerId","Name","Description","ImageName","UgcVersion","CurrentVersionNumber","LatestVersionNumber","Accessibility","ForceCannotPublish","ModifiedAt","CreatedAt","FirstPublishedAt","CreationRoomId","NumPlayersHaveUsedInRoom","NumDownloads","CheerCount","CreatorPermission","GeneralPermission","IsAGInvention","IsCertifiedInvention","IsRecRoomApproved","AllowTrial","Price","HideFromPlayer","DisplayMetadataJson"]},"InventionVersion":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ReplicationId":{"type":"string"},"VersionNumber":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"HasBetaContent":{"type":"boolean"},"InstantiationCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"LightsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ChipsCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CloudVariablesCost":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"BlobName":{"type":"string"},"BlobHash":{"anyOf":[{"type":"string"},{"type":"null"}]},"CreatedAt":{"type":"string"},"UgcAccessibility":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — versions carry no accessibility"},"ReferencedInventions":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"ReferencedUnityAssetIds":{"type":"array","items":{"type":"string"}}},"required":["InventionId","ReplicationId","VersionNumber","HasBetaContent","InstantiationCost","LightsCost","ChipsCost","CloudVariablesCost","BlobName","BlobHash","CreatedAt","UgcAccessibility","ReferencedInventions","ReferencedUnityAssetIds"]},"TagsResponse":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success; non-zero when a tag broke the tag rule","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The stored tag NAMES, auto first, then custom"}},"required":["Result","Tags"]}},"required":["Status","Invention","InventionVersion","TagsResponse"]},{"type":"null"}],"description":"Null when Success is false — and only then"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; the only text the client shows"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/inventions/v2/delete":{"post":{"operationId":"postApiInventionsV2Delete","tags":["Inventions"],"summary":"Delete an invention","description":"Creator only — a buyer or a co-owner cannot delete someone else’s invention. The record goes entirely: its versions, tags and referenced-invention lists live in the same row.\n\nWhat survives is deliberate. The data blob stays in storage, because nothing here knows whether another record still points at that filename. The ownership rows of players who bought it stay too — a delete must not rewrite what someone else paid for — and they fall out of every list on their own, since an owned id with no invention row behind it is skipped.\n\nAnswers the `{ Value, Success, Error, error_id }` envelope the other v2+ invention routes use, with `Value` NULL: the invention is gone, so there is nothing to redraw from and the client reads only `Success`. Refusals — an unknown invention and someone else’s alike — are `Success: false` with a message, not a bare error body that client cannot parse.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The invention to delete","content":{"application/json":{"schema":{"type":"object","properties":{"InventionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The invention to delete; the caller must have created it","example":12345}},"required":["InventionId"]}}}},"responses":{"200":{"description":"The delete envelope, `Value` null either way","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"type":"null","description":"Always null — the invention no longer exists"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; null on success"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}},"401":{"description":"The same envelope, refused — not an empty body","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"type":"null","description":"Always null — the invention no longer exists"},"Success":{"type":"boolean"},"Error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The refusal message; null on success"},"error_id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"}},"required":["Value","Success","Error","error_id"]}}}}}}},"/api/sanitize/v1":{"post":{"operationId":"postApiSanitizeV1","tags":["Gameplay"],"summary":"Sanitize a string","description":"Masks any swear in the posted `Value` and returns the cleaned text as a bare JSON string. Each character of a swear becomes the request’s `ReplacementChar` (`*` when it names none), so the shape of the message survives; text with nothing to object to comes back untouched. `PreRemoveBlockedCharacters` strips control and zero-width characters first — the ones used to break a word up so a filter misses it. `Context`, `Intent` and `ruleset` are accepted and ignored: they pick among the reference’s filtering policies, and this server has one.","requestBody":{"description":"The text to clean","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"type":"string","description":"The text to clean or check"},"ReplacementChar":{"description":"The mask a swear’s characters are replaced with. Defaults to `*`","type":"string"},"PreRemoveBlockedCharacters":{"description":"Strip control and zero-width characters before filtering","type":"boolean"},"Context":{"description":"The surface being checked, e.g. `RoomChat`. Ignored","type":"string"},"Intent":{"description":"Reference filtering intent. Ignored","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ruleset":{"description":"Reference ruleset — lowercase, as the client sends it. Ignored","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Value"]}}}},"responses":{"200":{"description":"The cleaned text (a bare JSON string)","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/sanitize/v1/isPure":{"post":{"operationId":"postApiSanitizeV1IsPure","tags":["Gameplay"],"summary":"Whether a string is clean","description":"Reports whether the posted `Value` contains a swear — the check the client runs against a display name, room name or invention title before it accepts one. Matching is word-boundary aware, so ordinary words that contain a swear (`analysis`, `Scunthorpe`, `class`) are pure, while leetspeak (`sh1t`, `a$$hole`) is not. An empty or absent `Value` is pure.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The text to check","content":{"application/json":{"schema":{"type":"object","properties":{"Value":{"type":"string","description":"The text to clean or check"},"ReplacementChar":{"description":"The mask a swear’s characters are replaced with. Defaults to `*`","type":"string"},"PreRemoveBlockedCharacters":{"description":"Strip control and zero-width characters before filtering","type":"boolean"},"Context":{"description":"The surface being checked, e.g. `RoomChat`. Ignored","type":"string"},"Intent":{"description":"Reference filtering intent. Ignored","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ruleset":{"description":"Reference ruleset — lowercase, as the client sends it. Ignored","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Value"]}}}},"responses":{"200":{"description":"Whether the text is clean","content":{"application/json":{"schema":{"type":"object","properties":{"IsPure":{"type":"boolean"}},"required":["IsPure"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/sanitize/v2/isAllowed/bulk":{"post":{"operationId":"postApiSanitizeV2IsAllowedBulk","tags":["Gameplay"],"summary":"Whether each of several strings is clean (Studio)","description":"Rec Room Studio posts every piece of text in a scene before an upload, as a form with one `Values` field per string. Answers `{ Success, Error, Value: { ArePure } }` — `ArePure[i]` is whether `Values[i]` is free of swears, by the same filter as `/api/sanitize/v1/isPure`. `Error` is null on success: the editor asserts the two agree.","responses":{"200":{"description":"One verdict per posted string, in order","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"/api/activities/charades/v1/words/{activity}":{"get":{"operationId":"getApiActivitiesCharadesV1WordsByActivity","tags":["Gameplay"],"summary":"An activity’s word bank","description":"The words an activity draws from. `Charades` (and unknown names) get the charades list (stock preloaded, or the admin Custom deck when that mode is selected); `Icebreakers` gets its own bank from RRArchive. On April 1st (UTC) the April Fools word list replaces Charades only.","parameters":[{"name":"activity","in":"path","required":true,"description":"Activity name, e.g. `Charades` or `Icebreakers`.","schema":{"type":"string"}}],"responses":{"200":{"description":"The word list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/keepsakes/globalconfig":{"get":{"operationId":"getApiKeepsakesGlobalconfig","tags":["Gameplay"],"summary":"Keepsake feature switches","description":"Whether keepsakes (room mementos) are on and how many a room may hold. The feature reports as enabled, but nothing stores keepsakes yet.","responses":{"200":{"description":"The keepsake config","content":{"application/json":{"schema":{"type":"object","properties":{"KeepsakeFeatureEnabled":{"type":"boolean"},"KeepsakeRoomLimit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SocialXpBoostEnabled":{"type":"boolean"}},"required":["KeepsakeFeatureEnabled","KeepsakeRoomLimit","SocialXpBoostEnabled"]}}}}}}},"/api/keepsakes/rooms/{roomId}":{"get":{"operationId":"getApiKeepsakesRoomsByRoomId","tags":["Gameplay"],"summary":"A room’s keepsakes","description":"No keepsake storage yet. Answers 204 with no body rather than an empty list — that is what the reference does, and the client treats a body here as data.","parameters":[{"name":"roomId","in":"path","required":true,"description":"Room id","schema":{"type":"integer","example":12345}}],"responses":{"204":{"description":"No keepsakes (empty body)"}}}},"/api/keepsakes/categories":{"get":{"operationId":"getApiKeepsakesCategories","tags":["Gameplay"],"summary":"Keepsake categories","description":"No keepsake catalog yet, so the result set is empty — but it IS a result set (`{ Results, TotalResults }`), not the empty list the stubs around it serve. The client parses this one as an object and fails on an array (\"expected '{', actual '['\"), taking the keepsake load down with it. `TotalResults` counts `Results` itself — there is no paging here.","responses":{"200":{"description":"An empty result set","content":{"application/json":{"schema":{"type":"object","properties":{"Results":{"type":"array","items":{},"description":"The categories — empty, as no keepsake catalog is stored"},"TotalResults":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many results `Results` carries","example":12345}},"required":["Results","TotalResults"]}}}}}}},"/api/communityboard/v2/current":{"get":{"operationId":"getApiCommunityboardV2Current","tags":["Gameplay"],"summary":"The current community board","description":"The rotating community board on the home screen — featured player, featured room group, announcement and image strips. The admin console’s board, or the static default; featured rooms are served as whole rooms, looked up live by id.","responses":{"200":{"description":"The community board","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}}},"/api/CircuitChipLists/{list}":{"get":{"operationId":"getApiCircuitChipListsByList","tags":["Gameplay"],"summary":"One circuit chip list","description":"A palette on the Maker Pen’s circuit board, named by the path (`Favorites`, `Recent`, …). Always empty: nothing records which chips a player has used or favourited yet. An unknown name is empty too rather than a 404 — the client asks for whichever palettes its build has, and a 404 renders as a palette that failed to load rather than one with nothing in it.","parameters":[{"name":"list","in":"path","required":true,"description":"The palette name, e.g. `Favorites`","schema":{"type":"string"}}],"responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/announcement/v1/get":{"get":{"operationId":"getApiAnnouncementV1Get","tags":["Gameplay"],"summary":"Announcements","description":"Announcement Details records for the Watch dialog (image / title / body / READ MORE). Bare array. Filtered by the token’s platform when present (`Platform` -1 = All).","responses":{"200":{"description":"The live announcement list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/gamesight/event":{"post":{"operationId":"postApiGamesightEvent","tags":["Gameplay"],"summary":"Analytics event sink","description":"The client’s GameSight attribution/analytics events. Accepted and dropped — nothing is persisted. Answers 200 with an empty body.","responses":{"200":{"description":"Accepted (empty body)"}}}},"/api/playerevents/v1":{"get":{"operationId":"getApiPlayereventsV1","tags":["Events"],"summary":"The player-events browse feed","description":"The default feed on the player-events screen: every event that has not finished yet — upcoming and running — soonest first, paginated via skip/take. A bare array.\n\nEach entry is the client’s BASE event — the v2 envelope’s event minus `Tags`, 17 keys — not the stored record the by-id, bulk and search reads serve: it drops `State`, serves `ImageName` as `\"\"` rather than null, and carries `BroadcastingRoomInstanceId` (always null — nothing broadcasts an event yet). That is the shape observed on this endpoint; keep the two projections apart.","parameters":[{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 50)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The events that have not ended","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId"]}}}}}}}},"/api/playerevents/v1/all":{"get":{"operationId":"getApiPlayereventsV1All","tags":["Events"],"summary":"The caller’s player events","description":"Events the player created and events they have RSVP’d to. `Created` is served from the event table, soonest first.\n\n`Responses` is still always empty. RSVPs ARE stored now (see `/api/playerevents/v1/respond` and the `event_attendee` table) — what isn’t known is the shape this field wants: whether an entry is a bare event like `Created`, or the event plus the answer, which is the useful thing to render. Serving the wrong one renders nothing rather than erroring, so it stays empty until a real response is observed.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s created events, and an empty RSVP list","content":{"application/json":{"schema":{"type":"object","properties":{"Created":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Banner image; null until one is uploaded"},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"State":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = scheduled","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["PlayerEventId","CreatorPlayerId","ImageName","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","State","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions"]},"description":"Events the caller created, soonest first"},"Responses":{"type":"array","items":{},"description":"Events the caller RSVP’d to — always empty; RSVPs are stored, but this field’s entry shape has not been observed yet"}},"required":["Created","Responses"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/playerevents/v1/all/{playerId}":{"get":{"operationId":"getApiPlayereventsV1AllByPlayerId","tags":["Events"],"summary":"A player’s public events","description":"The events on a player’s profile: the PUBLIC ones they created (`Created`) and the PUBLIC ones they are attending (`Responses`), each soonest first. Public (no auth); finished events are left out, and a player with none — or an unknown id — gets two empty lists.\n\nEvents are the client’s 17-key BASE event, as on the browse feed. A `Responses` entry is a pair, `{ PlayerEvent, PlayerEventResponse }`, and only Going RSVPs (`Type` 0) are listed — a maybe, a decline or an unanswered invitation is not attending. A creator is Going to their own event, so it appears under both keys.","parameters":[{"name":"playerId","in":"path","required":true,"description":"Player id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The player’s public events","content":{"application/json":{"schema":{"type":"object","properties":{"Created":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId"]},"description":"Public events the player created"},"Responses":{"type":"array","items":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId"]},"PlayerEventResponse":{"type":"object","properties":{"PlayerEventResponseId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Stable id of the RSVP row","example":12345},"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string","description":"When the answer that stands was given — a changed answer updates the row, so this moves with it rather than recording the player’s first response"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 Going, 1 Interested, 2 Can’t go, 3 Pending (invited, not yet answered)","example":12345}},"required":["PlayerEventResponseId","PlayerEventId","PlayerId","CreatedAt","Type"]}},"required":["PlayerEvent","PlayerEventResponse"]},"description":"Public events the player is attending, each beside their Going RSVP"}},"required":["Created","Responses"]}}}}}}},"/api/playerevents/v1/tagfilters":{"get":{"operationId":"getApiPlayereventsV1Tagfilters","tags":["Events"],"summary":"Player-event filter chips","description":"The filter chips on the player-events browse screen — the event categories the client offers. Static: the same set regardless of what is stored. `TrendingFilters` is null even in the reference (it needs recent-activity data), and the client renders no trending row for null.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The filter chips","content":{"application/json":{"schema":{"type":"object","properties":{"PinnedFilters":{"type":"array","items":{"type":"string"}},"PopularFilters":{"type":"array","items":{"type":"string"}},"TrendingFilters":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Null — needs recent-activity data we don‘t keep"}},"required":["PinnedFilters","PopularFilters","TrendingFilters"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/playerevents/v1/clubs":{"get":{"operationId":"getApiPlayereventsV1Clubs","tags":["Events"],"summary":"Player events across several clubs","description":"The events shelf for a set of clubs (`?id=1&id=2`), soonest first. This form returns a BARE ARRAY — the client deserializes it as a list and chokes on the paged envelope the single-club form below uses. Do not unify the two. No ids means an empty shelf, not every event.","parameters":[{"name":"id","in":"query","required":false,"description":"Repeatable club id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The clubs’ events","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Banner image; null until one is uploaded"},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"State":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = scheduled","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["PlayerEventId","CreatorPlayerId","ImageName","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","State","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions"]}}}}}}}},"/api/playerevents/v1/club/{clubId}":{"get":{"operationId":"getApiPlayereventsV1ClubByClubId","tags":["Events"],"summary":"Player events for one club","description":"The same feed for a single club — and this form DOES wrap the events with a paging cursor, matching the reference. The cursor is always empty: a club’s event list is small enough to serve in one page.","parameters":[{"name":"clubId","in":"path","required":true,"description":"Club id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The club’s events, in a single page","content":{"application/json":{"schema":{"type":"object","properties":{"ContinuationToken":{"type":"string","description":"Empty = no next page"},"Events":{"type":"array","items":{}}},"required":["ContinuationToken","Events"]}}}}}}},"/api/playerevents/v1/room/{roomId}":{"get":{"operationId":"getApiPlayereventsV1RoomByRoomId","tags":["Events"],"summary":"Player events in one room","description":"The events scheduled in a room — the shelf on the room’s page — soonest first. A bare array of the client’s BASE event (17 keys — no `State`, `ImageName` as `\"\"` rather than null, plus `BroadcastingRoomInstanceId`), the same projection the browse feed and the bulk read serve: the client decodes all three through one generic helper and one element type. `/searchlive` and the club shelves serve the stored record instead.\n\nCURRENT and UPCOMING only: the filter is on the END time, so a running event stays listed until it is over rather than vanishing the moment it starts, and an event that has finished is dropped — this answers what someone can still turn up to. A room with nothing scheduled, and a room id that does not exist, both answer an empty array; the shelf is about events, not about whether the room is real.","parameters":[{"name":"roomId","in":"path","required":true,"description":"Room id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The room’s current and upcoming events","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId"]}}}}}}}},"/api/playerevents/v1/searchlive":{"get":{"operationId":"getApiPlayereventsV1Searchlive","tags":["Events"],"summary":"Live player events","description":"The \"happening now\" row on the player-events browse screen: events that have started and not yet ended, soonest first. A bare array.","responses":{"200":{"description":"The events running right now","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Banner image; null until one is uploaded"},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"State":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = scheduled","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["PlayerEventId","CreatorPlayerId","ImageName","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","State","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions"]}}}}}}}},"/api/playerevents/v1/search":{"get":{"operationId":"getApiPlayereventsV1Search","tags":["Events"],"summary":"Search player events","description":"The browse query on the player-events screen, term by term; an empty query browses everything upcoming. A `#` decides how a term is matched: `#workshops` is a TAG term, matching only events tagged `workshops` and never the word in a name or description, which is what the filter chips send; a bare `workshops` is TEXT, matched case-insensitively against the name and description. Every term must match and the two kinds combine, so `#workshops trigonometry` is the workshops-tagged events whose text also mentions trigonometry.\n\nEvents that have already finished are left out — a name match on something that ended last month is noise on a browse screen. Ordered by `sort` and paginated via skip/take. A bare array.","parameters":[{"name":"query","in":"query","required":false,"description":"Search terms; `#tag` matches a tag, anything else the text","schema":{"type":"string"}},{"name":"sort","in":"query","required":false,"description":"`StartTime` (soonest first, the default) or `Attendance` (most Going replies first — the event’s `AttendeeCount` — ties soonest first). Case-insensitive; any other value is served as `StartTime`","schema":{"type":"string"}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 50)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The matching events","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Banner image; null until one is uploaded"},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"State":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = scheduled","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["PlayerEventId","CreatorPlayerId","ImageName","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","State","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions"]}}}}}}}},"/api/playerevents/v1/bulk":{"post":{"operationId":"postApiPlayereventsV1Bulk","tags":["Events"],"summary":"Several player events by id","description":"The events behind a list of ids the client already holds, as a form body: `Ids` repeated once per id (`Ids=101&Ids=102&Ids=103`), or one comma-separated `Ids=1,2,3`. A bare array of the client’s BASE event — the same projection the browse feed and the room shelf serve, this one filtered to the requested ids.\n\nAnswers in the order the ids were asked for and skips ids with no event rather than leaving a hole, so the result may be shorter than the request. No ids at all is an empty array, not a 400.","requestBody":{"description":"The event ids to look up","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"Ids":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Repeated (`Ids=101&Ids=102`) or comma-separated (`Ids=1,2,3`)"}},"required":["Ids"]}}}},"responses":{"200":{"description":"The events that exist, in request order","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId"]}}}}}}},"get":{"operationId":"getApiPlayereventsV1Bulk","tags":["Events"],"summary":"Several player events by id (query form)","description":"The same read as the POST on this path, with the ids in the query (`?id=1&id=2`) rather than a form body — the client sends the POST. Identical response: a bare array of the BASE event, in request order, skipping ids with no event.","parameters":[{"name":"id","in":"query","required":false,"description":"Repeatable event id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The events that exist, in request order","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId"]}}}}}}}},"/api/playerevents/v1/respond":{"post":{"operationId":"postApiPlayereventsV1Respond","tags":["Events"],"summary":"Answer a player event","description":"Records how the caller is answering an event — `Type` is 0 Going, 1 Interested, 2 Can’t go. Responding again replaces the previous answer; there is one row per player per event, and a decline is recorded rather than deleted so the client can show a player what they said.\n\nOnly Going counts toward the event’s `AttendeeCount`, which is recomputed from the RSVP table on every response. Anyone may respond, the creator included — they are already Going from create, and nothing stops them declining their own event. Answers the same `{ Result, TagModifyResult, PlayerEvent }` envelope the v2 writes do, carrying the event with its updated count, so the client can re-render from the response.\n\nThe caller is also pushed a `PlayerEventResponseChanged` frame carrying the event and their new response row — this frame, not the invite, is what populates the event on the client. An invitee answering Pending → Going gets it here like anyone else.\n\nA body with no usable `PlayerEventId`, or a `Type` outside 0–2, is a 400 — 3 Pending is the server’s own mark for an unanswered invite, not an answer a player can give; an unknown event is a 404.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The event and the answer","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 Going, 1 Interested, 2 Can’t go","example":12345}},"required":["PlayerEventId","Type"]}}}},"responses":{"200":{"description":"The event, with its updated attendee count","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"Missing `PlayerEventId` or an unknown `Type` (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v1/report":{"post":{"operationId":"postApiPlayereventsV1Report","tags":["Events","Moderation"],"summary":"Report a player event","description":"Files a report against an event. Stored as a row in the same `report` table a player report goes to (`POST /api/PlayerReporting/v3/create`) — it is the same submission with the same moderation life, and a moderator converts either into a ban the same way. What marks it as an event report is `event_id`; the row’s `reported_player_id` is the event’s CREATOR (who a moderator would act against) and its `room_id` the room the event runs in, both read from the event rather than sent by the client.\n\nThe reporter is the caller (from the bearer token), never a body field. Note this body is JSON, where the player report’s is form-encoded. `ReportCategory` is stored verbatim — the enum is not mapped here. Nothing dedupes the rows: reporting the same event twice files two reports.\n\nAnswers the same `{ success, error }` envelope as the player report, `error` being an empty string rather than null, on the rejected branches too so there is only one shape to parse.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The report","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The event being reported","example":12345},"ReportCategory":{"description":"The reason picked in the report UI, e.g. `101`. Stored verbatim; unmapped","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Details":{"description":"The free-text description the reporter typed","type":"string"}},"required":["PlayerEventId"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No usable `PlayerEventId` in the body","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such event","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/playerevents/v1/bulkInvite":{"post":{"operationId":"postApiPlayereventsV1BulkInvite","tags":["Events"],"summary":"Invite players to an event","description":"Adds the invited players to the event as Pending (`Type` 3) — the same `event_attendee` rows an RSVP writes, so an invited player shows up in `…/responses` with an open invitation. Pending is not Going: the invitee does not count toward `AttendeeCount` until they answer through `…/respond`. (Inviting as Going made the invitation look already accepted on the client.)\n\nAn invite never overwrites an answer: a player who already responded keeps what they said, so inviting someone who declined does not reset them to Pending, and re-inviting is a no-op. The caller is skipped (they are already on the list), as are duplicate ids.\n\nEach newly invited player is sent the invitation as a Message of type 81 `PlayerEventInvitation` from the caller — stored in their inbox (`GET /api/messages/v2/get`) and pushed as `MessageReceived`, with the event id on `PlayerEventId` and, as a string, in `Data`. That is all an invitee gets: no `PlayerEventResponseChanged` is pushed on invite — that frame is what `…/respond` sends once they answer, and is what populates the event on their client. Players whose existing answer was left alone get nothing.\n\nThe caller must be on the event themselves — its creator, or a player with a response row of any kind. Anyone else gets 403: an invite adds attendees, so it is not something a passer-by can do. Answers the same `{ Result, TagModifyResult, PlayerEvent }` envelope the other event writes do, carrying the updated attendee count.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The event and who to invite","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"InvitedPlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"description":"Ids to invite; duplicates and the caller are ignored"}},"required":["PlayerEventId","InvitedPlayerIds"]}}}},"responses":{"200":{"description":"The event (its attendee count is unchanged by an invite)","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"Missing `PlayerEventId` or `InvitedPlayerIds` (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"The caller is not on the event (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v2":{"post":{"operationId":"postApiPlayereventsV2","tags":["Events"],"summary":"Create a player event","description":"Schedules a new event. The creator is taken from the bearer token, never the body; the id is assigned here. Lenient about the rest, like the other writes here — a missing name becomes “Untitled Event” and a missing time window becomes an hour from now, rather than an error the client can’t render.\n\n`State` starts at 0, and the creator is recorded as Going in the RSVP table — which is what makes `AttendeeCount` start at 1, since that count is derived from the table. Answers the `{ Result, TagModifyResult, PlayerEvent }` envelope — NOT the bare event the read endpoints serve.\n\nThe window is capped at 24 hours and must end after it starts — an event is a scheduled get-together, not a season. Since a missing end defaults to an hour after the start, only a body naming both bounds (or an end alone, which is measured from now) can fail this.\n\nAlso pushes a `PlayerEventCreated` (80) hub notification to the creator, carrying the event in its camelCase notification projection. A hub failure is logged and swallowed — the event is already stored by then.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The event to schedule","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Banner image; null until one is uploaded"},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"State":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = scheduled","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"PlayerEvent":{"description":"The event’s fields, if nested rather than posted at the top level"}}}}}},"responses":{"200":{"description":"The created event","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"Name over 64 or description over 512 characters, or a window that is backwards or longer than 24 hours (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/playerevents/v2/delete/{eventId}":{"post":{"operationId":"postApiPlayereventsV2DeleteByEventId","tags":["Events"],"summary":"Delete a player event","description":"Deletes an event the caller created, along with its RSVPs and its tags — an event whose attendee rows outlived it would still be counted, and its tags would still answer `#tag` searches.\n\nEveryone who was GOING to the event (the creator included) is pushed a `PlayerEventDeleted` frame naming the event id, so it leaves their screen; interested, declined and still-Pending invitees are not.\n\nCreator only: anyone else gets 403, and an unknown event 404. Answers the v2 envelope with `PlayerEvent` and `TagModifyResult` both null — the event is gone, so there is nothing for the client to redraw from, and it reads only `Result`. Both POST and DELETE reach it — the path names the verb, which is the form the client uses.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The nulled envelope a delete answers with","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"null"},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"null"}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}},"delete":{"operationId":"deleteApiPlayereventsV2DeleteByEventId","tags":["Events"],"summary":"Delete a player event","description":"Deletes an event the caller created, along with its RSVPs and its tags — an event whose attendee rows outlived it would still be counted, and its tags would still answer `#tag` searches.\n\nEveryone who was GOING to the event (the creator included) is pushed a `PlayerEventDeleted` frame naming the event id, so it leaves their screen; interested, declined and still-Pending invitees are not.\n\nCreator only: anyone else gets 403, and an unknown event 404. Answers the v2 envelope with `PlayerEvent` and `TagModifyResult` both null — the event is gone, so there is nothing for the client to redraw from, and it reads only `Result`. Both POST and DELETE reach it — the path names the verb, which is the form the client uses.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The nulled envelope a delete answers with","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"null"},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"null"}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v2/{eventId}":{"get":{"operationId":"getApiPlayereventsV2ByEventId","tags":["Events"],"summary":"One player event (v2 envelope)","description":"A single event wrapped in the same `{ PlayerEvent, Result, TagModifyResult }` envelope the v2 writes answer with — `Tags` inline, `BroadcastingRoomInstanceId` present, no `State`. 404 when there is no such event.\n\n`TagModifyResult` carries the event’s tags here too, even though a read edits nothing: the client reads its chips out of that field either way.","parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The event in the v2 envelope","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"404":{"description":"No such event (empty body)"}}},"post":{"operationId":"postApiPlayereventsV2ByEventId","tags":["Events"],"summary":"Update a player event","description":"Edits an event the caller created. Only the fields the body carries change; everything else keeps its stored value, so a partial post can’t blank out the rest of the event. A posted `null` on `ImageName` / `SubRoomId` / `ClubId` does clear it.\n\nThe id, the creator and the attendee count are not editable: ownership doesn’t transfer and RSVPs aren’t set by hand. Creator only — anyone else gets 403, and an unknown event is 404. Answers the same envelope as create.\n\nEveryone who is GOING to the event (the creator included) is pushed a `PlayerEventUpdated` frame carrying the edited event; interested, declined and still-Pending invitees are not. The single-field edits push the same frame.\n\nThe 24-hour window cap applies to what the post RESOLVES to, not to what it carries: moving the start alone still has to leave a window that ends after it and runs no longer than a day against the STORED end.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"requestBody":{"description":"The fields to change","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Banner image; null until one is uploaded"},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"State":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = scheduled","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"PlayerEvent":{"description":"The event’s fields, if nested rather than posted at the top level"}}}}}},"responses":{"200":{"description":"The updated event","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"Name over 64 or description over 512 characters, or a resolved window that is backwards or longer than 24 hours (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v2/{eventId}/time":{"put":{"operationId":"putApiPlayereventsV2ByEventIdTime","tags":["Events"],"summary":"Reschedule a player event","description":"Moves an event’s window. `startTime` and `endTime` are both optional and both independent: an absent bound keeps the stored one, so the start can be nudged without restating the end. Any parseable ISO 8601 is accepted — the client sends .NET tick precision (`2026-08-31T17:30:00.0000000Z`) — and stored trimmed to seconds, the form every read serves.\n\nA bound that is present but unparseable is a 400 rather than being dropped: a reschedule that silently did nothing is worse than a refusal. So is a window that ends before it starts, or one running longer than 24 HOURS — an event lasts at most a day. Both are checked against the RESOLVED window, so sending one bound is measured against the stored other one.\n\nCreator only, like the whole-event update; answers the same v2 envelope.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"requestBody":{"description":"The new window","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"startTime":{"description":"New start, any parseable ISO 8601 — the client sends .NET tick precision","type":"string"},"endTime":{"description":"New end, same form","type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"startTime":{"description":"New start, any parseable ISO 8601 — the client sends .NET tick precision","type":"string"},"endTime":{"description":"New end, same form","type":"string"}}}}}},"responses":{"200":{"description":"The rescheduled event","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"An unparseable time, an end before the start, or a window over 24 hours (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v2/{eventId}/accessibility":{"put":{"operationId":"putApiPlayereventsV2ByEventIdAccessibility","tags":["Events"],"summary":"Set a player event’s accessibility","description":"Sets an event’s visibility. The client sends the `RoomAccessibility` NAME here (`accessibility=Unlisted`), the way it does on the subroom route in `rooms` — not the ordinal the event’s JSON writes carry, though the ordinal is accepted too.\n\nA value naming nothing in the enum is a 400 rather than being defaulted or stored verbatim: guessing a visibility wrong is what shows a private event to everyone. Creator only; answers the same v2 envelope.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"requestBody":{"description":"The new visibility","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"accessibility":{"type":"string","description":"`Private`, `Public`, `Unlisted`, `Dev_only` or `Dev_Unlisted` (case-insensitive) — or its ordinal 0–4"}},"required":["accessibility"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"accessibility":{"type":"string","description":"`Private`, `Public`, `Unlisted`, `Dev_only` or `Dev_Unlisted` (case-insensitive) — or its ordinal 0–4"}},"required":["accessibility"]}}}},"responses":{"200":{"description":"The updated event","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"Missing or unrecognized `accessibility` (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v2/{eventId}/tags":{"put":{"operationId":"putApiPlayereventsV2ByEventIdTags","tags":["Events"],"summary":"Set a player event’s tags","description":"Replaces an event’s whole tag set. The body is a BARE JSON ARRAY of names — `[\"tag1\",\"class\"]` — not the form encoding the other single-field edits use, and not an object; the `{ tag, type }` pairs the create/update bodies accept work too. A replace, not a merge: untagging is a PUT with the tag left out, and `[]` clears them all.\n\nNames are lowercased and a leading `#` stripped, matching what the `#tag` search looks for. A body that is not an array is a 400. Creator only; answers the same v2 envelope, whose `TagModifyResult` carries the set the event now has.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"requestBody":{"description":"The whole tag set","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"description":"The event’s whole tag set"}}}},"responses":{"200":{"description":"The updated event, with its new tags","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"The body is not a JSON array (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v2/{eventId}/description":{"put":{"operationId":"putApiPlayereventsV2ByEventIdDescription","tags":["Events"],"summary":"Set a player event’s description","description":"Rewrites an event’s blurb. An absent `description` CLEARS it — an emptied text box sends no field, the same way the room description route in `rooms` behaves — so this is the one edit here that can’t be a no-op.\n\nCapped at 512 characters, the stored length, and refused rather than truncated: silently cutting a player’s text off is worse than telling them. Creator only; answers the same v2 envelope.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"requestBody":{"description":"The new description","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"description":{"description":"The new blurb; absent clears it","type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"description":{"description":"The new blurb; absent clears it","type":"string"}}}}}},"responses":{"200":{"description":"The updated event","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"Description over 512 characters (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v2/{eventId}/name":{"put":{"operationId":"putApiPlayereventsV2ByEventIdName","tags":["Events"],"summary":"Rename a player event","description":"Retitles an event. Capped at 64 characters, the stored length, and refused rather than truncated. A blank name is refused too — an event with no title renders as a blank row, and the whole-event update reads an empty name as “leave it alone”, so there is no way to store one regardless. The name is stored trimmed.\n\nNo uniqueness rule: two events may share a title, unlike a room name. Creator only; answers the same v2 envelope.","security":[{"bearerAuth":[]}],"parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"requestBody":{"description":"The new title","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The new title; blank is refused — an event always has a name"}},"required":["name"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"The new title; blank is refused — an event always has a name"}},"required":["name"]}}}},"responses":{"200":{"description":"The renamed event","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEvent":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string","description":"Empty string when the event has no image, never null"},"BroadcastingRoomInstanceId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — no event broadcasts to a room instance yet"},"Tags":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"array","items":{"type":"object","properties":{"Tag":{"type":"string"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Tag","Type"]}}],"description":"The event’s tags: `{ Tag, Type }` pairs for a build newer than 20230414, names for that build and older"}},"required":["PlayerEventId","CreatorPlayerId","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions","ImageName","BroadcastingRoomInstanceId","Tags"]},"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"TagModifyResult":{"type":"object","properties":{"Result":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = success","example":12345},"Tags":{"type":"array","items":{"type":"string"},"description":"The tags the event now carries — names to every build"}},"required":["Result","Tags"]}},"required":["PlayerEvent","Result","TagModifyResult"]}}}},"400":{"description":"A blank name, or one over 64 characters (empty body)"},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the event’s creator (empty body)"},"404":{"description":"No such event (empty body)"}}}},"/api/playerevents/v1/{eventId}/responses":{"get":{"operationId":"getApiPlayereventsV1ByEventIdResponses","tags":["Events"],"summary":"An event’s RSVPs","description":"Every answer given to an event, in the order they were given — declines and maybes included, not just the Going rows `AttendeeCount` counts. One entry per player: a player who changed their mind has one row carrying the answer that stands, and `CreatedAt` moves with it.\n\nA bare array, and an unknown event is an empty one rather than a 404 — like the other list reads here. An event always has at least its creator’s Going row.","parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The event’s RSVPs","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"PlayerEventResponseId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Stable id of the RSVP row","example":12345},"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string","description":"When the answer that stands was given — a changed answer updates the row, so this moves with it rather than recording the player’s first response"},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 Going, 1 Interested, 2 Can’t go, 3 Pending (invited, not yet answered)","example":12345}},"required":["PlayerEventResponseId","PlayerEventId","PlayerId","CreatedAt","Type"]}}}}}}}},"/api/playerevents/v1/{eventId}":{"get":{"operationId":"getApiPlayereventsV1ByEventId","tags":["Events"],"summary":"One player event","description":"A single event by id, served as the bare record — no envelope, unlike the create/update writes. 404 when there is no such event.\n\n`includeDetails=True` adds exactly one field, the lowercase `tags` — that is the whole of what the flag does. It is always an empty array here: no event tags are stored (see the tag-filter chips, which are static, and `TagModifyResult`, which is always null). Without the flag the key is ABSENT rather than empty, since a caller that didn’t ask for details shouldn’t be told the event has no tags.","parameters":[{"name":"eventId","in":"path","required":true,"description":"Event id","schema":{"type":"integer","example":12345}},{"name":"includeDetails","in":"query","required":false,"description":"Pass `True` to add the `tags` array","schema":{"type":"string"}}],"responses":{"200":{"description":"The event, with `tags` when details were asked for","content":{"application/json":{"schema":{"type":"object","properties":{"PlayerEventId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatorPlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Banner image; null until one is uploaded"},"RoomId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SubRoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event doesn’t pin a subroom"},"ClubId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Null when the event isn’t a club’s"},"Name":{"type":"string"},"Description":{"type":"string"},"StartTime":{"type":"string","description":"ISO 8601 UTC, seconds precision (`2020-11-29T22:00:00Z`)"},"EndTime":{"type":"string","description":"ISO 8601 UTC, seconds precision; at most 24 hours after `StartTime`"},"AttendeeCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Starts at 1 — the creator attends their own event","example":12345},"State":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 = scheduled","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsMultiInstance":{"type":"boolean"},"SupportMultiInstanceRoomChat":{"type":"boolean"},"DefaultBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CanRequestBroadcastPermissions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"tags":{"description":"Present only with `includeDetails=True`; the stored `{ tag, type }` pairs","type":"array","items":{"type":"object","properties":{"tag":{"type":"string"},"type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["tag","type"]}}},"required":["PlayerEventId","CreatorPlayerId","ImageName","RoomId","SubRoomId","ClubId","Name","Description","StartTime","EndTime","AttendeeCount","State","Accessibility","IsMultiInstance","SupportMultiInstanceRoomChat","DefaultBroadcastPermissions","CanRequestBroadcastPermissions"]}}}},"404":{"description":"No such event (empty body)"}}}},"/api/PlayerReporting/v1/moderationBlockDetails":{"get":{"operationId":"getApiPlayerReportingV1ModerationBlockDetails","tags":["Moderation"],"summary":"Whether the caller is blocked","description":"Ban / timeout / host-kick state for the caller. The one block this server hands out is the account-wide ban — a `report` row with `banned` set, the same row matchmake refuses on (login still issues a token, so the client can reach this screen) — so a caller with one in force gets `IsBan: true`, the `ReportCategory` the report was filed under, the fixed `Message` “Rule violation”, and `Duration` as the seconds LEFT on the ban as of this request — the client counts it down from when it receives it, so it is `ban_expires` minus now, rounded up, never the ban’s full span (2147483647, the int32 max, for a permanent ban). `TimeoutStartedAt` stays null: the client does not pair it with `Duration` for a ban, and no reference server sends it. `PlayerIdReporter` stays null: it names a kicking host, and the reporter is not shown to the player they reported. Only the caller’s own account is consulted, not the ban-evasion arms.\n\nEveryone else gets the reference server’s stub “not blocked” answer: `ReportCategory` is `Unknown` (-1) rather than 0, which is a real category, and `Message` is null rather than the empty string that stub sends — the client distinguishes “no message” from a blank one. `IsVoiceModAutoban` and `TimeoutStartedAt` are on the DTO but unset by that stub, so they carry their defaults, as do the seven keys past the stub’s nine that the 2025 client’s decoder names (`IsDeviceBan`, `IsWarning`, `VoteKickReason`, `AssociatedAccountUsername`, `ShowCreatorCodeOfConduct`, `TopMessageOverride`, `BottomMessageOverride`) — block kinds and screen dressings this server never uses. Answers GET or POST: the newer client POSTs it with no body.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s block, or “not blocked”","content":{"application/json":{"schema":{"type":"object","properties":{"ReportCategory":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The category the ban’s report was filed under; -1 = ReportCategory.Unknown when not blocked (0 is a real category)","example":12345},"Duration":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Seconds LEFT on the block as of this request (the client counts it down from receipt); 2147483647 (int32 max) for a permanent ban; 0 when not blocked","example":12345},"GameSessionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsHostKick":{"type":"boolean","description":"Always false — no host kick is ever recorded here"},"Message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"“Rule violation” on a ban; null when not blocked"},"PlayerIdReporter":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — the reporter is not shown to the reported"},"IsBan":{"type":"boolean","description":"True when an account-wide ban is in force"},"IsVoiceModAutoban":{"type":"boolean","description":"Always false"},"IsDeviceBan":{"type":"boolean","description":"Always false — bans here are account-wide, not per device"},"IsWarning":{"type":"boolean","description":"Always false — warnings are delivered as notifications, not here"},"VoteKickReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — no vote-kick is recorded here"},"TimeoutStartedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — the client does not pair it with `Duration` for a ban (it names the start of a voice-chat timeout, which this server never hands out)"},"AssociatedAccountUsername":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"},"ShowCreatorCodeOfConduct":{"type":"boolean","description":"Always false"},"TopMessageOverride":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — the client’s default block-screen text stands"},"BottomMessageOverride":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — the client’s default block-screen text stands"}},"required":["ReportCategory","Duration","GameSessionId","IsHostKick","Message","PlayerIdReporter","IsBan","IsVoiceModAutoban","IsDeviceBan","IsWarning","VoteKickReason","TimeoutStartedAt","AssociatedAccountUsername","ShowCreatorCodeOfConduct","TopMessageOverride","BottomMessageOverride"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiPlayerReportingV1ModerationBlockDetails","tags":["Moderation"],"summary":"Whether the caller is blocked","description":"Ban / timeout / host-kick state for the caller. The one block this server hands out is the account-wide ban — a `report` row with `banned` set, the same row matchmake refuses on (login still issues a token, so the client can reach this screen) — so a caller with one in force gets `IsBan: true`, the `ReportCategory` the report was filed under, the fixed `Message` “Rule violation”, and `Duration` as the seconds LEFT on the ban as of this request — the client counts it down from when it receives it, so it is `ban_expires` minus now, rounded up, never the ban’s full span (2147483647, the int32 max, for a permanent ban). `TimeoutStartedAt` stays null: the client does not pair it with `Duration` for a ban, and no reference server sends it. `PlayerIdReporter` stays null: it names a kicking host, and the reporter is not shown to the player they reported. Only the caller’s own account is consulted, not the ban-evasion arms.\n\nEveryone else gets the reference server’s stub “not blocked” answer: `ReportCategory` is `Unknown` (-1) rather than 0, which is a real category, and `Message` is null rather than the empty string that stub sends — the client distinguishes “no message” from a blank one. `IsVoiceModAutoban` and `TimeoutStartedAt` are on the DTO but unset by that stub, so they carry their defaults, as do the seven keys past the stub’s nine that the 2025 client’s decoder names (`IsDeviceBan`, `IsWarning`, `VoteKickReason`, `AssociatedAccountUsername`, `ShowCreatorCodeOfConduct`, `TopMessageOverride`, `BottomMessageOverride`) — block kinds and screen dressings this server never uses. Answers GET or POST: the newer client POSTs it with no body.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s block, or “not blocked”","content":{"application/json":{"schema":{"type":"object","properties":{"ReportCategory":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The category the ban’s report was filed under; -1 = ReportCategory.Unknown when not blocked (0 is a real category)","example":12345},"Duration":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Seconds LEFT on the block as of this request (the client counts it down from receipt); 2147483647 (int32 max) for a permanent ban; 0 when not blocked","example":12345},"GameSessionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsHostKick":{"type":"boolean","description":"Always false — no host kick is ever recorded here"},"Message":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"“Rule violation” on a ban; null when not blocked"},"PlayerIdReporter":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}],"description":"Always null — the reporter is not shown to the reported"},"IsBan":{"type":"boolean","description":"True when an account-wide ban is in force"},"IsVoiceModAutoban":{"type":"boolean","description":"Always false"},"IsDeviceBan":{"type":"boolean","description":"Always false — bans here are account-wide, not per device"},"IsWarning":{"type":"boolean","description":"Always false — warnings are delivered as notifications, not here"},"VoteKickReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — no vote-kick is recorded here"},"TimeoutStartedAt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — the client does not pair it with `Duration` for a ban (it names the start of a voice-chat timeout, which this server never hands out)"},"AssociatedAccountUsername":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null"},"ShowCreatorCodeOfConduct":{"type":"boolean","description":"Always false"},"TopMessageOverride":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — the client’s default block-screen text stands"},"BottomMessageOverride":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Always null — the client’s default block-screen text stands"}},"required":["ReportCategory","Duration","GameSessionId","IsHostKick","Message","PlayerIdReporter","IsBan","IsVoiceModAutoban","IsDeviceBan","IsWarning","VoteKickReason","TimeoutStartedAt","AssociatedAccountUsername","ShowCreatorCodeOfConduct","TopMessageOverride","BottomMessageOverride"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/PlayerReporting/v1/voteToKickReasons":{"get":{"operationId":"getApiPlayerReportingV1VoteToKickReasons","tags":["Moderation"],"summary":"Vote-to-kick reasons","description":"The reasons offered when starting a vote-to-kick, each with the `ReportCategory` the report is filed under if the vote carries: 102 hate, 101 sexual content, 103 griefing, 6 game conduct. A fixed list, in the order the client renders it.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The reasons, in render order","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"Reason":{"type":"string","description":"The label shown on the button"},"ReportCategory":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The category the resulting report is filed under: 101, 102, 103 or 6","example":12345}},"required":["Reason","ReportCategory"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/PlayerReporting/v1/referee":{"post":{"operationId":"postApiPlayerReportingV1Referee","tags":["Moderation"],"summary":"Whether the caller is a referee","description":"A bare JSON `false` — no envelope. The game client asks this to decide whether to run its referee moderation flow. Always false: the referee program is switched off here rather than unimplemented, since this server is archival.","responses":{"200":{"description":"Always `false` — the program is off","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/referee/files":{"get":{"operationId":"getApiRefereeFiles","tags":["Moderation"],"summary":"Referee case files","description":"The moderation cases assigned to the caller as a referee. Always empty — the referee program is switched off here (see `/api/PlayerReporting/v1/referee`), so nothing is ever assigned.","responses":{"200":{"description":"An empty list — no cases are ever assigned","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/PlayerReporting/v1/hile":{"post":{"operationId":"postApiPlayerReportingV1Hile","tags":["Moderation"],"summary":"Report submission sink","description":"A player report. Nothing stores reports, so this accepts whatever it is sent and answers a bare `false`.","responses":{"200":{"description":"A bare JSON `false`","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/PlayerReporting/v3/create":{"post":{"operationId":"postApiPlayerReportingV3Create","tags":["Moderation"],"summary":"Submit a player report","description":"Records a player report in the `report` table; nothing dedupes the rows. A report is filed unbanned — a moderator converts one into an account-wide ban by setting `banned` on the row, which is what matchmaking refuses on and what `moderationBlockDetails` describes to the banned player.\n\nThe reporter is the caller (from the bearer token), NOT a body field. Only `PlayerIdReported` is required; the client omits whatever it has no value for (a report raised outside a room carries no `RoomId`), and those are stored as NULL. `ReportCategory` and `RoomInstanceType` are stored verbatim — neither enum is mapped here. A `RoomId` of 0 or below means “no room”.\n\nAnswers the real service’s `{ success, error }` envelope, where `error` is an empty string rather than null. The rejected branch uses the same envelope so the client only ever parses one shape.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The report","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"PlayerIdReported":{"type":"string","description":"Account id of the player being reported"},"ReportCategory":{"description":"The reason picked in the report UI, e.g. `100`. Stored verbatim; unmapped","type":"string"},"Details":{"description":"The free-text description the reporter typed","type":"string"},"HeightReporter":{"description":"Reporter’s player height in metres at report time, e.g. `1.64`","type":"string"},"HeightReported":{"description":"Reported player’s height in metres","type":"string"},"RoomId":{"description":"Room the report was raised in, if any","type":"string"},"RoomInstanceType":{"description":"Instance type name, e.g. `Public`. Stored verbatim","type":"string"}},"required":["PlayerIdReported"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"PlayerIdReported":{"type":"string","description":"Account id of the player being reported"},"ReportCategory":{"description":"The reason picked in the report UI, e.g. `100`. Stored verbatim; unmapped","type":"string"},"Details":{"description":"The free-text description the reporter typed","type":"string"},"HeightReporter":{"description":"Reporter’s player height in metres at report time, e.g. `1.64`","type":"string"},"HeightReported":{"description":"Reported player’s height in metres","type":"string"},"RoomId":{"description":"Room the report was raised in, if any","type":"string"},"RoomInstanceType":{"description":"Instance type name, e.g. `Public`. Stored verbatim","type":"string"}},"required":["PlayerIdReported"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No `PlayerIdReported` in the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/chatreport/createChatReport":{"post":{"operationId":"postApiChatreportCreateChatReport","tags":["Moderation"],"summary":"Report a chat message","description":"Files a report against one chat message. Stored as a row in the same `report` table a player report goes to (`POST /api/PlayerReporting/v3/create`), beside the event, invention and custom-avatar-item reports — the same submission with the same moderation life, and a moderator converts any of them into a ban the same way. What marks it as a chat report is `chat_message_id`; the row’s `reported_player_id` is the message’s SENDER, read from the `message` table, since the body names no player. `ChatThreadId` is accepted and unused: a message id is unique across threads, so the message names its own thread and nothing stores a second copy.\n\nThe reporter is the caller (from the bearer token) and must be a MEMBER of the thread the message is in — the same gate reading the message sits behind. A message the caller cannot see answers exactly as one that does not exist, so the route cannot be used to probe message ids or to file reports citing conversations the reporter was never in. A system notice (a join/leave line) has no sender to report and is refused.\n\n`ReportCategory` arrives as an enum NAME (`Discriminatory`), unlike the numeric one a player report sends, and is mapped onto the numeric category the table stores (`Discriminatory` → 102). A number is stored as sent; a name that maps to nothing is filed as 0 with the name kept at the front of the details. `ReportDescription` is the details. Nothing dedupes the rows.\n\nAnswers the `{ success, error }` envelope the other reports use, `error` an empty string rather than null, on the rejected branches too.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The report","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"ChatMessageId":{"type":"string","description":"Id of the message being reported, e.g. `72`"},"ChatThreadId":{"description":"The thread the message is in. Accepted and unused — the message names its own","type":"string"},"ReportCategory":{"description":"The reason picked in the report UI, sent as a NAME (`Discriminatory`) where the player report sends a number. Mapped onto the numeric category the table stores","type":"string"},"ReportDescription":{"description":"The free-text description the reporter typed","type":"string"}},"required":["ChatMessageId"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"ChatMessageId":{"type":"string","description":"Id of the message being reported, e.g. `72`"},"ChatThreadId":{"description":"The thread the message is in. Accepted and unused — the message names its own","type":"string"},"ReportCategory":{"description":"The reason picked in the report UI, sent as a NAME (`Discriminatory`) where the player report sends a number. Mapped onto the numeric category the table stores","type":"string"},"ReportDescription":{"description":"The free-text description the reporter typed","type":"string"}},"required":["ChatMessageId"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No usable `ChatMessageId`, or a system message","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such message, or not one the caller can see","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/PlayerReporting/v3/voteToKick":{"post":{"operationId":"postApiPlayerReportingV3VoteToKick","tags":["Moderation"],"summary":"Call a vote to kick a player","description":"Puts a vote-to-kick to the room instance. Open to any player — no role is required — but BOTH the caller and `PlayerId` must have a live `presence` row in the instance `GameSessionId` names, or the call is refused with a 403. That is the whole gate: without it a client could raise a vote in a session it is not in, or against a player who is not there.\n\nEveryone else in that instance — the player being voted on included, since a vote is called in front of them — gets a `MessageReceived` frame carrying a Message of type 5 (`VoteToKick`). The caller is left out: they have voted already, and their own `Response` is what they posted.\n\n`FromPlayerId` on that Message is the player being VOTED ON, not the caller — the client raises its prompt about whoever it names, so the caller there asks the room to kick the wrong player. `Data` is the `Reason` as PLAIN TEXT (`Inactive in games (AFK)`), which is what the prompt shows; it is still a string on the wire, because an object there fails the client’s decoder (`expected:'String Begin Token', actual:'{'`) and aborts the whole notification.\n\nThe frames are EPHEMERAL: a vote belongs to the moment it was called, so an offline player gets nothing rather than a prompt about a dead session on their next connect.\n\nEvery call RECORDS a ballot in `room_vote` — the session, the player voted on, the voter and their answer — and then tallies. A vote CARRIES when the yes votes are strictly more than half the players standing in the session right now (a tie is not a majority, and the count is of the room as it is, since players leave mid-vote). The tally counts DISTINCT voters and reads only each one’s latest ballot, so re-posting a vote cannot carry one and a voter may change their mind.\n\nWhen it carries, the player is kicked exactly as a staff kick does it — moved into their own dorm, the instance they left freed, an ephemeral `ModerationKick` (id 22) — but with `ReportCategory` `VoteKick` (10), `IsHostKick` false (the ROOM removed them), `PlayerIdReporter` the voter whose ballot carried it, and the reason in `VoteKickReason`. `IsBan` is false: nothing stops them rejoining. No prompt goes out in that case — the room is not asked a question that is already answered.\n\nThe call and the answers arrive on this same endpoint with the same body. A ballot posted while no vote on `PlayerId` is open in that session CALLS one: it is stored with `init` 1 and is the only kind that puts the prompt to the room. A vote stays open for 60 seconds; every ballot inside that window answers it — recorded and tallied, but relayed to nobody — and only ballots from its call on are counted, so an expired vote’s yes ballots cannot carry the next.\n\nCalling is THROTTLED: a player who called a vote in the last 5 minutes, in any session, is refused with a 429. Answering is never throttled. A `No` cannot call a vote — with none open it is refused with a 409.\n\n`Response` is the caller’s own vote, recorded but never relayed. Answers the same lowercase `{ success, error }` envelope as the write; a hub failure for any recipient is reported honestly as a 500, since with nothing behind it the frame is the whole delivery.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The vote","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"PlayerId":{"type":"string","description":"Account id of the player being voted on — relayed as the frame’s `FromPlayerId`, which is what the client’s prompt names"},"Response":{"type":"string","description":"The caller’s own vote, e.g. `True`. Not relayed"},"Reason":{"description":"A `voteToKickReasons` label, e.g. `Inactive in games (AFK)` — relayed verbatim as the frame’s `Data`, which is the text the prompt shows. Empty when absent","type":"string"},"GameSessionId":{"type":"string","description":"The room instance both players are standing in"}},"required":["PlayerId","Response","GameSessionId"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"PlayerId":{"type":"string","description":"Account id of the player being voted on — relayed as the frame’s `FromPlayerId`, which is what the client’s prompt names"},"Response":{"type":"string","description":"The caller’s own vote, e.g. `True`. Not relayed"},"Reason":{"description":"A `voteToKickReasons` label, e.g. `Inactive in games (AFK)` — relayed verbatim as the frame’s `Data`, which is the text the prompt shows. Empty when absent","type":"string"},"GameSessionId":{"type":"string","description":"The room instance both players are standing in"}},"required":["PlayerId","Response","GameSessionId"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No `PlayerId` or no `GameSessionId`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Either player is not in that game session","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"409":{"description":"A `No` with no vote open to answer","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"429":{"description":"The caller called a vote too recently","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"500":{"description":"The notifications hub could not be reached","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/PlayerReporting/v1/instantKick":{"post":{"operationId":"postApiPlayerReportingV1InstantKick","tags":["Moderation"],"summary":"Kick players out of a room instance","description":"Ejects the named players from one live room instance. `GameSessionId` is that instance (`roomInstanceId`); the body is JSON, unlike the form posts elsewhere in this controller.\n\nGated to the instance’s room: the caller must be its creator or hold a role of Moderator (20) or above on it — anyone else with a valid token gets a 403. Nobody who can moderate the room can be kicked out of it, and a caller cannot kick themselves.\n\nA player is only kicked if their live `presence` row puts them in **that** instance. Anyone else named — offline, or standing in another room — is skipped in silence, so naming an account id cannot reach into a session the caller has no authority over.\n\nEach kicked player is moved into their own DORM — presence rewritten, not deleted, so their client lands where it already is instead of loading the dorm a second time — and the instance they left frees a slot. They also get a `ModerationKick` frame (id 22) — the frame the client acts on to leave. It is the same frame a room ban sends, but `IsBan` is false: this only removes them from the session they are in, and nothing stops them rejoining. The frame is EPHEMERAL — a kick is true of the moment it happened, and queueing one would eject the player from an unrelated session on their next connect.\n\nAnswers the same lowercase `{ success, error }` envelope the report write uses, and says nothing about who was actually kicked — the response shape is unverified against the real service.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The instance and the players to eject","content":{"application/json":{"schema":{"type":"object","properties":{"GameSessionId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The room instance (game session) to eject them from","example":12345},"PlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"description":"Account ids to kick out of that instance"}},"required":["GameSessionId","PlayerIds"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"Unparseable body, no `GameSessionId` or no `PlayerIds`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"The caller cannot moderate the instance’s room","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"404":{"description":"No such game session","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/PlayerReporting/v1/roomModKick":{"post":{"operationId":"postApiPlayerReportingV1RoomModKick","tags":["Moderation"],"summary":"Kick one player out of a room instance, with a reason","description":"Ejects `PlayerId` from the live room instance `GameSessionId` (a `roomInstanceId`). Form-encoded, unlike `instantKick`’s JSON; `Reason` is optional free text shown to the kicked player in the kick message.\n\nGated to the instance’s room: its creator or a co-owner, or any account whose token carries the `moderator` / `developer` role. A room Moderator (20) or Host is NOT enough here. Anyone else with a valid token gets a 403.\n\nThe player must be standing in **that** instance — their live `presence` row must name it. Otherwise nothing happens and the call answers `success: false`, so an account id cannot reach into a session in another room, or another instance of this one. The caller need not be in the instance themselves. The caller cannot kick themselves, and nobody can kick the room’s owner or a co-owner.\n\nA kick moves the player into their own DORM — presence rewritten rather than deleted, so their client does not load the dorm twice — frees the slot they held, and sends them an EPHEMERAL `ModerationKick` frame (id 22) with `IsBan: false` — nothing stops them rejoining. `IsHostKick` is true when the caller runs the room, false for a staff account acting in a room it does not.\n\nAnswers the lowercase `{ success, error }` envelope; the shape is unverified against the real service.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The session, the player and a reason","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"PlayerId":{"type":"string","description":"Account id of the player to kick"},"GameSessionId":{"type":"string","description":"The room instance (game session) to eject them from — they must be standing in it"},"Reason":{"description":"Free text, shown to the kicked player in the kick message","type":"string"}},"required":["PlayerId","GameSessionId"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"PlayerId":{"type":"string","description":"Account id of the player to kick"},"GameSessionId":{"type":"string","description":"The room instance (game session) to eject them from — they must be standing in it"},"Reason":{"description":"Free text, shown to the kicked player in the kick message","type":"string"}},"required":["PlayerId","GameSessionId"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`, or `success: false` when the player cannot be kicked","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No `GameSessionId` or `PlayerId`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"The caller neither runs the room nor holds a staff role","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"404":{"description":"No such game session","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/playerwarnings":{"post":{"operationId":"postApiPlayerwarnings","tags":["Moderation"],"summary":"Issue a player warning","description":"Records a moderator-issued warning in the `warning` table — an append-only log like `report`; nothing dispatches the warning to the player or acts on the rows yet.\n\n**Staff only.** The token must carry the `moderator` or `developer` role (granted per account by the operator, see the admin CLI’s `grant-moderator` / `grant-developer`); a valid token with neither gets a 403. The acting moderator is the caller, NOT a body field.\n\nOnly `WarnedPlayerId` is required; the rest are stored as NULL when absent. `ReportCategory` is stored verbatim — the enum is not mapped here. `DisplayReason` is what the warned player would be shown; `ModeratorNote` is internal and never surfaced to them.\n\nAnswers the same `{ success, error }` envelope as the report write, with `error` an empty string rather than null — including on the rejected branches, so there is only one shape to parse.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The warning","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"WarnedPlayerId":{"type":"string","description":"Account id of the player being warned"},"ReportCategory":{"description":"The reason category, e.g. `101`. Stored verbatim; unmapped","type":"string"},"DisplayReason":{"description":"What the warned player is shown, e.g. `Sexual gestures`","type":"string"},"ModeratorNote":{"description":"Internal note; never shown to the player","type":"string"}},"required":["WarnedPlayerId"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"WarnedPlayerId":{"type":"string","description":"Account id of the player being warned"},"ReportCategory":{"description":"The reason category, e.g. `101`. Stored verbatim; unmapped","type":"string"},"DisplayReason":{"description":"What the warned player is shown, e.g. `Sexual gestures`","type":"string"},"ModeratorNote":{"description":"Internal note; never shown to the player","type":"string"}},"required":["WarnedPlayerId"]}}}},"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"400":{"description":"No `WarnedPlayerId` in the request","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"A valid token with neither staff role","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/PlayerReporting/v1/deviceId":{"post":{"operationId":"postApiPlayerReportingV1DeviceId","tags":["Moderation"],"summary":"Device id rotation (known broken)","description":"The client reporting its device id, rotating from the one it thinks we hold to the current one. It carries no bearer token and fires *before* account creation, so there is no caller to attribute the id to and nothing to store it against — we accept it and drop it.\n\n**Known broken.** No response shape found so far keeps the client happy: it hangs during account creation with nothing in the logs. The real service answers a `{ success, error }` envelope; we currently answer an empty array, which does not help either. The workaround is to disable the device-id check client-side (see [recnet-plugin](https://github.com/djdevin/recnet-plugin)).","requestBody":{"description":"The id rotation","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"oldDeviceId":{"description":"The id the client thinks we hold","type":"string"},"newDeviceId":{"type":"string"},"platform":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","properties":{"oldDeviceId":{"description":"The id the client thinks we hold","type":"string"},"newDeviceId":{"type":"string"},"platform":{"type":"string"}}}}}},"responses":{"200":{"description":"An empty array — see the note above; this is not the real shape","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/equipment/v2/getUnlocked":{"get":{"operationId":"getApiEquipmentV2GetUnlocked","tags":["Inventory"],"summary":"Unlocked equipment","description":"A stub on this host — the real inventory lives in the `econ` worker, which serves this same path with the player’s equipment. Always an empty list here, and unlike the econ route it does not require a token.","responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/consumables/v2/getUnlocked":{"get":{"operationId":"getApiConsumablesV2GetUnlocked","tags":["Inventory"],"summary":"Unlocked consumables","description":"A stub on this host — the real consumables live in the `econ` worker. Auth-gated even so, then always an empty list.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/roomkeys/v1/mine":{"get":{"operationId":"getApiRoomkeysV1Mine","tags":["Rooms"],"summary":"The caller’s room keys","description":"Nothing issues room keys yet, so this is an empty list.","responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/roomkeys/v1/room":{"get":{"operationId":"getApiRoomkeysV1Room","tags":["Rooms"],"summary":"A room’s keys","description":"Nothing issues room keys yet, so this is an empty list.","responses":{"200":{"description":"An empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/quickPlay/v1/getandclear":{"get":{"operationId":"getApiQuickPlayV1Getandclear","tags":["Rooms"],"summary":"Take the pending quick-play action","description":"A read-and-clear of whatever quick-play action is queued for the caller (joining a friend, an invite deep link). Nothing queues one yet, so all three fields are null — which the client reads as “nothing to do”.","responses":{"200":{"description":"All null — no pending action","content":{"application/json":{"schema":{"type":"object","properties":{"RoomName":{"anyOf":[{"type":"string"},{"type":"null"}]},"ActionCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"TargetPlayerId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]}},"required":["RoomName","ActionCode","TargetPlayerId"]}}}}}}},"/api/rooms/v1/filters":{"get":{"operationId":"getApiRoomsV1Filters","tags":["Rooms"],"summary":"Room browse filter chips","description":"The filter chips on the room browse screen. Static, taken from the 2025 reference. The client deserializes this as an OBJECT, not an array — and unlike the invention/event filters, `TrendingFilters` here is a real list.","responses":{"200":{"description":"The filter chips","content":{"application/json":{"schema":{"type":"object","properties":{"PinnedFilters":{"type":"array","items":{"type":"string"}},"PopularFilters":{"type":"array","items":{"type":"string"}},"TrendingFilters":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Null — needs recent-activity data we don‘t keep"}},"required":["PinnedFilters","PopularFilters","TrendingFilters"]}}}}}}},"/api/rooms/v1/verifyRole":{"post":{"operationId":"postApiRoomsV1VerifyRole","tags":["Rooms"],"summary":"Verify the caller’s role in a room","description":"Whether the caller holds at least `role` in the room — the gate the client checks before letting someone into the Maker Pen. The room’s creator always passes; anyone else needs a `Roles` entry at that level or higher.\n\nAnswers a bare `true`/`false`, and every failure is `false` rather than an error status: no token, an unknown room, and an insufficient role are indistinguishable to the client. Params are read from the form body, falling back to the query string. Room data is read from the shared rooms database (owned by the `rooms` worker).","security":[{"bearerAuth":[]}],"requestBody":{"description":"The room and the role level to check","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"roomId":{"type":"string"},"role":{"type":"string","description":"The minimum role level required"},"context":{"description":"e.g. MakerPen — accepted and ignored","type":"string"}},"required":["roomId","role"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"roomId":{"type":"string"},"role":{"type":"string","description":"The minimum role level required"},"context":{"description":"e.g. MakerPen — accepted and ignored","type":"string"}},"required":["roomId","role"]}}}},"responses":{"200":{"description":"Whether the caller holds the role","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/images/v2/named":{"get":{"operationId":"getApiImagesV2Named","tags":["Images"],"summary":"Named images","description":"The named-image catalog (UI art the client looks up by FriendlyImageName). Captured from RRArchive `Images/Named/Named.json` and served verbatim.","responses":{"200":{"description":"The named-image rows","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}},"/api/images/v4/uploadsaved":{"post":{"operationId":"postApiImagesV4Uploadsaved","tags":["Images"],"summary":"Upload a saved image","description":"Stores a photo in the shared image bucket under a random key, foldered by image type and upload date (e.g. `sharecamera/2026-06-15/…`) so the bucket stays browsable. The returned `ImageName` is that key — the `img` worker serves the object back by it, slashes and all.\n\nThe `imgMeta` multipart field is a JSON `SavedImageMetaDTO` describing the upload; malformed JSON is tolerated and the image is still stored, just untyped. A `savedImageType` of 4 (profile thumbnail) additionally becomes the account’s avatar, persisted on the account row.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The image file plus its metadata","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"image":{"type":"string","description":"The image file (`file` is accepted too)"},"imgMeta":{"description":"A JSON `SavedImageMetaDTO`: { playerIds, savedImageType, roomId, playerEventId, accessibility, description }","type":"string"},"imageName":{"description":"Optional exact bucket key (`polaroid.jpg`). Used by the website import page so a recovered polaroid keeps the name the scene blob already references. A path or `..` is ignored and a random key is used instead.","type":"string"}},"required":["image"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","description":"The image file (`file` is accepted too)"},"imgMeta":{"description":"A JSON `SavedImageMetaDTO`: { playerIds, savedImageType, roomId, playerEventId, accessibility, description }","type":"string"},"imageName":{"description":"Optional exact bucket key (`polaroid.jpg`). Used by the website import page so a recovered polaroid keeps the name the scene blob already references. A path or `..` is ignored and a random key is used instead.","type":"string"}},"required":["image"]}}}},"responses":{"200":{"description":"The stored bucket key","content":{"application/json":{"schema":{"type":"object","properties":{"ImageName":{"type":"string","description":"The bucket key; the img worker serves the object by it"}},"required":["ImageName"]}}}},"400":{"description":"No file in the request","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"413":{"description":"The image exceeds the configured per-file limit","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}},"/api/images/v1/deletesaved":{"post":{"operationId":"postApiImagesV1Deletesaved","tags":["Images"],"summary":"Delete one of the caller’s photos","description":"Looks the image up by name and refuses unless the caller took it, then removes the metadata row (and its cheers) and the object from the bucket. The metadata goes first; the R2 delete is idempotent, so a missing object is fine.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The image to delete","content":{"application/json":{"schema":{"type":"object","properties":{"ImageName":{"type":"string"}},"required":["ImageName"]}}}},"responses":{"200":{"description":"Deleted","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"No ImageName given","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s image","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No image by that name"}}}},"/api/images/v2/modifyaccessibility":{"post":{"operationId":"postApiImagesV2Modifyaccessibility","tags":["Images"],"summary":"Make one of the caller’s photos public or private","description":"Looks the image up by name and refuses unless the caller took it (or its accessibility is locked), then sets `Accessibility` on the stored record: 0 private, 1 public.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The image and its new accessibility","content":{"application/json":{"schema":{"type":"object","properties":{"ImageName":{"type":"string"},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"0 private, 1 public","example":12345}},"required":["ImageName","Accessibility"]}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"No ImageName, or Accessibility not 0 or 1","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s image, or its accessibility is locked","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No image by that name"}}}},"/api/images/v1/modifydescription":{"post":{"operationId":"postApiImagesV1Modifydescription","tags":["Images"],"summary":"Set the caption on one of the caller’s photos","description":"Looks the image up by name and refuses unless the caller took it, then sets `Description` on the stored record. Null or empty clears it.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The image and its new caption","content":{"application/json":{"schema":{"type":"object","properties":{"ImageName":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The new caption; null or empty clears it"}},"required":["ImageName","Description"]}}}},"responses":{"200":{"description":"Updated","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"400":{"description":"No ImageName, or Description not a string","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"403":{"description":"Not the caller’s image","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No image by that name"}}}},"/api/images/v4/room/{roomId}":{"get":{"operationId":"getApiImagesV4RoomByRoomId","tags":["Images"],"summary":"A room’s photo feed","description":"The public images taken in that room.\n\nThis feed serves the RAW `SavedImage` record — unlike the player photo lists below, which must serve the `ImagesPlayer` projection. The inconsistency is real and load-bearing: both render correctly as they are, and unifying them breaks one of them.","parameters":[{"name":"roomId","in":"path","required":true,"description":"Room id","schema":{"type":"integer","example":12345}},{"name":"sort","in":"query","required":false,"description":"1 = most cheered; anything else = newest first","schema":{"type":"integer","example":12345}},{"name":"filter","in":"query","required":false,"description":"Narrow by SavedImageType; 0 = all","schema":{"type":"integer","example":12345}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The room’s photos","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"Id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"SavedImageType: 1 = share camera, 3 = room, 4 = profile, …","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"ImageName":{"type":"string","description":"The bucket key the img worker serves it back by"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"TaggedPlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"CreatedAt":{"type":"string"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Id","Type","Accessibility","AccessibilityLocked","ImageName","Description","PlayerId","TaggedPlayerIds","RoomId","PlayerEventId","CreatedAt","CheerCount","CommentCount"]}}}}}}}},"/api/images/v4/player/{playerId}":{"get":{"operationId":"getApiImagesV4PlayerByPlayerId","tags":["Images"],"summary":"A player’s photos","description":"The public camera photos (`SavedImageType` 1) that player has taken, newest first — not the outfit, room, invention or profile thumbnails filed under them. Serves the client’s `ImagesPlayer` projection (`SavedImageId`/`SavedImageType`, no `TaggedPlayerIds`) — the raw `SavedImage` renders blank thumbnails here.\n\nPublic, but reads a Bearer token if one is sent: a player asking for THEIR OWN list gets their private photos in it too (`Accessibility` 0 — that is where the photos they have not shared yet live). Any other player’s token, no token, or an invalid one serves the public list; none of those is a 401.","parameters":[{"name":"playerId","in":"path","required":true,"description":"Account id","schema":{"type":"integer","example":12345}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The player’s photos","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"SavedImageId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SavedImageType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ImageName":{"type":"string"},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]}},"required":["SavedImageId","SavedImageType","Accessibility","AccessibilityLocked","CheerCount","CommentCount","CreatedAt","Description","ImageName","PlayerEventId","PlayerId","RoomId"]}}}}}}}},"/api/images/v5/player/{playerId}":{"get":{"operationId":"getApiImagesV5PlayerByPlayerId","tags":["Images"],"summary":"A player’s photos, sortable","description":"v4 plus a `sort` option. Same `ImagesPlayer` projection, and the same owner’s view — see the notes on v4.","parameters":[{"name":"playerId","in":"path","required":true,"description":"Account id","schema":{"type":"integer","example":12345}},{"name":"sort","in":"query","required":false,"description":"1 = most cheered; anything else = newest first","schema":{"type":"integer","example":12345}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The player’s photos","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"SavedImageId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SavedImageType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ImageName":{"type":"string"},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]}},"required":["SavedImageId","SavedImageType","Accessibility","AccessibilityLocked","CheerCount","CommentCount","CreatedAt","Description","ImageName","PlayerEventId","PlayerId","RoomId"]}}}}}}}},"/api/images/v3/feed/player/{playerId}":{"get":{"operationId":"getApiImagesV3FeedPlayerByPlayerId","tags":["Images"],"summary":"A player’s photo feed","description":"The public camera photos they took PLUS the ones they are tagged in, newest first — the photo tab on a profile. Same `ImagesPlayer` projection as the player photo lists.\n\nPublic, but reads a Bearer token if one is sent: a player asking for THEIR OWN list gets their private photos in it too (`Accessibility` 0 — that is where the photos they have not shared yet live). Any other player’s token, no token, or an invalid one serves the public list; none of those is a 401. A photo someone else took and tagged them in stays public-only either way: its privacy is the taker’s.","parameters":[{"name":"playerId","in":"path","required":true,"description":"Account id","schema":{"type":"integer","example":12345}},{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The player’s feed","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"SavedImageId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"SavedImageType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CreatedAt":{"type":"string"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"ImageName":{"type":"string"},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]}},"required":["SavedImageId","SavedImageType","Accessibility","AccessibilityLocked","CheerCount","CommentCount","CreatedAt","Description","ImageName","PlayerEventId","PlayerId","RoomId"]}}}}}}}},"/api/images/v3/feed/global":{"get":{"operationId":"getApiImagesV3FeedGlobal","tags":["Images"],"summary":"Global public photo feed","description":"Public ShareCamera photos across all rooms, newest first. Bare SavedImage array — the website homepage feed (`images-feed-global`).","parameters":[{"name":"skip","in":"query","required":false,"description":"How many entries to skip (default 0)","schema":{"type":"integer","example":12345}},{"name":"take","in":"query","required":false,"description":"How many entries to return (default 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The global feed","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"Id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"SavedImageType: 1 = share camera, 3 = room, 4 = profile, …","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"ImageName":{"type":"string","description":"The bucket key the img worker serves it back by"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"TaggedPlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"CreatedAt":{"type":"string"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Id","Type","Accessibility","AccessibilityLocked","ImageName","Description","PlayerId","TaggedPlayerIds","RoomId","PlayerEventId","CreatedAt","CheerCount","CommentCount"]}}}}}}}},"/api/images/v1/slideshow":{"get":{"operationId":"getApiImagesV1Slideshow","tags":["Images"],"summary":"The global slideshow feed","description":"The most recent publicly-listable ShareCamera photos across all rooms, newest first, each joined to its creator’s username and room name.\n\nDeliberately public — it surfaces only already-public images and backs the anonymous homepage slideshow. `ValidTill` is a short (2-minute) cache hint the client refreshes against.","parameters":[{"name":"take","in":"query","required":false,"description":"How many photos to return (default 10, capped at 100)","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The feed plus its cache hint","content":{"application/json":{"schema":{"type":"object","properties":{"Images":{"type":"array","items":{"type":"object","properties":{"SavedImageId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"ImageName":{"type":"string"},"Username":{"type":"string"},"RoomName":{"anyOf":[{"type":"string"},{"type":"null"}]},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"SavedImageType":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"PlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}}},"required":["SavedImageId","ImageName","Username","RoomName","RoomId","SavedImageType","PlayerEventId","Accessibility","PlayerIds"]}},"ValidTill":{"type":"string","description":"ISO timestamp ~2 minutes out; the client refreshes against it"}},"required":["Images","ValidTill"]}}}}}}},"/api/images/v5/bulk":{"get":{"operationId":"getApiImagesV5Bulk","tags":["Images"],"summary":"Image metadata by id, in bulk","description":"The stored `SavedImage` records for the given ids (`?ids=207&ids=106`), as a bare array in request order. An id with no record, or one that is not public, is absent from the answer rather than an error — the list can be shorter than the request. Serves the raw `SavedImage` (as `v6` does), not the `ImagesPlayer` projection the player photo lists use.","parameters":[{"name":"ids","in":"query","required":false,"description":"Repeatable; each value may also be a comma-separated list of image ids","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The matching records, in request order","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"Id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"SavedImageType: 1 = share camera, 3 = room, 4 = profile, …","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"ImageName":{"type":"string","description":"The bucket key the img worker serves it back by"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"TaggedPlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"CreatedAt":{"type":"string"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Id","Type","Accessibility","AccessibilityLocked","ImageName","Description","PlayerId","TaggedPlayerIds","RoomId","PlayerEventId","CreatedAt","CheerCount","CommentCount"]}}}}}}}},"/api/images/v6":{"get":{"operationId":"getApiImagesV6","tags":["Images"],"summary":"Image metadata by filename","description":"An image’s stored `SavedImage` record for a bucket key — the raw record, as `v6/{id}` and `v5/bulk` serve, with `Description`, `RoomId` and `PlayerEventId` null where the row holds null. 404s when the object exists but has no metadata row.","parameters":[{"name":"name","in":"query","required":false,"description":"The image name (bucket key); required","schema":{"type":"string"}}],"responses":{"200":{"description":"The image record","content":{"application/json":{"schema":{"type":"object","properties":{"Id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"SavedImageType: 1 = share camera, 3 = room, 4 = profile, …","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"ImageName":{"type":"string","description":"The bucket key the img worker serves it back by"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"TaggedPlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"CreatedAt":{"type":"string"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Id","Type","Accessibility","AccessibilityLocked","ImageName","Description","PlayerId","TaggedPlayerIds","RoomId","PlayerEventId","CreatedAt","CheerCount","CommentCount"]}}}},"400":{"description":"No name given","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"404":{"description":"No metadata for that name"}}}},"/api/images/v6/{id}":{"get":{"operationId":"getApiImagesV6ById","tags":["Images"],"summary":"One image by id","description":"The stored `SavedImage` record for an image id — the raw record, as `v5/bulk` serves, with `Description`, `RoomId` and `PlayerEventId` null where the row holds null. A private image is served only to the player who took it; to anyone else it is a 404, like an unknown id.","parameters":[{"name":"id","in":"path","required":true,"description":"Image id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"The image record","content":{"application/json":{"schema":{"type":"object","properties":{"Id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Type":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"SavedImageType: 1 = share camera, 3 = room, 4 = profile, …","example":12345},"Accessibility":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"AccessibilityLocked":{"type":"boolean"},"ImageName":{"type":"string","description":"The bucket key the img worker serves it back by"},"Description":{"anyOf":[{"type":"string"},{"type":"null"}]},"PlayerId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"TaggedPlayerIds":{"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"RoomId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"PlayerEventId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},{"type":"null"}]},"CreatedAt":{"type":"string"},"CheerCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"CommentCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345}},"required":["Id","Type","Accessibility","AccessibilityLocked","ImageName","Description","PlayerId","TaggedPlayerIds","RoomId","PlayerEventId","CreatedAt","CheerCount","CommentCount"]}}}},"404":{"description":"No such image, or not the caller’s to see"}}}},"/api/images/v1/{id}/report":{"post":{"operationId":"postApiImagesV1ByIdReport","tags":["Images","Moderation"],"summary":"Report a photo","description":"Files a report against a saved image, as a row in the same `report` table the player, event, invention, custom-avatar-item and chat reports go to. There is no request body: the row is the reporter (the caller), the image (`image_id`), and `reported_player_id` — the image’s `PlayerId`, who took it. No category or description is stored, since none is sent. Nothing dedupes the rows, and an unknown image is refused rather than filed against nobody.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"description":"Image id","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"`{ success: true, error: \"\" }`","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"},"404":{"description":"No such image","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"error":{"type":"string","description":"Empty string when the call succeeded"}},"required":["success","error"]}}}}}}},"/api/images/v1/cheer":{"post":{"operationId":"postApiImagesV1Cheer","tags":["Images"],"summary":"Cheer or un-cheer a photo","description":"Persists the caller’s cheer and resyncs the image’s `CheerCount`. A body naming no `SavedImageId` is accepted and ignored — the ack is the same either way.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The image and the new cheer state","content":{"application/json":{"schema":{"type":"object","properties":{"SavedImageId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"Cheer":{"type":"boolean","description":"True to cheer, false to un-cheer"}},"required":["SavedImageId","Cheer"]}}}},"responses":{"200":{"description":"Recorded","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"]}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/images/v5/cheered/bulk":{"get":{"operationId":"getApiImagesV5CheeredBulk","tags":["Images"],"summary":"Which photos the caller has cheered","description":"One `{ SavedImageId, IsCheered }` per requested id, in request order — the client fills in the cheer buttons on a photo grid from this.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"query","required":false,"description":"Repeatable; each value may be a comma-separated list of image ids","schema":{"type":"integer","example":12345}}],"responses":{"200":{"description":"One entry per requested id, in order","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"SavedImageId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsCheered":{"type":"boolean"}},"required":["SavedImageId","IsCheered"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"post":{"operationId":"postApiImagesV5CheeredBulk","tags":["Images"],"summary":"Which photos the caller has cheered (bulk POST)","description":"One `{ SavedImageId, IsCheered }` per requested id, in request order — the client fills in the cheer buttons on a photo grid from this. The ids are a form body of repeated `id` fields (`id=651&id=570&…`), which is how the client sends a page of ~100 at once; the query string is read too, so the GET form of this path answers identically.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The image ids, as repeated `id` fields","content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Repeated once per image id; each value may also be comma-separated"}},"required":["id"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Repeated once per image id; each value may also be comma-separated"}},"required":["id"]}}}},"responses":{"200":{"description":"One entry per requested id, in order","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"SavedImageId":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":12345},"IsCheered":{"type":"boolean"}},"required":["SavedImageId","IsCheered"]}}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/api/players/v1/playerPhotoTaggingSetting":{"get":{"operationId":"getApiPlayersV1PlayerPhotoTaggingSetting","tags":["Images"],"summary":"The caller’s photo-tagging preference","description":"Who may tag the caller in photos, as a bare JSON integer (the enum ordinal the client defines — stored and served back untouched). `0` until the player sets one. Stored as one key in the player-settings bag the `playersettings` worker owns.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"The caller’s setting; 0 if never set","content":{"application/json":{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The caller’s photo-tagging preference; 0 until they set one","example":12345}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}},"put":{"operationId":"putApiPlayersV1PlayerPhotoTaggingSetting","tags":["Images"],"summary":"Set the caller’s photo-tagging preference","description":"Stores `Setting` as the caller’s photo-tagging preference and answers the stored value (a bare integer), which is what the client re-renders the toggle from. The write merges into the player-settings bag, so the player’s other settings are left alone. `Setting` is also read from a form body, and from a `setting` spelling; a body carrying no readable value is a no-op that answers the current setting.","security":[{"bearerAuth":[]}],"requestBody":{"description":"The preference to store","content":{"application/json":{"schema":{"type":"object","properties":{"Setting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The preference’s enum ordinal, stored verbatim","example":12345}},"required":["Setting"]}}}},"responses":{"200":{"description":"The setting the caller now has","content":{"application/json":{"schema":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The caller’s photo-tagging preference; 0 until they set one","example":12345}}}},"401":{"description":"Missing or invalid bearer token (empty body)"}}}},"/iam/me/channels/{type}":{"get":{"operationId":"getIamMeChannelsByType","tags":["Account"],"summary":"The caller’s channels of a type","description":"The channels of the given `{type}` linked to the caller’s account. This server links none, so the list is always empty — a real answer rather than a placeholder for one, since the client renders \"nothing linked\" from it. `{type}` is accepted but not inspected, and the route is not auth-gated: the answer is the same for every caller and every type.","parameters":[{"name":"type","in":"path","required":true,"description":"The channel type. Accepted but not inspected.","schema":{"type":"string"}}],"responses":{"200":{"description":"Always an empty list","content":{"application/json":{"schema":{"type":"array","items":{}}}}}}}}}}