{"id":15776,"date":"2025-06-30T08:22:13","date_gmt":"2025-06-30T05:22:13","guid":{"rendered":"https:\/\/www.fmsdocumentation.com\/api-%d0%bf%d1%80%d0%b8%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-%d0%b2%d0%be%d0%b4%d1%96%d1%97%d0%b2\/"},"modified":"2025-06-30T08:27:49","modified_gmt":"2025-06-30T05:27:49","slug":"api-%d0%bf%d1%80%d0%b8%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-%d0%b2%d0%be%d0%b4%d1%96%d1%97%d0%b2","status":"publish","type":"page","link":"https:\/\/www.fmsdocumentation.com\/uk\/api\/api-%d0%bf%d1%80%d0%b8%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-%d0%b2%d0%be%d0%b4%d1%96%d1%97%d0%b2\/","title":{"rendered":"API \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u043e\u0434\u0456\u0457\u0432"},"content":{"rendered":"<h2 id=\"DriverassignationsAPI-1.Description\">1. \u041e\u043f\u0438\u0441<\/h2>\n<p>API \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u044c \u0432\u043e\u0434\u0456\u0457\u0432 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u043e\u0434\u0456\u0457\u0432 \u043e\u0431&#8217;\u0454\u043a\u0442\u0430\u043c (\u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u0438\u043c \u0437\u0430\u0441\u043e\u0431\u0430\u043c). \u0426\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0432\u0435\u0431-\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c, \u044f\u043a\u0456 \u0437\u0433\u0435\u043d\u0435\u0440\u0443\u0432\u0430\u043b\u0438 \u0441\u0432\u0456\u0439 \u043a\u043b\u044e\u0447 API, \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u043e\u0434\u0456\u0457\u0432 \u0430\u0431\u043e \u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u0442\u0438 \u043e\u0441\u0442\u0430\u043d\u043d\u0456 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0432\u0438\u043a\u043b\u0438\u043a\u0456\u0432 API. <\/p>\n<h2 id=\"DriverassignationsAPI-2.APIversion1\">2. \u0412\u0435\u0440\u0441\u0456\u044f API 1<\/h2>\n<h4 id=\"DriverassignationsAPI-2.1.CreateAssignation\">2.1. \u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f<br \/>\n2.1.1. \u0417\u0430\u043f\u0438\u0442 \u0437 \u0434\u0430\u0442\u043e\u044e \u0447\u0430\u0441\u0443 <\/h4>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>POST \/driver\/assignations?version=1&amp;api_key=&lt;...&gt;\nHOST: api.fm-track.com\nContent-Type: application\/json;charset=UTF-8\n \nBODY:\n    {\n    \"driver_id\": \"240afea1-84ae-43ec-8139-f13cfa2f3094\",\n    \"object_id\": \"7bf8990c-dba6-11e9-bdfc-1ff21de66015\",\n    \"event_type\": \"START\"\n    \"datetime\":\"2021-07-01T08:50:23.893Z\"\n    }<\/pre>\n<\/div>\n<h4 id=\"DriverassignationsAPI-2.1.2.Requestwithoutdatetime\">2.1.2. \u0417\u0430\u043f\u0438\u0442 \u0431\u0435\u0437 \u0447\u0430\u0441\u0443 \u0434\u0430\u043d\u0438\u0445<\/h4>\n<div class=\"table-wrap\">\n<div class=\"wp-block-codemirror-blocks code-block\">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"darcula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>POST \/driver\/assignations?version=1&amp;api_key=&lt;...&gt;\nHOST: api.fm-track.com\nContent-Type: application\/json;charset=UTF-8\n \nBODY:\n    {\n    \"driver_id\": \"240afea1-84ae-43ec-8139-f13cfa2f3094\",\n    \"object_id\": \"7bf8990c-dba6-11e9-bdfc-1ff21de66015\",\n    \"event_type\": \"START\"\n    }<\/pre>\n<\/div>\n<\/div>\n<div><\/div>\n<div>\n<table id=\"tablepress-195\" class=\"tablepress tablepress-id-195\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">&nbsp;<\/th><th class=\"column-2\">Parameter<\/th><th class=\"column-3\">Type<\/th><th class=\"column-4\">Description<\/th><th class=\"column-5\">Is required<\/th><th class=\"column-6\">Validation<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">1<\/td><td class=\"column-2\">version<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Version of API<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\"><\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">2<\/td><td class=\"column-2\">api_key<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">User identification key\t<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\"><\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">3<\/td><td class=\"column-2\">driver_id<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Driver identifier, External driver ID\t<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\"><\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">4<\/td><td class=\"column-2\">object_id<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Object identifier, External object ID \t<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\"><\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">5<\/td><td class=\"column-2\">event_type<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Event type\t<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\">Possible values: START, STOP<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">6<\/td><td class=\"column-2\">datetime<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Datetime for START or STOP event\t<\/td><td class=\"column-5\">-<\/td><td class=\"column-6\">ISO 8601 datetime<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-195 from cache --><\/div>\n<h4 class=\"table-wrap\">2.1.3. \u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0438\u0439 \u0437\u0430\u043f\u0438\u0442<\/h4>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\" data-macro-id=\"034e429e-0123-4efb-b5e2-5928f8b41cc0\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_442020\" class=\"syntaxhighlighter sh-rdark js\">\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"object_id\":\"7bf8990c-dba6-11e9-bdfc-1ff21de66015\",\n    \"driver_id\":\"240afea1-84ae-43ec-8139-f13cfa2f3094\",\n    \"event_type\":\"START\",\n    \"datetime\":\"2021-07-01T08:50:23.893Z\"\n}<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div class=\"table-wrap\">\n<table id=\"tablepress-196\" class=\"tablepress tablepress-id-196\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">&nbsp;<\/th><th class=\"column-2\">Parameter<\/th><th class=\"column-3\">Type<\/th><th class=\"column-4\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">1<\/td><td class=\"column-2\">driver_id<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Driver identifier, External driver ID<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">2<\/td><td class=\"column-2\">object_id<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Object identifier, External object ID<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">3<\/td><td class=\"column-2\">event_type<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Event type<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">4<\/td><td class=\"column-2\">datetime<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Datetime of START or STOP event<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-196 from cache --><\/div>\n<h4 id=\"DriverassignationsAPI-2.1.4.Responsesforincorrectrequest\">2.1.4. \u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u043d\u0435\u043a\u043e\u0440\u0435\u043a\u0442\u043d\u0438\u0439 \u0437\u0430\u043f\u0438\u0442<span style=\"font-size: 17px; font-weight: 400;\"> <\/span><\/h4>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\" data-macro-id=\"2058688a-1836-4597-8ea8-c31dc08a784e\">\n<div class=\"syntaxhighlighter sh-rdark js\">\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 422,\n    \"message\": \"Validation failed, see 'fieldValidationErrors' for more details\",\n    \"field_validation_errors\": [\n        {\n            \"field\": \"objectId\",\n            \"reason\": \"must not be empty\",\n            \"rejected_value\": \"&lt;null value&gt;\"\n        },\n        {\n            \"field\": \"driverId\",\n            \"reason\": \"must not be empty\",\n            \"rejected_value\": \"&lt;null value&gt;\"\n        },\n        {\n            \"field\": \"eventType\",\n            \"reason\": \"must not be null\",\n            \"rejected_value\": \"&lt;null value&gt;\"\n        }\n    ]\n}<\/pre>\n<\/div>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 400,\n    \"message\": \"Please provide valid driver assignation event type START|STOP\"\n}<\/pre>\n<\/div>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 400,\n    \"message\": \"Invalid format: \\\"1993 05 04\\\" is malformed at \\\" 05 04\\\"\"\n}<\/pre>\n<\/div>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 404,\n    \"message\": \"Object with id 7bf8990c-dba6-11e9-bdfc-1ff21de66015asdasdasdasdasdadas not found\"\n}<\/pre>\n<\/div>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 404,\n    \"message\": \"Driver with id 240afea1-84ae-43ec-8139-f13casfa2f3094 not found\"\n}<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div class=\"table-wrap\">\n<table id=\"tablepress-197\" class=\"tablepress tablepress-id-197\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Parameter<\/th><th class=\"column-2\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">code<\/td><td class=\"column-2\">Error code<br \/>\n400 - server cannot or will not process the request due to an apparent client error;<br \/>\n404 - requested resource could not be found but may be available in the future;<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">message<\/td><td class=\"column-2\">Error code message<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-197 from cache --><\/div>\n<h4 id=\"DriverassignationsAPI-2.2.GetlastAssignation\">2.2. \u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u043e\u0441\u0442\u0430\u043d\u043d\u0454 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f<br \/>\n2.2.1. \u0417\u0430\u043f\u0438\u0442 \u0437\u0430 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u043e\u043c \u043e\u0431&#8217;\u0454\u043a\u0442\u0430 <\/h4>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>GET \/driver\/assignations\/last?version=1&amp;byObjectId={objectId}&amp;api_key=&lt;...&gt;\nHOST: api.fm-track.com\nContent-Type: application\/json;charset=UTF-8<\/pre>\n<\/div>\n<h4 id=\"DriverassignationsAPI-2.2.2.ExamplebyObjectID\">2.2.2. \u041f\u0440\u0438\u043a\u043b\u0430\u0434 byObjectID<\/h4>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\" data-macro-id=\"eea94db5-a61d-4495-836c-2b490ddacd06\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_161793\" class=\"syntaxhighlighter sh-rdark js\">\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>GET \/driver\/assignations\/last?version=1&amp;byObjectId=7bf8990c-dba6-11e9-bdfc-1ff21de66015&amp;api_key=L6fwb1xODwA95qF7ybXJ4S2cSM49h1Wj\nHOST: api.fm-track.com\nContent-Type: application\/json;charset=UTF-8<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h4 id=\"DriverassignationsAPI-2.2.3.RequestbyDriverId\">2.2.3. \u0417\u0430\u043f\u0438\u0442 <span class=\"legacy-color-text-blue3\">byDriverId<\/span><\/h4>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>GET \/driver\/assignations\/last?version=1&amp;byDriverId={driverId}&amp;api_key=&lt;...&gt;\nHOST: api.fm-track.com\nContent-Type: application\/json;charset=UTF-8<\/pre>\n<\/div>\n<h4 id=\"DriverassignationsAPI-2.2.4.ExamplebyDriverId\">2.2.4. \u041f\u0440\u0438\u043a\u043b\u0430\u0434 <span class=\"legacy-color-text-blue3\">byDriverId<\/span><\/h4>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\" data-macro-id=\"d5aae59f-d753-4438-aa81-eca3e86fb381\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_523243\" class=\"syntaxhighlighter sh-rdark js\">\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>GET \/driver\/assignations\/last?version=1&amp;byDriverId=240afea1-84ae-43ec-8139-f13cfa2f3094&amp;api_key=L6fwb1xODwA95qF7ybXJ4S2cSM49h1Wj\nHOST: api.fm-track.com\nContent-Type: application\/json;charset=UTF-8<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n\n<table id=\"tablepress-198\" class=\"tablepress tablepress-id-198\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">&nbsp;<\/th><th class=\"column-2\">Parameter<\/th><th class=\"column-3\">Type<\/th><th class=\"column-4\">Description<\/th><th class=\"column-5\">Is required<\/th><th class=\"column-6\">Validation<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">1<\/td><td class=\"column-2\">version<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Version of API<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\"><\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">2<\/td><td class=\"column-2\">api_key<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">User identification key<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\"><\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">3<\/td><td class=\"column-2\">byDriverId<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Driver identifier, External driver ID<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\">Either byDriverId or byObjectId is required<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">4<\/td><td class=\"column-2\">byObjectId<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Object identifier, External object ID<\/td><td class=\"column-5\">+<\/td><td class=\"column-6\">Either byDriverId or byObjectId is required<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-198 from cache -->\n<h4 id=\"DriverassignationsAPI-2.2.5.Responseforcorrectrequest\">2.2.5. \u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u043d\u0430 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0438\u0439 \u0437\u0430\u043f\u0438\u0442<span style=\"font-size: 17px; font-weight: 400;\"> <\/span><\/h4>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\" data-macro-id=\"b53c279e-3c77-4892-87eb-da17ca526203\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_981184\" class=\"syntaxhighlighter sh-rdark js\">\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"object_id\":\"7bf8990c-dba6-11e9-bdfc-1ff21de66015\",\n    \"driver_id\":\"240afea1-84ae-43ec-8139-f13cfa2f3094\",\n    \"event_type\":\"STOP\",\n    \"datetime\":\"2021-07-01T08:50:28.893Z\"\n}<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n\n<table id=\"tablepress-199\" class=\"tablepress tablepress-id-199\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">&nbsp;<\/th><th class=\"column-2\">Parameter<\/th><th class=\"column-3\">Type<\/th><th class=\"column-4\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">1<\/td><td class=\"column-2\">driver_id<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Driver identifier, External driver ID<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">2<\/td><td class=\"column-2\">object_id<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Object identifier, External object ID<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">3<\/td><td class=\"column-2\">event_type<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Event type<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">4<\/td><td class=\"column-2\">datetime<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">Datetime of START or STOP event<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-199 from cache -->\n<h4 id=\"DriverassignationsAPI-2.2.6.Responsesforincorrectrequest\">2.2.6. \u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u043d\u0435\u043a\u043e\u0440\u0435\u043a\u0442\u043d\u0438\u0439 \u0437\u0430\u043f\u0438\u0442<span style=\"font-size: 17px; font-weight: 400;\"> <\/span><\/h4>\n<div class=\"code panel pdl conf-macro output-block\" data-hasbody=\"true\" data-macro-name=\"code\" data-macro-id=\"316baf42-47a7-463f-b5c9-ce99ff20921e\">\n<div class=\"codeContent panelContent pdl\">\n<div id=\"highlighter_194350\" class=\"syntaxhighlighter sh-rdark js\">\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 400,\n    \"message\": \"No query parameters were provided. Provide query parameters byDriverId or byObjectId\"\n}<\/pre>\n<\/div>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 404,\n    \"message\": \"Driver assignation event by driver id 8200f935-4970-43e3-8ab2-220c7f6463f4 not found\"\n}<\/pre>\n<\/div>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 404,\n    \"message\": \"Driver with id 240afea1-84ae-43ec-8139-f13cfa2f3a094 not found\"\n}<\/pre>\n<\/div>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting='{\"mode\":\"javascript\",\"mime\":\"application\/json\",\"theme\":\"dracula\",\"lineNumbers\":false,\"lineWrapping\":false,\"styleActiveLine\":false,\"readOnly\":true,\"align\":\"\"}'>{\n    \"code\": 404,\n    \"message\": \"Object with id 7bf8990c-dba6-11de9-bdfc-1ff21de66015 not found\"\n}<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div class=\"table-wrap\">\n<table id=\"tablepress-200\" class=\"tablepress tablepress-id-200\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Parameter<\/th><th class=\"column-2\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">code<\/td><td class=\"column-2\">Error code<br \/>\n400 - server cannot or will not process the request due to an apparent client error;<br \/>\n404 - requested resource could not be found but may be available in the future;<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">message<\/td><td class=\"column-2\">Error code message<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-200 from cache --><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. \u041e\u043f\u0438\u0441 API \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u044c \u0432\u043e\u0434\u0456\u0457\u0432 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u043e\u0434\u0456\u0457\u0432 \u043e\u0431&#8217;\u0454\u043a\u0442\u0430\u043c (\u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u0438\u043c \u0437\u0430\u0441\u043e\u0431\u0430\u043c). \u0426\u0435 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0432\u0435\u0431-\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430\u043c, \u044f\u043a\u0456 \u0437\u0433\u0435\u043d\u0435\u0440\u0443\u0432\u0430\u043b\u0438 \u0441\u0432\u0456\u0439 \u043a\u043b\u044e\u0447 API, \u0441\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u043e\u0434\u0456\u0457\u0432 \u0430\u0431\u043e \u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u0442\u0438 \u043e\u0441\u0442\u0430\u043d\u043d\u0456 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0432\u0438\u043a\u043b\u0438\u043a\u0456\u0432 API. 2. \u0412\u0435\u0440\u0441\u0456\u044f API 1 2.1. \u0421\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f 2.1.1. \u0417\u0430\u043f\u0438\u0442 \u0437 \u0434\u0430\u0442\u043e\u044e \u0447\u0430\u0441\u0443 POST \/driver\/assignations?version=1&amp;api_key=&lt;&#8230;&gt; HOST: api.fm-track.com Content-Type: application\/json;charset=UTF-8 BODY: { &#8220;driver_id&#8221;: &#8220;240afea1-84ae-43ec-8139-f13cfa2f3094&#8221;, &#8220;object_id&#8221;: &#8220;7bf8990c-dba6-11e9-bdfc-1ff21de66015&#8221;, &hellip; <a href=\"https:\/\/www.fmsdocumentation.com\/uk\/api\/api-%d0%bf%d1%80%d0%b8%d0%b7%d0%bd%d0%b0%d1%87%d0%b5%d0%bd%d0%bd%d1%8f-%d0%b2%d0%be%d0%b4%d1%96%d1%97%d0%b2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">API \u043f\u0440\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u043e\u0434\u0456\u0457\u0432<\/span><\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"parent":16492,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-15776","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/pages\/15776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/comments?post=15776"}],"version-history":[{"count":1,"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/pages\/15776\/revisions"}],"predecessor-version":[{"id":16512,"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/pages\/15776\/revisions\/16512"}],"up":[{"embeddable":true,"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/pages\/16492"}],"wp:attachment":[{"href":"https:\/\/www.fmsdocumentation.com\/uk\/wp-json\/wp\/v2\/media?parent=15776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}