Main API멤버 API
POST /member/update
기업 회원 가입
회원 가입 (기업)
기업 회원 가입을 처리합니다.
| 항목 | 값 |
|---|---|
| 메서드 | POST |
| 경로 | /member/update |
| 인증 | 불필요 |
| Content-Type | multipart/form-data |
요청
POST /member/update HTTP/1.1
Host: api.glowb.com
Content-Type: multipart/form-datacurl -X POST "https://api.glowb.com/member/update" \
-F "business_data=@business.json;type=application/json" \
-F "file=@profile.jpg"const formData = new FormData();
formData.append('business_data', JSON.stringify({
member: {
id: 'business_id',
password: 'password123',
email: 'business@example.com'
},
business: {
business_name: '기업명',
manager_name: '담당자명',
phone: '010-1234-5678'
}
}));
formData.append('file', profileImage);
const response = await fetch('/member/update', {
method: 'POST',
body: formData
});Request Parts
| 파트 | 타입 | 필수 | 설명 |
|---|---|---|---|
business_data | JSON | 예 | 회원 및 기업 정보 |
file | File | 아니오 | 프로필 이미지 |
business_data 스키마
Prop
Type
응답
성공 응답 (200 OK)
Member updated successfully에러 응답
| 상태 코드 | 메시지 |
|---|---|
| 500 | An error occurred while updating the member |