Skip to content

nekramste/REST-API-Markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

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

{
	username: "NewUsername",
	email: "Email@Email.com"
}

Example Response

200 OK

{
	userId: 1692
}

About

Template for REST API markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published