Skip to main content
DELETE
/
context
/
region
/
{game_id}
/
{world_id}
/
{region_id}
Delete a region
curl --request DELETE \
  --url https://app.npcbuilder.com/api/context/region/{game_id}/{world_id}/{region_id} \
  --header 'Authorization: Bearer <token>'
{
  "message": "Region: region789 has been deleted.",
  "region_id": "region789"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

game_id
string
required

The unique identifier for the game.

Example:

"game123"

world_id
string
required

The unique identifier for the world.

Example:

"world456"

region_id
string
required

The unique identifier for the region to be deleted.

Example:

"region789"

Query Parameters

session_id
string

(Optional) The player's session ID.

Example:

"60Z5aZjIuFlyYbjbZZKe"

Response

Region deleted successfully.

message
string

Confirmation message after deletion.

Example:

"Region: region789 has been deleted."

region_id
string

UID of the region.

Example:

"region789"

I