{"id":54845,"date":"2024-03-14T10:42:47","date_gmt":"2024-03-14T09:42:47","guid":{"rendered":"https:\/\/kb.apptec360.com\/manual\/knowledgebase\/general-rules\/"},"modified":"2024-12-04T05:38:13","modified_gmt":"2024-12-04T04:38:13","slug":"general-rules","status":"publish","type":"knowledgebase","link":"https:\/\/kb.apptec360.com\/manual\/uk\/knowledgebase\/general-settings\/role-based-access\/api-access\/general-rules\/","title":{"rendered":"\u0417\u0430\u0433\u0430\u043b\u044c\u043d\u0456 \u043f\u0440\u0430\u0432\u0438\u043b\u0430"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>REST API \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043f\u0456\u0434 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u044e URL-\u0430\u0434\u0440\u0435\u0441\u043e\u044e:<\/li>\n<\/ul>\n\n<p>\/public\/external\/api<\/p>\n\n<ul class=\"wp-block-list\">\n<li>\u0423\u0441\u0456 \u0437\u0430\u043f\u0438\u0442\u0438 \u043c\u0430\u044e\u0442\u044c \u0431\u0443\u0442\u0438 \u043d\u0430\u0434\u0456\u0441\u043b\u0430\u043d\u0456 \u0447\u0435\u0440\u0435\u0437 POST.  <\/li>\n\n\n\n<li>REST API \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0454 \u0437\u0430\u043f\u0438\u0442\u0438 \u0442\u0456\u043b\u044c\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 HTTPS.  <\/li>\n\n\n\n<li>\u0417\u0430\u043f\u0438\u0442\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u0442\u0430\u043a\u0456 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438:<\/li>\n<\/ul>\n\n<table id=\"tablepress-6\" class=\"tablepress tablepress-id-6\">\n<caption style=\"caption-side:bottom;text-align:left;border:none;background:none;margin:0;padding:0;\"><a href=\"https:\/\/kb.apptec360.com\/manual\/wp-admin\/admin.php?page=tablepress&#038;action=edit&#038;table_id=6\" rel=\"nofollow\">\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438<\/a><\/caption>\n<tbody class=\"row-hover\">\n<tr class=\"row-1 odd\">\n\t<td class=\"column-1\"><br\/>\n        <p>\u041d\u0430\u0437\u0432\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430<\/p><br\/>\n      <\/td><td class=\"column-2\"><br\/>\n        <p>\u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430<\/p><br\/>\n      <\/td><td class=\"column-3\"><br\/>\n        <p>\u041e\u043f\u0438\u0441<\/p><br\/>\n      <\/td>\n<\/tr>\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\"><br\/>\n        <p>\u0422\u0438\u043f \u0432\u043c\u0456\u0441\u0442\u0443<\/p><br\/>\n      <\/td><td class=\"column-2\"><br\/>\n        <p>application\/json<\/p><br\/>\n      <\/td><td class=\"column-3\"><br\/>\n        <p>\u0444\u0456\u043a\u0441\u043e\u0432\u0430\u043d\u0438\u0439<\/p><br\/>\n      <\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\"><br\/>\n        <p>\u0430\u0432\u0442.<\/p><br\/>\n      <\/td><td class=\"column-2\"><br\/>\n        <p>123&#8230;xyz<\/p><br\/>\n      <\/td><td class=\"column-3\"><br\/>\n        <p>\u041a\u043b\u044e\u0447 API \u0443 \u0432\u043a\u043b\u0430\u0434\u0446\u0456 &#8220;\u0414\u043e\u0441\u0442\u0443\u043f \u0434\u043e API&#8221;<\/p><br\/>\n      <\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\"><br\/>\n        <p>\u043f\u0456\u0434\u043f\u0438\u0441<\/p><br\/>\n      <\/td><td class=\"column-2\"><br\/>\n        <p>\u041f\u0456\u0434\u043f\u0438\u0441, \u0437\u0430\u043a\u043e\u0434\u043e\u0432\u0430\u043d\u0438\u0439 Base64<\/p><br\/>\n      <\/td><td class=\"column-3\"><br\/>\n        <p>\u041f\u0456\u0434\u043f\u0438\u0441 \u043a\u043e\u0440\u0438\u0441\u043d\u043e\u0433\u043e \u043d\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f, \u0437\u0433\u0435\u043d\u0435\u0440\u043e\u0432\u0430\u043d\u043e\u0433\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e<\/p><br\/>\n        <p>\u043f\u0440\u0438\u0432\u0430\u0442\u043d\u0438\u0439 \u043a\u043b\u044e\u0447 \u0443 \u0432\u043a\u043b\u0430\u0434\u0446\u0456 &#8220;\u0414\u043e\u0441\u0442\u0443\u043f \u0434\u043e API&#8221;<\/p><br\/>\n      <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<ul class=\"wp-block-list\">\n<li>\u0422\u0456\u043b\u043e \u0437\u0430\u043f\u0438\u0442\u0443 \u043c\u0430\u0454 \u0431\u0443\u0442\u0438 \u043e\u0431&#8217;\u0454\u043a\u0442\u043e\u043c \u0443 \u0444\u043e\u0440\u043c\u0430\u0442\u0456 json, \u044f\u043a\u0438\u0439 \u043f\u043e\u0432\u0438\u043d\u0435\u043d \u043c\u0456\u0441\u0442\u0438\u0442\u0438 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f:<\/li>\n<\/ul>\n\n<div class=\"pagebreak-after\"><\/div>\n\n<table id=\"tablepress-7\" class=\"tablepress tablepress-id-7\">\n<caption style=\"caption-side:bottom;text-align:left;border:none;background:none;margin:0;padding:0;\"><a href=\"https:\/\/kb.apptec360.com\/manual\/wp-admin\/admin.php?page=tablepress&#038;action=edit&#038;table_id=7\" rel=\"nofollow\">\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438<\/a><\/caption>\n<tbody class=\"row-hover\">\n<tr class=\"row-1 odd\">\n\t<td class=\"column-1\"><br\/>\n        <p>\u041f\u043e\u043b\u0435<\/p><br\/>\n      <\/td><td class=\"column-2\"><br\/>\n        <p>\u041f\u0440\u0438\u043a\u043b\u0430\u0434 \u043f\u043e\u043b\u044f \u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f<\/p><br\/>\n      <\/td><td class=\"column-3\"><br\/>\n        <p>\u041e\u043f\u0438\u0441<\/p><br\/>\n      <\/td>\n<\/tr>\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\"><br\/>\n        <p>api<\/p><br\/>\n      <\/td><td class=\"column-2\"><br\/>\n        <p>v2\/device\/listdevices<\/p><br\/>\n      <\/td><td class=\"column-3\"><br\/>\n        <p>\u041d\u0430\u0437\u0432\u0430 API<\/p><br\/>\n      <\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\"><br\/>\n        <p>\u0447\u0430\u0441<\/p><br\/>\n      <\/td><td class=\"column-2\"><br\/>\n        <p>1529662725<\/p><br\/>\n      <\/td><td class=\"column-3\"><br\/>\n        <p>\u041c\u0456\u0442\u043a\u0430 \u0447\u0430\u0441\u0443 Unix (UTC) \u043a\u043b\u0456\u0454\u043d\u0442\u0441\u044c\u043a\u043e\u0457 \u043c\u0430\u0448\u0438\u043d\u0438.<\/p><br\/>\n        <p>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0430 \u0440\u0456\u0437\u043d\u0438\u0446\u044f \u0432 \u0447\u0430\u0441\u0456<\/p><br\/>\n        <p>\u043c\u0456\u0436 \u043a\u043b\u0456\u0454\u043d\u0442\u043e\u043c \u0456 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0434\u043e\u0440\u0456\u0432\u043d\u044e\u0454 30<\/p><br\/>\n        <p>\u0445\u0432\u0438\u043b\u0438\u043d.<\/p><br\/>\n      <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<ul class=\"wp-block-list\">\n<li>\u0423 \u0440\u0430\u0437\u0456 \u0443\u0441\u043f\u0456\u0445\u0443 API \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454 \u0437\u0430\u043f\u0438\u0442\u0443\u0432\u0430\u043d\u0456 \u0434\u0430\u043d\u0456 (\u0434\u0438\u0432. \u0417\u0430\u043f\u0438\u0442\u0438 \u043d\u0438\u0436\u0447\u0435) \u0456 \u043a\u043e\u0434 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 HTTP 200.<\/li>\n\n\n\n<li>\u0423 \u0440\u0430\u0437\u0456 \u0432\u0438\u043d\u0438\u043a\u043d\u0435\u043d\u043d\u044f \u043f\u043e\u043c\u0438\u043b\u043a\u0438 HTTP-\u043a\u043e\u0434 \u0441\u0442\u0430\u0442\u0443\u0441\u0443 \u0431\u0443\u0434\u0435 \u043c\u0430\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u0456\u0434 4xx \u0434\u043e 5xx \u0437\u0430\u043b\u0435\u0436\u043d\u043e \u0432\u0456\u0434 \u043f\u043e\u043c\u0438\u043b\u043a\u0438, \u0430 \u043e\u0431&#8217;\u0454\u043a\u0442 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043c\u0456\u0441\u0442\u0438\u0442\u0438\u043c\u0435 \u043c\u0430\u0441\u0438\u0432 \u0437 \u043a\u043b\u044e\u0447\u0435\u043c &#8220;errors&#8221;, \u044f\u043a\u0438\u0439 \u043c\u0456\u0441\u0442\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u043b\u0435\u043d\u044c \u043f\u0440\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0438, \u044f\u043a\u0456 \u043c\u043e\u0436\u043d\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438 \u043b\u044e\u0434\u0438\u043d\u043e\u044e.<\/li>\n\n\n\n<li>\u042f\u043a\u0449\u043e \u0434\u043b\u044f \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044e \u043d\u0435\u043c\u0430\u0454 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u0445 \u0434\u0430\u043d\u0438\u0445, \u0431\u0443\u0434\u0435 \u043f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u043e \u043f\u043e\u0440\u043e\u0436\u043d\u0456\u0439 \u043c\u0430\u0441\u0438\u0432.<\/li>\n\n\n\n<li>\u042f\u043a\u0449\u043e \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044e \u043d\u0435 \u0456\u0441\u043d\u0443\u0454, \u0434\u0430\u043d\u0456, \u0449\u043e \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u044e\u0442\u044c\u0441\u044f, \u0431\u0443\u0434\u0443\u0442\u044c \u043d\u0443\u043b\u044c\u043e\u0432\u0438\u043c\u0438.<\/li>\n<\/ul>\n","protected":false},"parent":54847,"menu_order":0,"template":"","class_list":["post-54845","knowledgebase","type-knowledgebase","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/kb.apptec360.com\/manual\/uk\/wp-json\/wp\/v2\/knowledgebase\/54845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.apptec360.com\/manual\/uk\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/kb.apptec360.com\/manual\/uk\/wp-json\/wp\/v2\/types\/knowledgebase"}],"version-history":[{"count":2,"href":"https:\/\/kb.apptec360.com\/manual\/uk\/wp-json\/wp\/v2\/knowledgebase\/54845\/revisions"}],"predecessor-version":[{"id":56046,"href":"https:\/\/kb.apptec360.com\/manual\/uk\/wp-json\/wp\/v2\/knowledgebase\/54845\/revisions\/56046"}],"up":[{"embeddable":true,"href":"https:\/\/kb.apptec360.com\/manual\/uk\/wp-json\/wp\/v2\/knowledgebase\/54847"}],"wp:attachment":[{"href":"https:\/\/kb.apptec360.com\/manual\/uk\/wp-json\/wp\/v2\/media?parent=54845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}