PATCH/api/orgs/ventures/{id}
「学生団体・ベンチャー」の分類の、対象のうち、送った項目だけを直す API。ログインした本人として呼ぶ。
- 要約
学生発ベンチャーの紹介を直す(財務情報は団体の管理者だけ)
- 呼び方と印
ログイン
URL に付ける値(パラメータ)
経路の中の波かっこの部分と、URL の ? の後ろに付ける値。「必須」の印があるものは省けない。
idpath必須string(uuid)
送るもの(本文)application/json
送る本文の欄。「必須」の印がある欄は省けない。
basicProfile任意objectnameKana任意string | null長さ ≤240organizationType任意string | null長さ ≤80baseUniversities任意array<string>件数 ≤20foundedYearMonth任意string | null/^(19[5-9]\d|20\d\d|2100)-(0[1-9]|1[0-2])$/studentMemberCount任意integer | null0–100000activitySummary任意string | null長さ ≤2000catchphrase任意string | null長さ ≤40financials任意objectrevenue必須integer | null≥0profit必須integer | nulldisplayName任意string | null長さ ≤80url任意string長さ ≤2048description任意string長さ 1–400foundedYear任意integer | null1950–2100industries任意array<enum(12)>件数 ≤5links任意array<object>件数 ≤18kind必須enum(8)- "website"
- "x"
- "instagram"
- "youtube"
- "tiktok"
- "facebook"
- "note"
- "discord"
url必須string長さ ≤2048title任意string長さ ≥1employeeCount任意integer1–100000logoImageId任意string(uuid) | nullcoverImageId任意string(uuid) | nullworks任意array<object>件数 ≤24id必須string/^w_[a-z0-9]{4,24}$/title必須string長さ 1–60url任意string | null長さ ≤2048imageId任意string(uuid) | nulltext任意string | null長さ ≤200year任意integer | null1950–2100
返るもの(応答)200 · application/json
成功したときに返る形。入れ子の欄は、その行を押すと開く・閉じる。「任意」の印がある欄は返らないことがある。
oktrue
失敗したとき(エラー)
失敗したときの状態コードと、その意味。本文の error の値で、プログラムが失敗の種類を見分けられる。
- 400入力の誤り(error = invalid_input など)
- 401未ログイン(unauthorized)/ Bearer が無効(invalid_token。WWW-Authenticate 付き)
- 403権限が無い
- 404HTTP 404(x-bounty-error-codes を参照)
- 413HTTP 413(x-bounty-error-codes を参照)
- venture_not_found
- org_forbidden
- org_image_not_found
- org_image_forbidden
呼び出しの見本
そのまま試せる呼び出しの例。curl と fetch をタブで切り替える。ID やトークンは自分の値に置き換える。
curl -X PATCH "https://bounty.spikes.4s.link/api/orgs/ventures/{id}" \
-H "Authorization: Bearer $BEARER_AUTH" \
-H "Content-Type: application/json" \
-d '{}'