Districts
Retrieve a specific District by ID
Unique identifier of the resource
1
GET /api/v1/districts/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"pk": 1,
"name": "Davutpasa",
"is_active": true,
"city": 1,
"township": 1,
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"postcode": "34000",
"zipcode": "34000",
"created_date": "2025-06-27T09:00:05.377Z",
"modified_date": "2025-06-27T09:00:05.377Z"
}
Update a specific District by ID
Unique identifier of the resource
1
Primary key of the district
District Name
Davutpasa
Is it active? (True/False)
true
Related City ID
Related Township ID
Postcode
34000
Zipcode
34000
PUT /api/v1/districts/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"name": "Davutpasa",
"is_active": true,
"city": 1,
"township": 1,
"postcode": "34000",
"zipcode": "34000",
"modified_date": "2025-06-27T09:00:05.377Z"
}
No content
Delete a specific District by ID
Unique identifier of the resource
1
DELETE /api/v1/districts/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Partial update a specific District by ID
Unique identifier of the resource
1
Primary key of the district
District Name
Davutpasa
Is it active? (True/False)
true
Related City ID
Related Township ID
Postcode
34000
Zipcode
34000
PATCH /api/v1/districts/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"name": "Davutpasa",
"is_active": true,
"city": 1,
"township": 1,
"postcode": "34000",
"zipcode": "34000",
"modified_date": "2025-06-27T09:00:05.377Z"
}
No content
Retrieve a specific District by ID with details
Unique identifier of the resource
1
GET /api/v1/districts/{id}/detailed/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"city": 1,
"township": 1,
"pk": 1,
"name": "Davutpasa",
"is_active": true,
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"postcode": "34000",
"zipcode": "34000",
"created_date": "2025-06-27T09:00:05.377Z",
"modified_date": "2025-06-27T09:00:05.377Z"
}
List Districts
Specifies the page number of the current dataset
1
Indicates the number of rows on the current page.
10
Filters by exact name
Filter by integration mapping object's integration type
Filter by integration mapping object's code
Activate id to hyperlink the response data.
Filter by City ID
Filter by Township ID
Filter by Postcode
GET /api/v1/districts/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 0,
"next": "text",
"previous": "text",
"results": [
{
"created_date": "2025-06-27T09:00:05.377Z",
"modified_date": "2025-06-27T09:00:05.377Z"
}
]
}
Create District
Primary key of the district
District Name
Davutpasa
Is it active? (True/False)
true
Related City ID
Related Township ID
Postcode
34000
Zipcode
34000
POST /api/v1/districts/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"name": "Davutpasa",
"is_active": true,
"city": 1,
"township": 1,
"postcode": "34000",
"zipcode": "34000",
"modified_date": "2025-06-27T09:00:05.377Z"
}
{
"pk": 1,
"name": "Davutpasa",
"is_active": true,
"city": 1,
"township": 1,
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"postcode": "34000",
"zipcode": "34000",
"created_date": "2025-06-27T09:00:05.377Z",
"modified_date": "2025-06-27T09:00:05.377Z"
}
List Districts with details
Specifies the page number of the current dataset
1
Indicates the number of rows on the current page.
10
Filters by exact name
Filter by integration mapping object's integration type
Filter by integration mapping object's code
Activate id to hyperlink the response data.
Filter by City ID
Filter by Township ID
Filter by Postcode
GET /api/v1/districts/detailed/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 0,
"next": "text",
"previous": "text",
"results": [
{
"pk": 1,
"name": "Davutpasa",
"is_active": true,
"city": 1,
"township": 1,
"translations": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"postcode": "34000",
"zipcode": "34000",
"created_date": "2025-06-27T09:00:05.377Z",
"modified_date": "2025-06-27T09:00:05.377Z"
}
]
}
Was this helpful?