{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/tags/TRIP.json","auth":"required","method":"post","examples":{"codes":[]},"results":{"codes":[{"status":200,"language":"json","code":"{  \n   \"code\":200,\n   \"message\":\"Success\",\n   \"reason\":null,\n   \"generatedAtInMillis\":1509612712617,\n   \"tagAssociate\":{  \n\n   }\n}","name":""}]},"settings":"559288b86bf22f170075b794","params":[{"name":"entityTagResources","type":"array_object","default":"","desc":"Array of trip - tag pair. tagIds is the unique identifier of the tag to be assigned to the trip. Use the following predefined values to tag the trip as business or personal - Business: a8494db1-0e23-11e7-a74a-22000aeaa6da, Personal:  a8494d31-0e23-11e7-a74a-22000aeaa6da. tripId is the unique identifier representing the trip","required":true,"in":"body","ref":"","_id":"59fffa14adc119001ae437cf"}]},"next":{"description":"","pages":[]},"title":"Trip Tags","type":"endpoint","slug":"trip-tags","excerpt":"This API allows you to categorize trips taken by assigning tags to them. You can categorize trips as personal and business. \n\nYou can assign the tags to multiple trips in a single API call.","body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Sample Request\",\n  \"body\": \"https://api.azuga.com/v1/tags/TRIP.json\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{  \\n   \\\"entityTagResources\\\":[  \\n      {  \\n         \\\"tagIds\\\":[  \\n            \\\"a8494db1-0e23-11e7-a74a-22000aeaa6da\\\", \\n            \\\"a8494d31-0e23-11e7-a74a-22000aeaa6da\\\"\\n         ],\\n         \\\"tripId\\\":\\\"D47509F05A4612BFD53EF2F350FEA614\\\"\\n      }\\n   ]\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Sample Payload\"\n    }\n  ]\n}\n[/block]\n##API Response Explanation\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field\",\n    \"h-1\": \"Description\",\n    \"2-0\": \"reason\",\n    \"0-0\": \"code\",\n    \"0-1\": \"API Status Code\",\n    \"1-0\": \"message\",\n    \"1-1\": \"API Message (Success/Failure)\",\n    \"2-1\": \"Reason for failure\",\n    \"3-0\": \"generatedAtInMillis\",\n    \"3-1\": \"API generation timestamp in Milliseconds\",\n    \"4-0\": \"tagAssociate\",\n    \"4-1\": \"Error message indicating that an invalid tag was assigned to the trip\"\n  },\n  \"cols\": 2,\n  \"rows\": 5\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"Disclaimer\",\n  \"body\": \"This API provides information only for a driver and does not provide aggregated information for a group of vehicles. Admins should not use these APIs, but should look at other sections of the documentation.\"\n}\n[/block]","updates":[],"order":18,"isReference":true,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"59fff8cfaeb5ff00248c3618","project":"55926c913735880d005f7c65","version":{"version":"1","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["559286c7c39c4b2d00127a72","55928a98c39c4b2d00127a83","5592bd7b9a68220d00f1c3db","5593dcaf0e82e81700334e25","5594342f0c33bd0d000595a3","563081713998420d00a509e4","5630941c7581b80d00c51c86","56309f4ff1c0580d00fac666","567923b8239fac0d00c7df25","573306dea6a9c40e00e13875","577a288fd051530e00f65563","579af3982b865e17005a4357","57ee06aa1e42900e0014a374","5951f49a63f39000159e7ef1","5951f4c563f39000159e7ef2","598951542a9dfc000fcacd40","5b3375cc98cb500003e4b363","5bbcd4e29667280003084100"],"_id":"559286c6c39c4b2d00127a71","createdAt":"2015-06-30T12:08:38.768Z","project":"55926c913735880d005f7c65","releaseDate":"2015-06-30T12:08:38.768Z","__v":18,"forked_from":"559286b6c39c4b2d00127a6e"},"category":{"sync":{"isSync":false,"url":""},"pages":["55928fd16bf22f170075b7b4","5592bd5a6bf22f170075b851","56416d6803881c0d00ac214b","5641702a03881c0d00ac214d","56417262b0dc090d00f88396","5641748f9f4ed50d008be04d","56417a76f424a10d00118215","56417c7b9417b40d00c0fbc6","56417f7f9417b40d00c0fbca","5641803203881c0d00ac2153","5641842903881c0d00ac2155","56418c259f4ed50d008be062","56418e30b0dc090d00f883a6","564192599417b40d00c0fbd1","564195c403881c0d00ac2162","5641988502fe811900f076c3","5641b8dc03881c0d00ac217c","5641c06238e37e0d0049fe6b","5656e88da795770d00a2aee0"],"title":"MOBILE","slug":"fleet-mobile","order":1,"from_sync":false,"reference":true,"_id":"55928a98c39c4b2d00127a83","version":"559286c6c39c4b2d00127a71","project":"55926c913735880d005f7c65","__v":19,"createdAt":"2015-06-30T12:24:56.461Z"},"user":"5656a3dd5656350d001d83a0","createdAt":"2017-11-06T05:53:19.318Z","githubsync":"","__v":9,"parentDoc":null}

postTrip Tags

This API allows you to categorize trips taken by assigning tags to them. You can categorize trips as personal and business. You can assign the tags to multiple trips in a single API call.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

entityTagResources:
required
array of objects
Array of trip - tag pair. tagIds is the unique identifier of the tag to be assigned to the trip. Use the following predefined values to tag the trip as business or personal - Business: a8494db1-0e23-11e7-a74a-22000aeaa6da, Personal: a8494d31-0e23-11e7-a74a-22000aeaa6da. tripId is the unique identifier representing the trip

Result Format


Documentation

[block:callout] { "type": "info", "title": "Sample Request", "body": "https://api.azuga.com/v1/tags/TRIP.json" } [/block] [block:code] { "codes": [ { "code": "{ \n \"entityTagResources\":[ \n { \n \"tagIds\":[ \n \"a8494db1-0e23-11e7-a74a-22000aeaa6da\", \n \"a8494d31-0e23-11e7-a74a-22000aeaa6da\"\n ],\n \"tripId\":\"D47509F05A4612BFD53EF2F350FEA614\"\n }\n ]\n}", "language": "json", "name": "Sample Payload" } ] } [/block] ##API Response Explanation [block:parameters] { "data": { "h-0": "Field", "h-1": "Description", "2-0": "reason", "0-0": "code", "0-1": "API Status Code", "1-0": "message", "1-1": "API Message (Success/Failure)", "2-1": "Reason for failure", "3-0": "generatedAtInMillis", "3-1": "API generation timestamp in Milliseconds", "4-0": "tagAssociate", "4-1": "Error message indicating that an invalid tag was assigned to the trip" }, "cols": 2, "rows": 5 } [/block] [block:callout] { "type": "warning", "title": "Disclaimer", "body": "This API provides information only for a driver and does not provide aggregated information for a group of vehicles. Admins should not use these APIs, but should look at other sections of the documentation." } [/block]

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}