Reference data
Districts for a state
Returns districts for states that require an SRO. States without SRO districts return an empty data array (not a 404).
get/states/{code}/districts
Request
- Base URLhttps://esahayak.io/api/v1
- URLhttps://esahayak.io/api/v1/states/{code}/districts
- AuthHTTP bearer
Path parameters
codestring required
Example:PB
Response
District list (empty if this state has no SRO districts).
Example response
{
"data": [
{
"code": "PB-AS",
"name": "Amritsar"
}
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.