Create Geofence
Create New Geofence Data
application/x-www-form-urlencoded
application/json
Request Body
fenceName string
type string
Ex: polygon / circle
polyData string
Ex: ((latitude1, longitude1), (latitude2, longitude2), (latitude3, longitude3)) => Jumlah Titik Tidak Terbatas
circData string
Ex: <(latitude,longitude),radius> => Radius Dalam Meter
address string
addressDetail string
province string
city string
postalCode string
industry string
contactName string
phoneNo string
telephone string
category string
isGarage boolean required
isServiceLoc boolean required
serviceLocType string
Request Body
fenceName string
type string
Ex: polygon / circle
polyData string
Ex: ((latitude1, longitude1), (latitude2, longitude2), (latitude3, longitude3)) => Jumlah Titik Tidak Terbatas
circData string
Ex: <(latitude,longitude),radius> => Radius Dalam Meter
address string
addressDetail string
province string
city string
postalCode string
industry string
contactName string
phoneNo string
telephone string
category string
isGarage boolean required
isServiceLoc boolean required
serviceLocType string
Responses
- 200
- 400
- 401
Success
application/json
Schema
Example (from schema)
Schema
message string required
data object
id number required
information string required
{
"message": "string",
"data": {
"id": 0,
"information": "string"
}
}
Bad Request
application/json
Schema
Example (from schema)
Expired Token
Bad Token
Schema
code string
message string
detail string
{
"code": "string",
"message": "string",
"detail": "string"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt expired"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt malformed"
}
Unauthorized Request
application/json
Schema
Example (from schema)
Example
Schema
code string
message string
{
"code": "string",
"message": "string"
}
{
"code": "E-G1/1-01",
"message": "Authentication token is required"
}
Loading...