# 步骤 1:上传附件
FILE_ID=$(curl -s -X POST https://api.dropcv.work/api/external/v1/files/upload \
-H "Authorization: Bearer $DROPCV_API_KEY" \
-F "file=@resume.pdf" -F "mime_type=application/pdf" | jq -r .file_id)
# 步骤 2:入库
curl -X POST https://api.dropcv.work/api/external/v1/skills/save_candidate/invoke \
-H "Authorization: Bearer $DROPCV_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"params\": {
\"candidate_profile_text\": \"姓名:张三\\n职位:高级后端\\n公司:字节跳动\\n经验:5 年\\n技能:Python, Go\",
\"attachment_file_id\": \"$FILE_ID\"
}
}"