{"_id":"58aad9de8f862f250076fa27","version":{"_id":"58aad9dd8f862f250076f9f4","project":"54aa7f773b56130b0056c86e","__v":2,"createdAt":"2017-02-20T11:58:21.765Z","releaseDate":"2017-02-20T11:58:21.765Z","categories":["58aad9dd8f862f250076f9f5","58aad9dd8f862f250076f9f6","58aad9dd8f862f250076f9f7","58aad9dd8f862f250076f9f8","58aad9dd8f862f250076f9f9","58aad9dd8f862f250076f9fa","58aad9dd8f862f250076f9fb","58ac26b3d460ce2500185d26"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":false,"codename":"Locate","version_clean":"6.0.0","version":"6.0"},"__v":0,"user":"54aa7f3f9bb00c0b00cb899b","project":"54aa7f773b56130b0056c86e","category":{"_id":"58aad9dd8f862f250076f9f6","version":"58aad9dd8f862f250076f9f4","project":"54aa7f773b56130b0056c86e","__v":0,"sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-11-17T23:47:10.058Z","from_sync":false,"order":2,"slug":"pulsate-cms-api","title":"Pulsate CMS API"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-18T09:00:48.213Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"shell","code":"curl -X POST \"https://control.pulsatehq.com/api/v1/apps/$APP_ID/geofences/batch\" \\\n-H \"Authorization: Token token=$MY_ADMIN_API_TOKEN\" \\\n-d '{\n  \"geofences\": [\n\t  {\n\t    \"name\": \"sample_name_1\",\n\t    \"location\": [50.042754135466986, 20.207290649414062],\n\t    \"type\": \"enter\",\n\t    \"shape\": \"polygon\",\n\t    \"radius\": 101,\n\t    \"path\": [\n\t      [50.042754135466986, 20.207290649414062],\n\t      [50.02334733167384, 20.200166702270508],\n\t      [50.02433991532921, 20.235872268676758],\n\t      [50.03988771499381, 20.235872268676758]\n\t    ]\n\t  },\n\t  {\n\t    \"name\": \"sample_name_2\",\n\t    \"location\": [50.042754135466986, 20.207290649414062],\n\t    \"type\": \"enter\",\n\t    \"shape\": \"circle\",\n\t    \"radius\": 101,\n\t    \"path\": null\n\t\t}\n\t]\n}'","name":""}]},"method":"post","results":{"codes":[{"status":200,"language":"json","code":"[\n  {\n    \"guid\": \"QrqsYSC4\",\n    \"name\": \"sample_name_1\",\n    \"path\": null,\n    \"radius\": 101,\n    \"shape\": null,\n    \"type\": \"enter\",\n    \"location\": [\n      50.042754135466986,\n      20.207290649414062\n    ],\n    \"id\": \"587646fc636f6e3a0cbd0400\"\n  },\n  {\n    \"guid\": \"AwitIBjO\",\n    \"name\": \"sample_name_2\",\n    \"path\": null,\n    \"radius\": 101,\n    \"shape\": null,\n    \"type\": \"enter\",\n    \"location\": [\n      50.042754135466986,\n      20.207290649414062\n    ],\n    \"id\": \"587646fc636f6e3a0cbe0400\"\n  }\n]","name":""}]},"settings":"564bbbf80cbcc91700b8171c","auth":"required","params":[{"_id":"564c387b9baa330d00faa623","ref":"","in":"body","required":true,"desc":"Geofences to be inserted","default":"{}","type":"object","name":"geofences"},{"_id":"57ff824e8e087d0e000303f7","ref":"","in":"path","required":true,"desc":"","default":"","type":"string","name":"app_id"}],"url":"/apps/:app_id/geofences/batch"},"isReference":true,"order":17,"body":"","excerpt":"","slug":"geofences-create-many","type":"endpoint","title":"Geofences: Create Batch"}