https://github.com/vmlweb/rest-api-markdown
Template for REST API markdown
https://github.com/vmlweb/rest-api-markdown
Last synced: 10 months ago
JSON representation
Template for REST API markdown
- Host: GitHub
- URL: https://github.com/vmlweb/rest-api-markdown
- Owner: Vmlweb
- License: mit
- Created: 2016-01-16T13:53:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-24T12:16:48.000Z (over 10 years ago)
- Last Synced: 2025-04-04T08:22:14.432Z (about 1 year ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Update User Profile
Update the profile for a specific user account.
`PUT /account/{userId}/profile`
### Headers
- **AuthSessionId** - Identifier for current session
- **AuthSessionSecret** - Secret for current session
### Parameters
- **userId** - Identifier for current user
### Body
- **username** - Username to update to
- **email** - E-mail address to update to
### Response
- **userId** - Identifier for the user
### Errors
- **ErrorCode1** - Caused by missing identifier
- **ErrorCode2** - Username was not given
- **ErrorCode3** - Server exploded
### Example Request
`GET /account/1692/profile`
```javascript
{
username: "NewUsername",
email: "Email@Email.com"
}
```
### Example Response
`200 OK`
```javascript
{
userId: 1692
}
```