Path parameters

  • userId string(uuid) Required
application/json

Body Required

  • role string Required

Responses

  • 200 application/json

    User role updated

    Hide response attributes Show response attributes object
    • userId string(uuid)
    • firstName string
    • lastName string
    • email string(email)
    • role string
    • phone string
PUT /users/{userId}
curl \
 --request PUT 'https://api.pairfon.com/users/{userId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"role":"string"}'
Request examples
{
  "role": "string"
}
Response examples (200)
{
  "userId": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "hello@example.com",
  "role": "string",
  "phone": "string"
}