{"id":32409,"date":"2022-02-03T17:05:21","date_gmt":"2022-02-03T23:05:21","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=32409"},"modified":"2022-02-04T10:13:06","modified_gmt":"2022-02-04T16:13:06","slug":"create-an-uninstall-app-task-on-a-device","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/devicehq\/account-api-extensions-for-task-management\/detailed-request-examples\/create-an-uninstall-app-task-on-a-device\/","title":{"rendered":"Create an Uninstall App Task on a Device"},"content":{"rendered":"<pre class=\"brush:xml\">\r\n\r\nPOST \/api\/v2\/devices\/997512397\/tasks\r\n{\r\n  \"data\": {\r\n    \"type\": \"tasks\",\r\n    \"attributes\": {\r\n      \"type\": \"UNINSTALL_APP\",\r\n      \"app_id\": \"60d0a5eb31eddd285865a784\"\r\n    }\r\n  }\r\n}<\/pre>\n<p>RESPONSE:<\/p>\n<pre class=\"brush:xml\">\r\n{\r\n  \"data\": {\r\n    \"id\": \"60d0dc1631eddd4bc3b5ac66\",\r\n    \"type\": \"tasks\",\r\n    \"attributes\": {\r\n      \"function\": \"UNINSTALL_APP\",\r\n      \"created_at\": \"2021-06-21T18:36:06.295Z\",\r\n      \"state\": \"queued\",\r\n      \"app_id\": \"60d0dc1631eddd4bc3b5ac5d\",\r\n      \"app\": {\r\n        \"name\": \"app_60196004\",\r\n        \"version\": \"0.3.7\",\r\n        \"config_ids\": null,\r\n        \"id\": \"60d0dc1631eddd4bc3b5ac5d\"\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>POST \/api\/v2\/devices\/997512397\/tasks { &#8220;data&#8221;: { &#8220;type&#8221;: &#8220;tasks&#8221;, &#8220;attributes&#8221;: { &#8220;type&#8221;: &#8220;UNINSTALL_APP&#8221;, &#8220;app_id&#8221;: &#8220;60d0a5eb31eddd285865a784&#8221; } } } RESPONSE: { &#8220;data&#8221;: { &#8220;id&#8221;: &#8220;60d0dc1631eddd4bc3b5ac66&#8221;, &#8220;type&#8221;: &#8220;tasks&#8221;, &#8220;attributes&#8221;: { &#8220;function&#8221;: &#8220;UNINSTALL_APP&#8221;, &#8220;created_at&#8221;: &#8220;2021-06-21T18:36:06.295Z&#8221;, &#8220;state&#8221;: &#8220;queued&#8221;, &#8220;app_id&#8221;: &#8220;60d0dc1631eddd4bc3b5ac5d&#8221;, &#8220;app&#8221;: { &#8220;name&#8221;: &#8220;app_60196004&#8221;, &#8220;version&#8221;: &#8220;0.3.7&#8221;, &#8220;config_ids&#8221;: null, &#8220;id&#8221;: &#8220;60d0dc1631eddd4bc3b5ac5d&#8221; } } } }<\/p>\n","protected":false},"author":537,"featured_media":0,"parent":32378,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-32409","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/32409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/537"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=32409"}],"version-history":[{"count":4,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/32409\/revisions"}],"predecessor-version":[{"id":32889,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/32409\/revisions\/32889"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/32378"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=32409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}