Skip to main content
PATCH
/
context
/
world
/
{game_id}
/
{world_id}
Update world details
curl --request PATCH \
  --url https://app.npcbuilder.com/api/context/world/{game_id}/{world_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lore": "A world where magic and technology coexist.",
  "name": "Eldoria",
  "creatures": "Dragons, Elves",
  "similarWorlds": [
    "Middle Earth"
  ]
}'
{
  "message": "World: world456 has been updated with the following context.",
  "world_id": "world456",
  "world_context": {
    "lore": "A world where magic and technology coexist.",
    "name": "Eldoria",
    "creatures": "Dragons, Elves",
    "similarWorlds": [
      "Middle Earth"
    ]
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

game_id
string
required
Example:
world_id
string
required
Example:

Query Parameters

session_id
string
Example:

Body

application/json
lore
string
Example:
name
string
Example:
creatures
string
Example:
similarWorlds
string[]

Response

message
string
Example:
world_id
string
Example:
world_context
object
Example: