Main APIAI API
PUT /ai/business/password
기업 마이페이지 비밀번호 변경
기업 마이페이지 비밀번호 변경
마이페이지에서 현재 비밀번호를 검증 후 새 비밀번호로 변경합니다.
| 항목 | 값 |
|---|---|
| 메서드 | PUT |
| 경로 | /ai/business/password |
| 인증 | 필요 (JWT Bearer Token) |
| Content-Type | application/json |
요청
PUT /ai/business/password HTTP/1.1
Host: api.glowb.com
Authorization: Bearer {access_token}
Content-Type: application/json
{
"currentPassword": "current_password123",
"newPassword": "new_password456"
}curl -X PUT "https://api.glowb.com/ai/business/password" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{
"currentPassword": "current_password123",
"newPassword": "new_password456"
}'const response = await fetch('/ai/business/password', {
method: 'PUT',
headers: {
'Authorization': 'Bearer ' + accessToken,
'Content-Type': 'application/json'
},
body: JSON.stringify({
currentPassword: 'current_password123',
newPassword: 'new_password456'
})
});
const result = await response.json();Request Body 스키마
Prop
Type
응답
성공 응답 (200 OK)
{
"status": 200,
"code": null,
"message": "비밀번호가 성공적으로 변경되었습니다.",
"data": null
}에러 응답
현재 비밀번호 불일치 (401)
{
"status": 401,
"code": "INVALID_COMPANY_USER_PASSWORD",
"message": "비밀번호가 일치하지 않습니다.",
"data": null
}인증 실패 (401)
{
"status": 401,
"code": "UNAUTHORIZED",
"message": "인증이 필요합니다.",
"data": null
}기업 계정 없음 (404)
{
"status": 404,
"code": "INVALID_BUSINESS_USER",
"message": "존재하지 않는 기업 계정입니다.",
"data": null
}