{"__v":0,"_id":"55ae0dbc2723e51900898f26","category":{"__v":1,"_id":"55afb2a7902fd51700f5f8c7","pages":["55b63dcff8105a2f00c34e39"],"project":"559a61d2dbcfd20d00710b39","version":"559a61d2dbcfd20d00710b3c","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-07-22T15:11:35.945Z","from_sync":false,"order":16,"slug":"places","title":"Places"},"editedParams":true,"editedParams2":true,"parentDoc":null,"project":"559a61d2dbcfd20d00710b39","user":"55a54dde9c32760d00ca78a8","version":{"__v":23,"_id":"559a61d2dbcfd20d00710b3c","project":"559a61d2dbcfd20d00710b39","createdAt":"2015-07-06T11:09:06.510Z","releaseDate":"2015-07-06T11:09:06.510Z","categories":["559a61d3dbcfd20d00710b3d","55a589ddaaf9cf1900114dd0","55a589e30f354f0d00fd0312","55a589ea80c8a30d00b323cc","55a589f6aaf9cf1900114dd1","55a58d4e80c8a30d00b323e6","55a8e7a227a17d21005251a2","55a93098cf45e1390093f351","55afb085f202b12100cd9e83","55afb22e902fd51700f5f8bf","55afb260902fd51700f5f8c2","55afb28ec8a85321007a5462","55afb294f202b12100cd9e95","55afb29b902fd51700f5f8c5","55afb2a1c8a85321007a5463","55afb2a7902fd51700f5f8c7","55afb2ad902fd51700f5f8c8","55afb2b5902fd51700f5f8ca","55b74b2131bccb190081bedc","55bb441b54f9640d006e6cf2","565711085cb2420d00d70071","5681681330018c0d006bf7ff","588f38b5923d610f00c72dad"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"Version 1.0","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-07-21T09:15:40.896Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"{\n  \"name\": \"Entrance\",\n  \"description\": \"Entrance\",\n  \"geoFence\": {\n    \"latitude\": 46.355351652955464,\n    \"longitude\": -32.135888254928672,\n    \"radius\": 504.504,\n    \"type\": 0,\n    \"geoTag\": {\n      \"country\": \"ES\",\n      \"region\": \"Catalunya\",\n      \"county\": \"Barcelona\",\n      \"locality\": \"Barcelona\",\n      \"postCode\": \"12345\",\n      \"streetName\": null,\n      \"countryFID\": \"429f72bc-81ab-d2cc-438a-ace356bde631\",\n      \"regionFID\": \"082a01de-81ab-d2cc-438a-ace356bde631\",\n      \"countyFID\": \"082a09e0-81ab-d2cc-438a-ace356bde631\",\n      \"localityFID\": \"0832922c-81ab-d2cc-438a-ace356bde631\",\n      \"displayName\": \"Barcelona, 12345, ES\"\n    }\n  }\n}","language":"json"}]},"method":"post","results":{"codes":[{"name":"","code":"{\n    \"createdAt\": 1423002857298,\n    \"placeId\": \"vK-Ag8KWGASfi-rBh6VH0A\",\n    \"accountId\": \"AeZQ_Wm9iW2v7QgvdTtmx1\",\n    \"zones\": [],\n    \"config\": {\n      \"name\": \"Entrance\",\n      \"description\": \"Entrance\",\n      \"updatedAt\": 1423003086479,\n      \"geoFence\": {\n        \"latitude\": 46.355351652955464,\n        \"longitude\": -32.135888254928672,\n        \"radius\": 504.504,\n        \"type\": 0,\n        \"geoTag\": {\n          \"country\": \"ES\",\n          \"region\": \"Catalunya\",\n          \"county\": \"Barcelona\",\n          \"locality\": \"Barcelona\",\n          \"postCode\": \"12345\",\n          \"streetName\": null,\n          \"countryFID\": \"429f72bc-81ab-d2cc-438a-ace356bde631\",\n          \"regionFID\": \"082a01de-81ab-d2cc-438a-ace356bde631\",\n          \"countyFID\": \"082a09e0-81ab-d2cc-438a-ace356bde631\",\n          \"localityFID\": \"0832922c-81ab-d2cc-438a-ace356bde631\",\n          \"displayName\": \"Barcelona, 12345, ES\"\n        }\n      }\n    },\n    \"floorPlan\": null,\n    \"space\": null,\n    \"placeUrl\": null\n  }\n]","language":"json","status":201},{"name":"","code":"{\n  \"ok\": false,\n  \"request_id\": \"fcf52425-5ade-4d9a-80de-0bc4d910ea32\",\n  \"error\": \"invalid-account\"\n}","language":"json","status":400},{"code":"","language":"text","status":403},{"code":"{\n  \"ok\": false,\n  \"request_id\": \"fcf52425-5ade-4d9a-80de-0bc4d910ea32\",\n  \"error\": \"unique-name-violation\"\n}","language":"json","status":409}]},"settings":"","auth":"required","params":[{"_id":"55accc9618eefd0d0071d5a5","ref":"","in":"body","required":true,"desc":"Header: The place's Account Id","default":"","type":"string","name":"X-MOCA-Account-Id"}],"url":"/places"},"isReference":true,"order":1,"body":"","excerpt":"Creates a new place.","slug":"places-2","type":"endpoint","title":"/places/"}

post/places/

Creates a new place.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

X-MOCA-Account-Id:
required
string
Header: The place's Account Id

Examples


Result Format


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 }}