共通事項

  • すべて Authorization: Bearer {token}
  • siteId はUUIDまたは u-xxxx.site のいずれか
  • 認証後に所有権チェックが行われます

Update Title

curl -X POST https://app.hirameki-web.com/api/update-site-title \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"siteId":"2f9e07d7-bf4a-4df8-9d7a-xxxx","title":"新規サイト名"}'

Update Description

curl -X POST https://app.hirameki-web.com/api/update-site-description \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"siteId":"2f9e07d7-bf4a-4df8-9d7a-xxxx","description":"サイトの説明"}'

Update Visibility

isPublic
boolean
required
true で公開、false で非公開
curl -X POST https://app.hirameki-web.com/api/update-site-visibility \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"siteId":"2f9e07d7-bf4a-4df8-9d7a-xxxx","isPublic":false}'
レスポンスはいずれも:
{ "success": true, "message": "Site ... updated successfully" }
isPublic=false にすると外部公開が停止します。承認プロセスと連携する場合はワークフロー側で自動的に true に戻す処理を忘れずに。