Updates user with the specified ID.

PUT /api/v1/users/{userId}

Path parameters

  • userId string(uuid) Required
application/json

Body

  • username string | null
  • display_name string | null
  • email string | null
  • avatar_url string | null
  • old_password string | null
  • new_password string | null

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id string(uuid)
    • username string
    • display_name string
    • email string
    • avatar_url string | null
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • error_description string
    • validation_errors object
      Hide validation_errors attribute Show validation_errors attribute object
      • * array[string] Additional properties
  • 403 application/json

    Forbidden

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

    Not Found

    Hide response attribute Show response attribute object
    • error_description string
  • 500 application/json

    Internal Server Error

    Hide response attribute Show response attribute object
    • error_description string
PUT /api/v1/users/{userId}
curl \
 --request PUT 'https://crowdparlay.com/api/v1/users/{userId}' \
 --header "Content-Type: application/json" \
 --data '{"username":"string","display_name":"string","email":"string","avatar_url":"string","old_password":"string","new_password":"string"}'
Request examples
{
  "username": "string",
  "display_name": "string",
  "email": "string",
  "avatar_url": "string",
  "old_password": "string",
  "new_password": "string"
}
Response examples (200)
{
  "id": "string",
  "username": "string",
  "display_name": "string",
  "email": "string",
  "avatar_url": "string"
}
Response examples (400)
{
  "error_description": "string",
  "validation_errors": {
    "additionalProperty1": [
      "string"
    ],
    "additionalProperty2": [
      "string"
    ]
  }
}
Response examples (403)
{
  "error_description": "string"
}
Response examples (404)
{
  "error_description": "string"
}
Response examples (500)
{
  "error_description": "string"
}