GeoView Server REST API enables updating user's properties in data store based on specified user identifier. Accessing this method requires either Write permissions for currently logged-in user, or Administrator permissions for any user.
Request API method URI definition:
HTTP POST http://api.geoview.be/geoservice/v1/users/<id>/update
Request HTTP URI parameters:
Parameter |
Description |
token |
Access token (returned by this API method). |
id |
User identifier (returned by i.e. this API method). |
Request Body structure in JSON format is represented as an array using following structure:
Parameter |
Type |
Description |
id |
String |
Property identifier (returned by this API method). |
value |
Object |
New property value. Property type depends on original property (returned by this API method). |
Example HTTP request URI:
HTTP POST http://api.geoview.be/geoservice/v1/users/6e39547d-aed2-4e60-9e01-5d5c0921953a/update?token=3dc718f2-ab20-4f41-86e1-72abcc1810c1
Example HTTP request URI message body contents for a single value:
[{"id":"firstname","value":"New name"}]
Example HTTP request URI message body contents for multiple values:
[
{"id":"firstname","value":"First"},
{"id":"lastname","value":"Last"}
]
Possible resulting HTTP status codes:
Value |
Description |
200 |
API request succeeded. |
400 |
API request failed due to wrong parameter value(s). |
401 |
Supplied API request access token not valid. |
500 |
API request failed due to server error. |