{"_id":"59521af706c1c7001b4df62d","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":"2017-06-27T08:44:39.600Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Organizations may be linked to other organizations so that tasks can be assigned across organizational boundaries through the Connections feature\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-connection-company\\\">Create Connection Company</a>\"\n}\n[/block]\n\nBody parameters\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"name\",\n    \"0-1\": \"String\",\n    \"0-2\": \"Connection's name.\",\n    \"1-0\": \"address\",\n    \"1-1\": \"String\",\n    \"1-2\": \"Connection's address.\",\n    \"2-0\": \"adminName\",\n    \"2-1\": \"String\",\n    \"2-2\": \"Admin's name.\",\n    \"3-0\": \"adminEmail\",\n    \"3-1\": \"String\",\n    \"3-2\": \"Admin's email address.\",\n    \"4-0\": \"adminPhone\",\n    \"4-1\": \"String\",\n    \"4-2\": \"Admin's phone number.\"\n  },\n  \"cols\": 3,\n  \"rows\": 5\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/companies \\\\\\n  --header 'authorization: Test Company' \\\\\\n  --data '{\\\"name\\\":\\\"Test Company name\\\",\\\"address\\\":\\\"Test Company address\\\",\\\"adminName\\\":\\\"Test admin name\\\",\\\"adminEmail\\\":\\\"admin:::at:::gmail.com\\\",\\\"adminPhone\\\":\\\"+841222222222\\\"}'\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"success\\\": true,\\n    \\\"company\\\": {\\n        \\\"id\\\": 5914,\\n        \\\"name\\\": \\\"ewrfew\\\",\\n        \\\"address\\\": \\\"qwdeqweqw\\\",\\n        \\\"website\\\": null,\\n        \\\"email\\\": \\\"qweqwe@gmail.com\\\",\\n        \\\"timezone\\\": \\\"Etc/UTC\\\",\\n        \\\"currency\\\": \\\"USD\\\",\\n        \\\"lat\\\": null,\\n        \\\"lng\\\": null,\\n        \\\"phone\\\": null,\\n        \\\"logo\\\": null,\\n        \\\"paying\\\": false,\\n        \\\"createdAt\\\": \\\"2017-06-27T09:17:58.000Z\\\",\\n        \\\"updatedAt\\\": \\\"2017-06-27T09:17:58.000Z\\\",\\n        \\\"companyTypeId\\\": null,\\n        \\\"countryId\\\": null\\n    }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\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/send-connection-request\\\">Send Connection Request</a>\"\n}\n[/block]\n\nBody parameters:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"email\",\n    \"0-1\": \"String\",\n    \"0-2\": \"Organization's email address that you want to send the request.\"\n  },\n  \"cols\": 3,\n  \"rows\": 1\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/connections/requests \\\\\\n  --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90' \\\\\\n  --data '{\\\"email\\\":\\\"admin@unima.vn\\\"}'\",\n      \"language\": \"shell\"\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":"connection","type":"basic","title":"Connections"}
Organizations may be linked to other organizations so that tasks can be assigned across organizational boundaries through the Connections feature [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-connection-company\">Create Connection Company</a>" } [/block] Body parameters [block:parameters] { "data": { "h-0": "Name", "h-1": "Type", "h-2": "Description", "0-0": "name", "0-1": "String", "0-2": "Connection's name.", "1-0": "address", "1-1": "String", "1-2": "Connection's address.", "2-0": "adminName", "2-1": "String", "2-2": "Admin's name.", "3-0": "adminEmail", "3-1": "String", "3-2": "Admin's email address.", "4-0": "adminPhone", "4-1": "String", "4-2": "Admin's phone number." }, "cols": 3, "rows": 5 } [/block] [block:code] { "codes": [ { "code": "curl --request POST \\\n --url https://be.wimo.ae:3001/api/v1/companies \\\n --header 'authorization: Test Company' \\\n --data '{\"name\":\"Test Company name\",\"address\":\"Test Company address\",\"adminName\":\"Test admin name\",\"adminEmail\":\"admin@gmail.com\",\"adminPhone\":\"+841222222222\"}'", "language": "shell" } ] } [/block] [block:code] { "codes": [ { "code": "{\n \"success\": true,\n \"company\": {\n \"id\": 5914,\n \"name\": \"ewrfew\",\n \"address\": \"qwdeqweqw\",\n \"website\": null,\n \"email\": \"qweqwe@gmail.com\",\n \"timezone\": \"Etc/UTC\",\n \"currency\": \"USD\",\n \"lat\": null,\n \"lng\": null,\n \"phone\": null,\n \"logo\": null,\n \"paying\": false,\n \"createdAt\": \"2017-06-27T09:17:58.000Z\",\n \"updatedAt\": \"2017-06-27T09:17:58.000Z\",\n \"companyTypeId\": null,\n \"countryId\": null\n }\n}", "language": "json" } ] } [/block] [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/send-connection-request\">Send Connection Request</a>" } [/block] Body parameters: [block:parameters] { "data": { "h-0": "Name", "h-1": "Type", "h-2": "Description", "0-0": "email", "0-1": "String", "0-2": "Organization's email address that you want to send the request." }, "cols": 3, "rows": 1 } [/block] [block:code] { "codes": [ { "code": "curl --request POST \\\n --url https://be.wimo.ae:3001/api/v1/connections/requests \\\n --header 'authorization: 95de9ce1f12861dca3335cc87b5cfd90' \\\n --data '{\"email\":\"admin@unima.vn\"}'", "language": "shell" } ] } [/block] [block:code] { "codes": [ { "code": "{\n \"success\": true\n}", "language": "json" } ] } [/block]