PUT /2024-09/users/current

Updates the currently authorized user's information such as name, email, and password.

application/json

Body Required

  • name string

    The name of the user.

    Maximum length is 255.

  • email string(email)

    The email address of the user.

    Maximum length is 255.

Responses

  • 204

    Empty response with no content

  • 401 application/json

    The request requires user authentication or the user is not authorized to access this resource.

    Hide response attribute Show response attribute object
    • message string
  • 404 application/json

    The specified resource was not found

    Hide response attribute Show response attribute object
    • message string
PUT /2024-09/users/current
curl \
 --request PUT 'https://app.merchanthq.com/api/2024-09/users/current' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"John Doe","email":"john.doe@example.com"}'
Request examples
{
  "name": "John Doe",
  "email": "john.doe@example.com"
}
Response examples (401)
{
  "message": "Unauthorized"
}
Response examples (404)
{
  "message": "Not found"
}