Main APIAI API
PATCH /ai/portfolio
포트폴리오 수정
포트폴리오 수정
기존 포트폴리오를 수정합니다.
| 항목 | 값 |
|---|---|
| 메서드 | PATCH |
| 경로 | /ai/portfolio |
| 인증 | 필요 |
| Content-Type | application/json |
요청
PATCH /ai/portfolio HTTP/1.1
Host: api.glowb.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
Content-Type: application/json
{
"name": "수정된 크리에이터명",
"intro": "수정된 자기소개",
"snsAccounts": [...],
"references": [...]
}curl -X PATCH "https://api.glowb.com/ai/portfolio" \
-H "Authorization: Bearer {access_token}" \
-H "Content-Type: application/json" \
-d '{
"name": "수정된 크리에이터명",
"intro": "수정된 자기소개"
}'const response = await fetch('/ai/portfolio', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '수정된 크리에이터명',
intro: '수정된 자기소개',
snsAccounts: [...],
references: [...]
})
});
const portfolio = await response.json();Request Body 스키마
Prop
Type
응답
성공 응답 (200 OK)
{
"portfolioId": 123,
"memberId": "user_id",
"updatedAt": "2024-01-15T12:00:00"
}