Working with the API sudo command