Main API인플루언서 API
PATCH /influence/profile/update
인플루언서 프로필 수정
프로필 수정
인플루언서 프로필을 수정합니다.
| 항목 | 값 |
|---|---|
| 메서드 | PATCH |
| 경로 | /influence/profile/update |
| 인증 | 필요 |
| Content-Type | multipart/form-data |
요청
PATCH /influence/profile/update HTTP/1.1
Host: api.glowb.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
Content-Type: multipart/form-datacurl -X PATCH "https://api.glowb.com/influence/profile/update" \
-H "Authorization: Bearer {access_token}" \
-F "data=@profile.json;type=application/json" \
-F "file=@profile.jpg"const formData = new FormData();
formData.append('data', JSON.stringify({
name: '크리에이터명',
intro: '자기소개',
category: 0,
age: 1,
gender: 0
}));
formData.append('file', profileImage);
const response = await fetch('/influence/profile/update', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${accessToken}`
},
body: formData
});Request Parts
| 파트 | 타입 | 필수 | 설명 |
|---|---|---|---|
data | JSON | 예 | 프로필 정보 |
file | File | 아니오 | 프로필 이미지 |
카테고리 코드
| 코드 | 카테고리 |
|---|---|
| 0 | 뷰티 |
| 1 | 패션 |
| 2 | 일상 |
| 3 | 여행 |
| 4 | 육아 |
| 5 | 푸드 |
| 6 | 그 외 |
연령대 코드
| 코드 | 연령대 |
|---|---|
| 0 | 10대 |
| 1 | 20대 |
| 2 | 30대 |
| 3 | 40대 |
| 4 | 50대 |
성별 코드
| 코드 | 성별 |
|---|---|
| 0 | 여성 |
| 1 | 남성 |
응답
성공 응답 (200 OK)
프로필 수정 완료