This is a POST request to create a new district. To create a new district, make a request to the following endpoint:
POST /api/districts
{
"name": "New District",
"code": "ND1",
"status": 1
}
{
"status": "success",
"code": 201,
"message": "District created successfully",
"data": {
"data": {
"id": 3,
"name": "New District",
"code": "ND1",
"status": 1,
"created_at": "2025-07-08 07:10:14",
"updated_at": "2025-07-08 07:10:14"
}
}
}