Skip to content
Update a World

Update a World

Change a World’s name, description, or icon.

PATCH/api/v1/worlds/:id

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/worlds/01995e56-e2d4-7f19-b691-7bf9af6abdc8", {
  method: "PATCH",
  headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
  body: JSON.stringify({
  "name": "Customer support"
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Path parameters#

idUUIDrequired

The World ID returned by POST /worlds or GET /worlds.

Request body#

namestring

Trimmed name, 1–255 characters.

descriptionstring | null

Up to 2,000 characters. null or an empty string clears it.

iconSeedstring | null

Up to 255 characters. null or an empty string uses the World ID.

Responses#

Returns the updated World, with the same fields as GET /worlds/:id.

200 response
{
  "id": "01995e56-e2d4-7f19-b691-7bf9af6abdc8",
  "name": "Customer support",
  "description": "An environment for your support agent.",
  "iconSeed": "01995e56-e2d4-7f19-b691-7bf9af6abdc8",
  "createdAt": "2026-10-10T12:00:00.000Z",
  "updatedAt": "2026-10-10T12:00:00.000Z"
}
More about this endpoint

Provide at least one setting. Omitted settings keep their values.