POST
/
api
/
chat
Update Site
curl --request POST \
  --url https://api.example.com/api/chat \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "siteId": "<string>"
}
'

リクエスト

Authorization
string
required
Firebase IDトークン (Bearer xxx)
message
string
required
修正指示(自然言語)
siteId
string
required
更新対象のサイトID

Example Request

curl -X POST https://app.hirameki-web.com/api/chat \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "ヘッダーの色を青に変更してください",
    "siteId": "your-site-id"
  }'

レスポンス

{
  "success": true,
  "reply": "ヘッダーの色を青に変更しました。"
}