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