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

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"

character_id
string
required

The unique identifier for the character to delete.

Example:

"character789"

Query Parameters

session_id
string

(Optional) The player's session ID.

Example:

"60Z5aZjIuFlyYbjbZZKe"

Response

Character deleted successfully.

message
string

Confirmation message after deletion.

Example:

"Character: character789 has been deleted."

character_id
string

UID of the character.

Example:

"character789"

I