POST/api/orgs/enrichment/propose
「学生団体・ベンチャー」の分類の、新しく作る、または操作を実行するために内容を送る API。ログインした本人として呼ぶ。
- 要約
団体紹介を非公開 pending revision に提案(運営 moderator のみ・審査有効時だけ)
- 呼び方と印
ログイン・レート制限
短い時間に呼びすぎると断られる API(レート制限)。断られたら Retry-After の秒数を待って呼び直す。
送るもの(本文)application/json
送る本文の欄。「必須」の印がある欄は省けない。
items必須array<object>件数 1–10kind必須"guild" | "venture"id必須string(uuid)description必須string長さ 1–400sourceUrl必須string長さ ≤2048observedAt必須string(date-time)sourceHash必須string/^[0-9a-f]{64}$/currentRevision必須string/^[0-9a-f]{64}$/idempotencyKey必須string/^[A-Za-z0-9][A-Za-z0-9_.:-]{15,99}$/
返るもの(応答)200 · application/json
成功したときに返る形。入れ子の欄は、その行を押すと開く・閉じる。「任意」の印がある欄は返らないことがある。
itemsarray<object>件数 ≤10kind"guild" | "venture"idstring(uuid)namestringdescriptionstring | nullcurrentRevisionstring/^[0-9a-f]{64}$/reviewEnabledbooleandecisionenum(7)"eligible" "kept_existing" "kept_human_edit" "kept_synced" "kept_unregistered" "kept_pending" "unchanged"diffobjectfield"description"beforestring | nullafterstring
revisionIdstring(uuid) | nullhashstring | null/^[0-9a-f]{64}$/
createdinteger0–10replayedbooleanpublication"pending_review"
失敗したとき(エラー)
失敗したときの状態コードと、その意味。本文の 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 を参照)
- org_enrichment_review_disabled
- org_enrichment_revision_conflict
- org_enrichment_idempotency_conflict
呼び出しの見本
そのまま試せる呼び出しの例。curl と fetch をタブで切り替える。ID やトークンは自分の値に置き換える。
curl -X POST "https://bounty.spikes.4s.link/api/orgs/enrichment/propose" \
-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"
}
],
"idempotencyKey": "string"
}'