{"_id":"5866b1d651275e2500ae910c","parentDoc":null,"version":{"_id":"5435693035740020002a1c1f","__v":14,"project":"5435693035740020002a1c1c","createdAt":"2014-10-08T16:41:20.702Z","releaseDate":"2014-10-08T16:41:20.702Z","categories":["5435693035740020002a1c20","551c03c1ff892b3700d1c57a","551ca3927405910d00900a59","551cac6448564a2f0024d89e","551cb4d848564a2f0024d8a3","551cb52db7a32b3b00d1ef78","5526e2064a7ac121004c6073","5526e5147d4a4417009516b3","5526e9877d4a4417009516bb","5528362cd9e1db2d00cd924d","5580240ebe698419008f2ba2","5580a7dabe698419008f2db6","568161799de23c0d00c54750","5866c905a2cbb31900f6f1aa"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"user":"543568c135740020002a1c10","category":{"_id":"5526e5147d4a4417009516b3","__v":4,"pages":["5526e653e69c7d0d00047e5e","5526e78a4a7ac121004c6086","5526e88ee69c7d0d00047e64","5526e92a4a7ac121004c608f"],"project":"5435693035740020002a1c1c","version":"5435693035740020002a1c1f","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-04-09T20:46:12.252Z","from_sync":false,"order":4,"slug":"organizations","title":"Organizations"},"__v":0,"githubsync":"","project":"5435693035740020002a1c1c","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-30T19:13:26.093Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"language":"http","code":"POST /v1.0/organizations/34/locations HTTP/1.1\nHost: api.robinpowered.com\nContent-Type: application/json\nAuthorization: Access-Token :accessToken\n\n{\n\t\"name\": \"Boston HQ\",\n\t\"description\": \"The Boston office.\",\n\t\"address\": \"87 Summer Street, Floor 2, Boston MA 02110\",\n\t\"image\": \"https://robinpowered.com/logo.png\"\n}"}]},"method":"post","results":{"codes":[{"name":"","status":200,"language":"json","code":"{\n    \"meta\": {\n        \"status_code\": 200,\n        \"status\": \"OK\",\n        \"message\": \"\",\n        \"more_info\": {}\n    },\n    \"data\": {\n      \"id\": 1,\n      \"account_id\": 1,\n      \"campus_id\": 1,\n      \"name\": \"Robin Boston\",\n      \"description\": \"The Boston office\",\n      \"address\": \"87 Summer Street, Floor 2, Boston MA 02110\",\n      \"image\": \"https://robinpowered.com/logo.png\",\n      \"latitude\": 42.35381700,\n      \"longitude\": -71.05863900,\n      \"updated_at\": \"2014-10-22T22:37:23+0000\",\n      \"created_at\": \"2014-10-22T22:37:23+0000\"\n    }\n}"}]},"settings":"","auth":"required","params":[{"_id":"5526eb434a7ac121004c6098","ref":"","in":"path","required":true,"desc":"The ID or slug of the organization","default":"","type":"mixed","name":"id"},{"_id":"5866b1d651275e2500ae9110","ref":"","in":"body","required":true,"desc":"The locations name.","default":"","type":"string","name":"name"},{"_id":"5866b1d651275e2500ae910f","ref":"","in":"body","required":false,"desc":"The locations description.","default":"","type":"string","name":"description"},{"_id":"5866b1d651275e2500ae910e","ref":"","in":"body","required":false,"desc":"The street address of the location.","default":"","type":"string","name":"address"},{"_id":"5866b1d651275e2500ae910d","ref":"","in":"body","required":false,"desc":"A URL containing an image of the location.","default":"","type":"string","name":"image"}],"url":"/organizations/:id/locations"},"isReference":true,"order":2,"body":"","excerpt":"Creates a new location for the organization.","slug":"create-location","type":"endpoint","title":"/organizations/:id/locations"}

post/organizations/:id/locations

Creates a new location for the organization.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
mixed
The ID or slug of the organization

Body Params

name:
required
string
The locations name.
description:
string
The locations description.
address:
string
The street address of the location.
image:
string
A URL containing an image of the location.

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