Update User

Update a user info

PUT /api/users/{userId}

Access Permissions

MASTER

마스터

PathVariables

Name
Type

userId

Long

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

password

String

Age of the user

userName

String

Name of the user

phoneNumber

String

Phone Number of the user

userRole

Enum (SHIPPER, HUB_ADMIN, COMPANY, MASTER)

Role of the user

Response

{
  "id": 1,
  "userId": "baedal123",
  "userName": "김배달",
  "phoneNumber": "010-1234-1234",
  "userRole": "Shipper"
}

Last updated