Skip to main content
PATCH
/
context
/
region
/
{game_id}
/
{world_id}
/
{region_id}
Update region details
curl --request PATCH \
  --url https://app.npcbuilder.com/api/context/region/{game_id}/{world_id}/{region_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lore": "A dense forest with hidden secrets.",
  "name": "Mystic Forest",
  "weather": "Rainy",
  "culture": "Druidic traditions",
  "politicalStability": "stable"
}'
{
  "message": "Region: region789 has been updated with the following context.",
  "region_id": "region789",
  "region_context": {
    "lore": "A dense forest with hidden secrets.",
    "name": "Mystic Forest",
    "weather": "Rainy",
    "culture": "Druidic traditions",
    "politicalStability": "stable"
  }
}

Authorizations

Authorization
string
header
required

Path Parameters

game_id
string
required
Example:
world_id
string
required
Example:
region_id
string
required
Example:

Query Parameters

session_id
string
Example:

Body

application/json
lore
string
Example:
name
string
Example:
weather
string
Example:
culture
string
Example:
politicalStability
enum<string>
Available options:
none,
highlyStable,
stable,
moderatelyStable,
unstable,
highlyUnstable,
anarchy
Example:

Response

message
string
Example:
region_id
string
Example:
region_context
object
Example: