For the complete documentation index, see llms.txt. This page is also available as Markdown.

Civilian Endpoints

Civilian Endpoints

Raw list of civilian endpoints:

  • GET /civilian/info

  • GET /civilian/list

  • POST /civilian/create

  • PATCH /civilian/edit

  • PATCH /civilian/bolo

  • PATCH /civilian/deceased

  • DELETE /civilian/delete

List of civilian endpoint methods

If you see the empty "civilian" array or civilian: [] This is simply just the placeholder for the civilian object structure, Which looks like this in all major requests: (Inside the array)

{            
   deceased: "DECEASED",
   bolo: "BOLO",
   boloReason: "REASON",
   civilianAge: "AGE",
   civilianDOB: "DOB",
   civilianGender: "GENDER",
   civilianHairColor: "HAIR COLOR",
   civilianHeight: "HEIGHT",
   civilianWeight: "WEIGHT",
   civilianAddress: "ADDRESS",
   civilianOccupation: "OCCUPATION",
   registrationTimestamp: "TIMESTAMP",
}

Civilian Information

GET https://roleplaybot.xyz/api/civilian/info

Returns a civilians information

Headers

Name
Type
Description

Authorization*

API_KEY

API Authorization Key

Guild*

GUILD_ID

Discord Guild ID

Request Body

Name
Type
Description

name*

CIV_NAME

Civilian Characters Name (String)

Citations, Fine, Arrests and Hospital Record arrays provide an object per action.

Invalid or missing field

Accessing a guild that is not authorized apart of your API key

Civilian character could not be found

List Civilians

GET https://roleplaybot.xyz/api/civilian/list

Provides an array with objects per active civilian characters, also returns a value specifying the current amount of civilians

Headers

Name
Type
Description

Authorization*

API_KEY

API Authorization Key

Guild*

GUILD_ID

Discord Guild ID

Accessing a guild that is not authorized apart of your API key

One or more civilians found and listed

There is no registered civilian characters inside the guild

Create Civilian

POST https://roleplaybot.xyz/api/civilian/create

Creates a civilian character with supplied parameters

Headers

Name
Type
Description

Authorization*

API_KEY

API Authorization Key

Guild*

GUILD_ID

Discord Guild ID

Request Body

Name
Type
Description

userID*

USER_ID

Creating Users ID (String)

userName*

USER_NAME

Creating Users Name (String)

name*

CIV_NAME

Civilian Name (String) (<100 Characters)

age*

CIV_AGE

Civilian Age (Number) (<100)

dob*

CIV_DOB

Civilian Date Of Birth (String)

gender*

CIV_GENDER

Civilian Gender (Takes: Male, Female Or Other)

hair*

CIV_HAIR

Civilian Hair Color (String)

weight*

CIV_WEIGHT

Civilian Weight in KG (Number) (<500)

height*

CIV_HEIGHT

Civilian Height in CM (Number) (<500)

address*

CIV_ADDRESS

Civilian Address (String)

occupation*

CIV_OCCUPATION

Civilian Occupation (String)

Accessing a guild that is not authorized apart of your API key

Invalid or missing field

A civilian with that specified name already existing inside your guild

Database error, Unable to register civilian character inside database. Contact RoleplayBot support

Edit Civilian

PATCH https://roleplaybot.xyz/api/civilian/edit

Edits a civilian character with the specified field and value Valid Fields: - hair color (Value: String) - name (Value: String) - age (Value: Number <100) - dob (Value: String) - height (Value: Number <500) - weight (Value: Number <500) - occupation (Value: String) - address (Value: String)

Headers

Name
Type
Description

Authorization*

API_KEY

API Authorization Key

Guild*

GUILD_ID

Discord Guild ID

Request Body

Name
Type
Description

name*

CIV_NAME

Civilian Name (String)

field*

FIELD

Field to edit (Must be listed in valid fields)

value*

VALUE

Value to set (Must match allocated field)

Accessing a guild that is not authorized apart of your API key

Setting value is the same as the current value

Civilian successfully edited

Database error, Unable to edit civilian character inside database. Contact RoleplayBot support

Civilian BOLO

PATCH https://roleplaybot.xyz/api/civilian/bolo

Call to activate or deactivate a BOLO

Headers

Name
Type
Description

Authorization*

API_KEY

API Authorization Key

Guild*

GUILD_ID

Discord Guild ID

Request Body

Name
Type
Description

name*

CIV_NAME

Civilian Name (String)

bolo*

BOLO

Set BOLO (Boolean) (*True = Activate BOLO)

reason

REASON

BOLO Reason (Required when bolo is set to true)

Accessing a guild that is not authorized apart of your API key

Requested civilian character cannot be found

Civilian has an active BOLO

Civilian doesn't have an active BOLO

The bolo or reason field is missing or invalid (Incorrect Type)

Civilian Deceased

PATCH https://roleplaybot.xyz/api/civilian/deceased

Sets a civilian deceased. WARNING: This action is irreversible, Once a civilian is set deceased it can no longer be used.

Headers

Name
Type
Description

Authorization*

API_KEY

API Authorization Key

Guild*

GUILD_ID

Discord Guild ID

Request Body

Name
Type
Description

name*

CIV_NAME

Civilian Name (String)

deceased*

DECEASED

Deceased Value (True Boolean) (True = Set Deceased)

The deceased field is missing or invalid (Incorrect Type)

Accessing a guild that is not authorized apart of your API key

Civilian has been marked deceased

Delete Civilian

DELETE https://roleplaybot.xyz/api/civilian/delete

Deletes a civilian character

Headers

Name
Type
Description

Authorization*

API_KEY

API Authorization Key

Guild*

GUILD_ID

Discord Guild ID

Request Body

Name
Type
Description

name*

CIV_NAME

Civilian Name (String)

Successfully deleted civilian

Database error, Unable to delete civilian character inside database. Contact RoleplayBot support

Last updated