Update current user

PUT /user

Updated user information for current user

application/json

Body Required

User details to update. At least one field is required.

  • email string
  • username string
  • bio string
  • image string

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • user object Required
      Hide user attributes Show user attributes object
      • email string Required
      • token string Required
      • username string Required
      • bio string Required
      • image string Required
  • 401

    Unauthorized

  • 422 application/json

    Unexpected error

    Hide response attribute Show response attribute object
    • errors object Required
      Hide errors attribute Show errors attribute object
      • body array[string] Required
PUT /user
curl \
 --request PUT '/api/user' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"bio":"I work at State Farm.","email":"jake@jake.jake","image":null,"username":"jake"}'
Request examples
{
  "bio": "I work at State Farm.",
  "email": "jake@jake.jake",
  "image": null,
  "username": "jake"
}
Response examples (200)
{
  "user": {
    "bio": "I work at State Farm.",
    "email": "jake@jake.jake",
    "image": null,
    "token": "jwt.token.here",
    "username": "jake"
  }
}
Response examples (422)
{
  "errors": {
    "body": [
      "string"
    ]
  }
}