src 作为唯一键:如果故障已有相同 src 的图片,则原地更新其 href / alt;否则追加一条。src 必须以 img_ 或 http 开头,trim 后长度不超过 512 字符。alt 最大 128 字符,href 最大 512 字符(超出部分会被自动截断)。curl --location 'https://api.flashcat.cloud/incident/image/put' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"incident_id": "65f0b4d5e12a4a0012345678",
"image": {
"src": "img_abc123",
"href": "https://grafana.example.com/d/cpu",
"alt": "CPU usage"
}
}'{
"err": 0,
"dat": {},
"msg": ""
}