Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Latest commit

 

History

History
51 lines (35 loc) · 650 Bytes

update-user.md

File metadata and controls

51 lines (35 loc) · 650 Bytes

POST /api/users/

Description

Post all user information to update logged-in user.

Request

Parameters

None

Body

{
  "name": "string",
  "bio": "string",
  "websiteUrl": "string",
  "githubUrl": "string"
}

Headers

  • cookie: token=... (required)

Response

{
  "success": true,
  "message": "Profile updated"
}

Response Codes

Example:

Code Description
200 Success
400 Bad Request.
401 Unauthorized.
404 Not Found.
500 Internal Server Error.

Cookies

None