This API is used to delete POI's from the Motia Telematics Portal. The API call requires the POI ID which can be retrieved using the Get POI's API call.
Service URL
https://ws.mycubo.online/IntegrationService.svc
Service method and input parameters
DeletePOI(string token,int poiId)
- poiId –Id of poi (example 29123)
- Token -By Using below api get the token
(https://ws.mycubo.online/IntegrationService.svc/AuthorizeUser?username=nibcapi&password=nibcapi)
Service Response
- ErrorMessage - empty for successful call
Sample Response – Expired or Invalid Token
Request
https://ws.mycubo.online/IntegrationService.svc/DeletePOI?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS&poiId=1
Response
{
"ErrorMessage": "Token was expired."
}
Sample Response – Invalid Credentials
Request
https://ws.mycubo.online/IntegrationService.svc/DeletePOI?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS&poiId=1
Response
{
"ErrorMessage": "Login failed. Please enter valid username and password."
}
Sample Request – Too Many Requests Per Minute
Request
https://ws.mycubo.online/IntegrationService.svc/DeletePOI?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS&poiId=1
Response
{
"ErrorMessage": "Last request was 3 seconds ago. Request is allowed once per
60 second period."
}
Sample Request – Invalid POI ID
Request
https://ws.mycubo.online/IntegrationService.svc/DeletePOI?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS&poiId=1
Response
{
"ErrorMessage": "Invalid PoiId",
}
Sample Request – Correct Request
Request
https://ws.mycubo.online/IntegrationService.svc/DeletePOI?token=$2a$10$PETZSdgJmRv243soXNqfeeU1I6t/RNu1XoPTmay/JpzMb2E635hhS&poiName=test&latitude=0&longitude=0&radious=1
Response
{
"ErrorMessage": "Successfullly deleted.",
"Processed": true,
}
Comments
0 comments
Article is closed for comments.