get_delete_reasons
To obtain the reasons for deleting units in Wialon Hosting, use the unit/get_delete_reasons method. A similar method for Wialon Local is unit/get_deleted_reasons.
Endpoint
svc=unit/get_delete_reasons
¶ms={
"lang": "string"
}
&sid
Parameters
No parameters are required. You can specify the optional lang parameter, indicating the language in which you want to receive the response (en, ru, es, and so on).
Example
svc=unit/get_delete_reasons¶ms={"lang":"en"}&sid=SESSION_IDENTIFIER
Response
If the request is completed successfully, a response with unit deletion reasons is returned.
{
"delayed_resolution_of_reported_bugs_partner": { // Reason key.
"name": "Delays in fixing reported bugs", // Reason name.
"category": "Our initiative (the fleet remains with us)", // Reason category.
"sub-category": "Software-related", // Reason sub-category.
"position": 1 //Sorting index used on the front-end to determine the display order of reasons.
}
}