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.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
  • Unauthorized

  • 422 application/json

    Unexpected error

    Hide response attribute Show response attribute object
    • errors object Required
      Hide errors attribute Show errors attribute object
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"
    ]
  }
}