{"_id":"5a991d4617d31e0037e66a0b","project":"56f962d8d522d81700600280","version":{"_id":"56f962d8d522d81700600283","hasDoc":true,"__v":5,"hasReference":true,"project":"56f962d8d522d81700600280","createdAt":"2016-03-28T16:59:04.166Z","releaseDate":"2016-03-28T16:59:04.166Z","categories":["56f962d8d522d81700600284","5951d5489435c30015923d54","5951d6de50727a00155053c6","5951d99224e2f70015dec6c6","5951e40ef5c137001533814b"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5951d5489435c30015923d54","project":"56f962d8d522d81700600280","version":"56f962d8d522d81700600283","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-06-27T03:47:20.769Z","from_sync":false,"order":1,"slug":"tasks","title":"Reference"},"user":"57736a020a6d610e00dea1fd","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2018-03-02T09:45:42.695Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"Teams are the members of an organization who perform actions via the Wimo web applications. They manage a group of drivers in their own organization.\n[block:html]\n{\n  \"html\": \"<span style=\\\"background-color: #248FB2; color:white; padding-left:5px; padding-right:5px;\\\">Post</span>\\n<a href=\\\"https://docs.wimo.ae/docs/create-team\\\">Create Team</a>\"\n}\n[/block]\nBody parameters:\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"name\",\n    \"h-0\": \"Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-1\": \"String\",\n    \"0-2\": \"Name of the Team.\",\n    \"1-0\": \"hubId\",\n    \"1-1\": \"Integer\",\n    \"1-2\": \"Id of the hub.\",\n    \"2-0\": \"drivers\",\n    \"2-1\": \"Array of Integers\",\n    \"2-2\": \"An array of driver id.\"\n  },\n  \"cols\": 3,\n  \"rows\": 3\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --request POST \\\\\\n  --url https://be.wimo.ae:3001/api/v1/teams \\\\\\n  --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90' \\\\\\n  --data '{\\\"name\\\":\\\"Test Team 003\\\",\\\"hubId\\\":1,\\\"drivers\\\":[4]}'\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<span style=\\\"background-color: #6BBD5B; color:white; padding-left:5px; padding-right:5px;\\\">Get</span>\\n<a href=\\\"https://docs.wimo.ae/docs/get-teams\\\">Get Teams</a>\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --request GET \\\\\\n  --url https://be.wimo.ae:3001/api/v1/teams \\\\\\n  --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90'\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"success\\\": true,\\n    \\\"teams\\\": [\\n        {\\n            \\\"id\\\": 136,\\n            \\\"name\\\": \\\"Automation Team\\\",\\n            \\\"createdAt\\\": \\\"2018-02-12T08:29:45.000Z\\\",\\n            \\\"updatedAt\\\": \\\"2018-02-27T08:32:28.000Z\\\",\\n            \\\"hub\\\": {\\n                \\\"id\\\": 41,\\n                \\\"name\\\": \\\"Helio\\\",\\n                \\\"lat\\\": 16.0362087,\\n                \\\"lng\\\": 108.22429599999998,\\n                \\\"city\\\": \\\"\\\",\\n                \\\"state\\\": \\\"Đà Nẵng\\\",\\n                \\\"country\\\": \\\"Vietnam\\\",\\n                \\\"streetNumber\\\": \\\"\\\",\\n                \\\"streetName\\\": \\\"2 Tháng 9\\\",\\n                \\\"postalCode\\\": \\\"\\\",\\n                \\\"apartment\\\": \\\"\\\",\\n                \\\"createdAt\\\": \\\"2018-02-27T08:32:28.000Z\\\",\\n                \\\"updatedAt\\\": \\\"2018-02-27T08:32:28.000Z\\\"\\n            }\\n        }\\n    ]\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:html]\n{\n  \"html\": \"<span style=\\\"background-color: #E27A7A; color:white; padding-left:5px; padding-right:5px;\\\">Delete</span>\\n<a href=\\\"https://docs.wimo.ae/docs/delete-team\\\">Delete Team</a>\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl --request DELETE \\\\\\n  --url https://be.wimo.ae:3001/api/v1/teams/12342 \\\\\\n  --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90'\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"success\\\": true\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"team","type":"basic","title":"Teams"}
Teams are the members of an organization who perform actions via the Wimo web applications. They manage a group of drivers in their own organization. [block:html] { "html": "<span style=\"background-color: #248FB2; color:white; padding-left:5px; padding-right:5px;\">Post</span>\n<a href=\"https://docs.wimo.ae/docs/create-team\">Create Team</a>" } [/block] Body parameters: [block:parameters] { "data": { "0-0": "name", "h-0": "Name", "h-1": "Type", "h-2": "Description", "0-1": "String", "0-2": "Name of the Team.", "1-0": "hubId", "1-1": "Integer", "1-2": "Id of the hub.", "2-0": "drivers", "2-1": "Array of Integers", "2-2": "An array of driver id." }, "cols": 3, "rows": 3 } [/block] [block:code] { "codes": [ { "code": "curl --request POST \\\n --url https://be.wimo.ae:3001/api/v1/teams \\\n --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90' \\\n --data '{\"name\":\"Test Team 003\",\"hubId\":1,\"drivers\":[4]}'", "language": "curl" } ] } [/block] [block:html] { "html": "<span style=\"background-color: #6BBD5B; color:white; padding-left:5px; padding-right:5px;\">Get</span>\n<a href=\"https://docs.wimo.ae/docs/get-teams\">Get Teams</a>" } [/block] [block:code] { "codes": [ { "code": "curl --request GET \\\n --url https://be.wimo.ae:3001/api/v1/teams \\\n --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90'", "language": "curl" } ] } [/block] [block:code] { "codes": [ { "code": "{\n \"success\": true,\n \"teams\": [\n {\n \"id\": 136,\n \"name\": \"Automation Team\",\n \"createdAt\": \"2018-02-12T08:29:45.000Z\",\n \"updatedAt\": \"2018-02-27T08:32:28.000Z\",\n \"hub\": {\n \"id\": 41,\n \"name\": \"Helio\",\n \"lat\": 16.0362087,\n \"lng\": 108.22429599999998,\n \"city\": \"\",\n \"state\": \"Đà Nẵng\",\n \"country\": \"Vietnam\",\n \"streetNumber\": \"\",\n \"streetName\": \"2 Tháng 9\",\n \"postalCode\": \"\",\n \"apartment\": \"\",\n \"createdAt\": \"2018-02-27T08:32:28.000Z\",\n \"updatedAt\": \"2018-02-27T08:32:28.000Z\"\n }\n }\n ]\n}", "language": "json" } ] } [/block] [block:html] { "html": "<span style=\"background-color: #E27A7A; color:white; padding-left:5px; padding-right:5px;\">Delete</span>\n<a href=\"https://docs.wimo.ae/docs/delete-team\">Delete Team</a>" } [/block] [block:code] { "codes": [ { "code": "curl --request DELETE \\\n --url https://be.wimo.ae:3001/api/v1/teams/12342 \\\n --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90'", "language": "curl" } ] } [/block] [block:code] { "codes": [ { "code": "{\n \"success\": true\n}", "language": "json" } ] } [/block]