회원 정보 수정 **API ( **/users/{userId} )

메서드 요청 URL
PATCH http://{SERVER_URL}/api/service/users/{userId}

Request Header

파라미터 타입 필수여부 설명
Authorization String 필수 (JWT 토큰, roleCUSTOMER 이상 필요)
Content-Type String 필수 application/json

Role Requirement

Request Elements

파라미터 타입 필수여부 설명 제약사항
nickname String 변경할 닉네임 100자 이하
email String 변경할 이메일 255자 이하
password String 변경할 비밀번호 255자 이하

요청 예시

PATCH /api/service/users/{userId}
Authorization: Bearer {jwt-token}
Content-Type: application/json

{
    "nickname": "userUpdate",
    "email": "[email protected]",
    "password": "newsecurepassword"
}

Response Elements

필드 타입 필수여부 설명
message String 필수 응답 메세지
code Integer 필수 응답 코드
data Object 필수 응답 컨텐츠

응답 예시

{
    "message": "Success",
    "code": 200,
    "data": null
}
{
    "message": "본인만 회원 정보를 수정할 수 있습니다.",
    "code": 400,
    "data": null
}