Zone
Definition
Zone Type
- JSON
- Typescript
- Kotlin
zone.json
{
"id": 0,
"countryID": 0,
"zoneName": "",
}
Get Zones
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/zone/?\$filter=&\$orderBy=&\$page=1&\$pageSize=10" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Get Zone
- Curl
- Typescript
- Kotlin
curl -X GET "https://${baseUrl}/zone/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Apply Zone.ID
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/apply/zone/id/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Create Zone
- Curl
- Typescript
- Kotlin
curl -X POST "https://${baseUrl}/zone/" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @zone.json
info
zone.json
{
"countryID": 0,
"zoneName": "",
}
tip
success status: 201
Update Zone
- Curl
- Typescript
- Kotlin
curl -X PUT "https://${baseUrl}/zone/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d @zone.json
info
zone.json
{
"countryID": 0,
"zoneName": "",
}
Update Zone Partial
- Curl
- Typescript
- Kotlin
curl -X PATCH "https://${baseUrl}/zone/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Attrs: countryID,zoneName" \
-d @zone.json
info
zone.json
{
"countryID": 0,
"zoneName": "",
}
Destroy Zone
- Curl
- Typescript
- Kotlin
curl -X DELETE "https://${baseUrl}/zone/${id}" \
-H "Authorization: Bearer ${accessToken}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"