本文へ移動
Bounty Developer

POST/api/orgs/enrichment/preview

「学生団体・ベンチャー」の分類の、新しく作る、または操作を実行するために内容を送る API。ログインした本人として呼ぶ。

要約

既存団体10件までの紹介差分を確認(運営 moderator のみ・書込みなし)

呼び方と印

ログイン・レート制限

短い時間に呼びすぎると断られる API(レート制限)。断られたら Retry-After の秒数を待って呼び直す。

送るもの(本文)application/json

送る本文の欄。「必須」の印がある欄は省けない。

  • items必須array<object>
    件数 1–10
  • kind必須"guild" | "venture"
  • id必須string(uuid)
  • description必須string
    長さ 1–400
  • sourceUrl必須string
    長さ ≤2048
  • observedAt必須string(date-time)
  • sourceHash必須string
    /^[0-9a-f]{64}$/
  • currentRevision必須string
    /^[0-9a-f]{64}$/

返るもの(応答)200 · application/json

成功したときに返る形。入れ子の欄は、その行を押すと開く・閉じる。「任意」の印がある欄は返らないことがある。

  • itemsarray<object>件数 ≤10
    • kind"guild" | "venture"
    • idstring(uuid)
    • namestring
    • descriptionstring | null
    • currentRevisionstring/^[0-9a-f]{64}$/
    • reviewEnabledboolean
    • decisionenum(7)"eligible" "kept_existing" "kept_human_edit" "kept_synced" "kept_unregistered" "kept_pending" "unchanged"
    • diffobject
      • field"description"
      • beforestring | null
      • afterstring
  • writes0

失敗したとき(エラー)

失敗したときの状態コードと、その意味。本文の error の値で、プログラムが失敗の種類を見分けられる。

  • 400HTTP 400(x-bounty-error-codes を参照)
  • 401HTTP 401(x-bounty-error-codes を参照)
  • 403HTTP 403(x-bounty-error-codes を参照)
  • 404HTTP 404(x-bounty-error-codes を参照)
  • 409HTTP 409(x-bounty-error-codes を参照)
  • 428HTTP 428(x-bounty-error-codes を参照)
  • 429HTTP 429(x-bounty-error-codes を参照)

呼び出しの見本

そのまま試せる呼び出しの例。curl と fetch をタブで切り替える。ID やトークンは自分の値に置き換える。

curl -X POST "https://bounty.spikes.4s.link/api/orgs/enrichment/preview" \
  -H "Authorization: Bearer $BEARER_AUTH" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      {
        "kind": "guild",
        "id": "00000000-0000-4000-8000-000000000000",
        "description": "string",
        "sourceUrl": "string",
        "observedAt": "2026-11-01T10:00:00+09:00",
        "sourceHash": "string",
        "currentRevision": "string"
      }
    ]
  }'
POST /api/orgs/enrichment/preview | Bounty Developer