{"_id":"5866b0e51bd8d723003c7d92","parentDoc":null,"category":{"_id":"5526e2064a7ac121004c6073","project":"5435693035740020002a1c1c","pages":["5526e2674a7ac121004c6075","5526e439e69c7d0d00047e57"],"__v":2,"version":"5435693035740020002a1c1f","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-04-09T20:33:10.475Z","from_sync":false,"order":6,"slug":"locations","title":"Locations"},"user":"543568c135740020002a1c10","version":{"_id":"5435693035740020002a1c1f","__v":15,"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","5bfc066d8342500013783e0c"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":0,"project":"5435693035740020002a1c1c","githubsync":"","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-12-30T19:09:25.106Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"settings":"","examples":{"codes":[{"code":"var robin = new RobinSDK('[[app:Token]]');\n\nrobin.api.locations.get(locationId).then(function (response) {\n  var location = response.getData();\n});","language":"javascript"}]},"method":"patch","results":{"codes":[{"name":"","code":"{\n  \"meta\": {\n    \"status_code\": 200,\n    \"status\": \"OK\",\n    \"message\": \"\",\n    \"more_info\": {}\n  }\n}","language":"json","status":200}]},"auth":"required","params":[{"_id":"5526eb05d7ea1c2300e58a5b","ref":"","in":"path","required":true,"desc":"The ID of the location","default":"","type":"int","name":"id"},{"_id":"5866b0e51bd8d723003c7d96","ref":"","in":"body","required":false,"desc":"The location name","default":"","type":"string","name":"name"},{"_id":"5866b0e51bd8d723003c7d95","ref":"","in":"body","required":false,"desc":"The location's description","default":"","type":"string","name":"description"},{"_id":"5866b0e51bd8d723003c7d94","ref":"","in":"body","required":false,"desc":"The address of the location. When changed, the longitude and latitude will automatically be recalculated if the address is valid.","default":"","type":"string","name":"address"},{"_id":"5866b0e51bd8d723003c7d93","ref":"","in":"body","required":false,"desc":"A URL containing a photo of the location.","default":"","type":"string","name":"image"}],"url":"/locations/:id"},"isReference":true,"order":1,"body":"","excerpt":"Updates a [Location](doc:location) resource.","slug":"update-location","type":"endpoint","title":"/locations/:id"}

patch/locations/:id

Updates a [Location](doc:location) resource.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

id:
required
integer
The ID of the location

Body Params

name:
string
The location name
description:
string
The location's description
address:
string
The address of the location. When changed, the longitude and latitude will automatically be recalculated if the address is valid.
image:
string
A URL containing a photo of the location.

Examples


Result Format


User Information

Try It Out

patch
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}