# Get Districts

| **API URL**     | {{url}}/spice-service/data/districts/{id} |
| --------------- | ----------------------------------------- |
| **Method**      | POST                                      |
| **Description** | Get districts details by id               |

#### **Input:** <a href="#getdistricts-v2-input" id="getdistricts-v2-input"></a>

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| id                     | Integer  | Yes           | District id                                                                                                                             |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client                 | String   | Yes           | mob                                                                                                                                     |

#### **Output:** <a href="#getdistricts-v2-output" id="getdistricts-v2-output"></a>

| **Field Name** | **Type** | **Comments**      |
| -------------- | -------- | ----------------- |
| id             | Integer  | District id       |
| name           | String   | District Name     |
| code           | String   | Code for District |
| tenantId       | Bigint   | tenant id         |
| users          | String   | Users of District |
| status         | Boolean  | Response status   |
| countryId      | Bigint   | Country Id        |
| updatedAt      | Date     | Updated at        |

#### **Sample Output:** <a href="#getdistricts-v2-sampleoutput" id="getdistricts-v2-sampleoutput"></a>

```
{
  "id": 1,
  "name": "Chennai",
  "code": "0001",
  "tenantId": 2,
  "users": null,
  "status": null,
  "countryId": 1,
  "updatedAt": "2024-02-29T11:01:35+00:00"
}
```
