/api/users/:id
Modifies the user specified by ID.
Resource Information
Resource URL | |
---|---|
HTTP Method | POST |
Request Parameters
Parameter | Detail | Example | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | ID of the user to update. | 123 | ||||||||||||||||||||||||||||||||
data | Form contents to submit in following JSON format:
| { "username": "myusername", "email": "myusername@example.com", "firstName": "John", "middleName": "Middle", "lastName": "Doe", "info": "I'm pretty cool", "timeZone": "Europe/Prague", "locale": "cs", "roles": [ { "role": "DATA_ADMIN" }, { "role": "SCHEMA_ADMIN" } ], "groups": [ { "id": "56", "name": "My User Group nr.1" } ] } |
Sample Request / Response
Using
curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "data={\"username\":\"myusername\",\"email\":\"myusername@example.com\",\"firstName\":\"John\",\"lastName\":\"Doe\"}" https://service.belladati.com/api/users/123
When the form has been submitted successfully, the server replies with an HTTP status code of 200 and an empty body.
Overview
Content Tools