check_top_service
To check if the current user is the top user of the service, use the apps/check_top_service method. Only the top user can add, edit, and delete apps using the apps/create, apps/update, and apps/delete methods.
This method is available only in Wialon Hosting.
Endpoint
svc=apps/check_top_service¶ms={}
Response
If the current user is the top user of the service, the following response is returned:
{
"error": 0
}
Otherwise, an error code is returned.
Error codes
| Error code | Description |
|---|---|
| 7 | The current user isn’t the top user of the service, or the service isn’t Wialon Hosting. |