API is in Alpha and may change at any time.

API Resources > Civilian

Edit Civilian

This endpoint allows you to edit a civilian.

Edit Civilian

POST api/v1/civilian/edit_civilian

Request Body

Name Type Description Default
civilian_id number Civilian ID. Required
height number Height of civilian in inches. ""
weight number Weight of civilian in pounds (lb). ""
occupation string Occupation of Civilian. ""
postal number Postal Address of civilian. ""
street string Street of address. ""
city string City of address. ""
picture string Url to picture of civilian. ""

Example Request Body

{
    "civilian_id": 123456789,
    "height": 72,
    "weight": 275,
    "occupation": "",
    "postal": 1234,
    "street": "Route 68",
    "city": "Sandy Shores",
    "picture": "",
}

Responses

200 A successful call.

{
    "success": true,
    "message": "",
    "data": [
        {
            "id": 123456789,
            "user_id": "123456789123456789",
            "first_name": "John",
            "last_name": "Doe II",
            "full_name": "John Doe II",
            "picture": null,
            "date_of_birth": "09/07/1987",
            "gender": "Male",
            "race": "White",
            "postal": "1234",
            "street": "Test",
            "city": "Test",
            "full_address": "1234 Test Test",
            "occupation": null,
            "height": "72",
            "weight": "275",
            "status": null,
            "status_name": null,
            "active_persona": null,
            "created_at": "05/05/2024 22:02:33",
            "updated_at": "05/05/2024 22:02:33",
            "is_violent": null,
            "is_weapon": null,
            "is_ill": null,
            "is_swat": null,
            "is_ciu": null,
            "is_warrant": null
        }
    ]
}

200 with validation errors.


                        

200 with no civilian found.

{
    "success": false,
    "message": "No civilian found.",
    "data": []
}

Still have questions?

Still have questions? Talk to support.