cURL
curl --request PUT \ --url https://sajuapi.dev/v1/profiles/{id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "birth_year": 123, "birth_month": 123, "birth_day": 123, "birth_hour": 123, "gender": "<string>" } '
prf_
null
male
female
validation_error
authentication_error
not_found
rate_limited
curl -X PUT https://api.sajuapi.dev/v1/profiles/prf_abc123def456 \ -H "X-API-Key: bs_live_xxx" \ -H "Content-Type: application/json" \ -d '{ "name": "김영희", "birth_hour": 10 }'
{ "id": "prf_abc123def456", "external_id": "user_12345", "name": "김**", "birth_year": "19**", "gender": "male", "day_master": "병화", "day_master_element": "fire", "weakest_element": "water", "created_at": "2025-01-15T09:00:00Z", "updated_at": "2025-01-16T14:30:00Z" }
// 이름만 변경 await fetch('/v1/profiles/prf_abc123def456', { method: 'PUT', headers: { 'X-API-Key': 'bs_live_xxx', 'Content-Type': 'application/json' }, body: JSON.stringify({ name: '새이름' }) }); // 시주 정보 삭제 await fetch('/v1/profiles/prf_abc123def456', { method: 'PUT', headers: { 'X-API-Key': 'bs_live_xxx', 'Content-Type': 'application/json' }, body: JSON.stringify({ birth_hour: null }) });