PATCH/api/events/{slug}/settings
「イベント」の分類の、対象のうち、送った項目だけを直す API。ログインした本人として呼ぶ。
- 要約
選択イベントの開催規模と機能を変更(cookie・現在の管理権限・設定版を照合)。ticket_modules を売れる段なしで ON にすると 409 ticket_modules_not_ready(features.acknowledge で確認つき ON。/features と同じ確かめ)
- 呼び方と印
ログイン
URL に付ける値(パラメータ)
経路の中の波かっこの部分と、URL の ? の後ろに付ける値。「必須」の印があるものは省けない。
slugpath必須stringexpectedEventIdquery必須string(uuid)expectedActorIdquery必須string(uuid)
送るもの(本文)application/json
送る本文の欄。「必須」の印がある欄は省けない。
mode任意"small" | "large"features任意objectwanted任意booleanboshu任意booleantimetable任意booleancheckin任意booleansurvey任意booleanqa任意booleanmeet_qr任意booleanranking任意booleanvenue_map任意booleanstamps任意booleangroups任意booleanself_join任意booleantrio任意booleancontents任意booleanexhibitions任意booleanwall_consult任意booleanmeet_limits任意booleanmeet_tables任意booleanmeet_followup任意booleanmeet_reciprocal任意booleanticket_modules任意booleanwanted_rotation任意booleanacknowledge任意array<"ticket_modules_not_ready">件数 ≤1venueLabel任意string | null長さ ≤120expectedRevision必須string/^[a-f0-9]{64}$/
返るもの(応答)200 · application/json
成功したときに返る形。入れ子の欄は、その行を押すと開く・閉じる。「任意」の印がある欄は返らないことがある。
eventIdstring(uuid)actorIdstring(uuid)mode"small" | "large"venueLabelstring | nullsettingsRevisionstring/^[a-f0-9]{64}$/featuresobjectwantedbooleanboshubooleantimetablebooleancheckinbooleansurveybooleanqabooleanmeet_qrbooleanrankingbooleanvenue_mapbooleanstampsbooleangroupsbooleanself_joinbooleantriobooleancontentsbooleanexhibitionsbooleanwall_consultbooleanmeet_limitsbooleanmeet_tablesbooleanmeet_followupbooleanmeet_reciprocalbooleanticket_modulesbooleanwanted_rotationboolean
featureCatalogarray<object>keyenum(22)"wanted" "boshu" "timetable" "checkin" "survey" "qa" "meet_qr" "ranking" "venue_map" "stamps" "groups" "self_join" …+10labelstringdescriptionstringenabledbooleanisDefaultboolean
失敗したとき(エラー)
失敗したときの状態コードと、その意味。本文の error の値で、プログラムが失敗の種類を見分けられる。
- 400HTTP 400(x-bounty-error-codes を参照)
- 401未ログイン(unauthorized)/ Bearer が無効(invalid_token。WWW-Authenticate 付き)
- 403HTTP 403(x-bounty-error-codes を参照)
- 404HTTP 404(x-bounty-error-codes を参照)
- 409HTTP 409(x-bounty-error-codes を参照)
- 413HTTP 413(x-bounty-error-codes を参照)
- 415HTTP 415(x-bounty-error-codes を参照)
- 428HTTP 428(x-bounty-error-codes を参照)
- cookie_login_required
- invalid_origin
- invalid_event_context
- event_not_found
- event_context_changed
- actor_changed
- forbidden
- manager_reverify_required
- ticket_modules_not_ready
呼び出しの見本
そのまま試せる呼び出しの例。curl と fetch をタブで切り替える。ID やトークンは自分の値に置き換える。
curl -X PATCH "https://bounty.spikes.4s.link/api/events/{slug}/settings?expectedEventId=00000000-0000-4000-8000-000000000000&expectedActorId=00000000-0000-4000-8000-000000000000" \
-H "Authorization: Bearer $BEARER_AUTH" \
-H "Content-Type: application/json" \
-d '{
"expectedRevision": "string"
}'