Skip to main content
POST
/
context
/
location
/
{game_id}
/
{world_id}
/
{region_id}
Create a new location
curl --request POST \
  --url https://app.npcbuilder.com/api/context/location/{game_id}/{world_id}/{region_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lore": "A bustling market town.",
  "name": "Rivertown",
  "role": "Trade hub"
}'
{
  "message": "Location: location789 has been created with the following context.",
  "location_id": "location789",
  "location_context": {
    "lore": "A bustling market town.",
    "name": "Rivertown",
    "role": "Trade hub"
  }
}

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:
role
string
Example:

Response

message
string
Example:
location_id
string
Example:
location_context
object
Example: