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"
]
}'
Copy
{
"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"
]
}
}
Worlds
Update world details
Update the details of an existing world. Modify fields such as lore, name, creatures, and similar worlds.
PATCH
/
context
/
world
/
{game_id}
/
{world_id}
Update world details
Copy
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"
]
}'
Copy
{
"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"
]
}
}