本文へ移動
Bounty Developer

PUT/api/speaker-preview/{token}/profile

「登壇者の限定リンク」の分類の、送った内容で対象を保存する(更新する)API。ログインなしで呼べる。

要約

本人が文字と未採用の写真を一括で提案へ保存し、確定を頼む(photoReceiptは同じリンク・提案の10分以内の写真だけ)

呼び方と印

認証なし・レート制限

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

URL に付ける値(パラメータ)

経路の中の波かっこの部分と、URL の ? の後ろに付ける値。「必須」の印があるものは省けない。

  • tokenpath必須string
    /^[A-Za-z0-9_-]{43}$/

送るもの(本文)application/json

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

  • profile必須object
  • name任意string
  • kana任意string | null
  • title任意string | null
  • company任意string | null
  • bio任意string | null
  • nameEn任意string | null
  • titleEn任意string | null
  • companyEn任意string | null
  • photoReceipt任意string
    長さ 1–2048

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

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

  • state"draft" | "proposed" | "edited" | "confirmed"
  • canEditboolean
  • expiresAtstring(date-time)
  • profileobject
    • namestring
    • kanastring | null
    • titlestring | null
    • companystring | null
    • biostring | null
    • nameEnstring | null
    • titleEnstring | null
    • companyEnstring | null
  • proposedobject | null
    • namestring
    • kanastring | null
    • titlestring | null
    • companystring | null
    • biostring | null
    • nameEnstring | null
    • titleEnstring | null
    • companyEnstring | null
  • changedKeysarray<enum(9)>
  • editableKeysarray<enum(9)>
  • photoPathstring | null
  • limitsobject
    • nameinteger
    • kanainteger
    • titleinteger
    • companyinteger
    • biointeger
    • nameEninteger
    • titleEninteger
    • companyEninteger
  • eventobject | null
    • titlestring
    • timezonestring
  • contentsarray<object>
    • titlestring
    • contentLabelstring | null
    • startsAtstring(date-time) | null
    • endsAtstring(date-time) | null
    • stageNamestring | null
  • accountobject
    • linkedboolean
    • signedInboolean
    • mineboolean
    • currentobject | null
      • displayNamestring
      • slugstring | null

失敗したとき(エラー)

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

  • 400入力の誤り(error = invalid_input など)
  • 404HTTP 404(x-bounty-error-codes を参照)
  • 409HTTP 409(x-bounty-error-codes を参照)
  • 428HTTP 428(x-bounty-error-codes を参照)
  • 429レート制限(Retry-After 付き)
  • 501HTTP 501(x-bounty-error-codes を参照)
  • 503HTTP 503(x-bounty-error-codes を参照)
  • preview_link_invalid
  • rate_limited
  • rate_limit_unavailable
  • invalid_input
  • preview_link_read_only
  • proposal_required
  • title_too_long
  • photo_upload_invalid

呼び出しの見本

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

curl -X PUT "https://bounty.spikes.4s.link/api/speaker-preview/{token}/profile" \
  -H "Content-Type: application/json" \
  -d '{
    "profile": {}
  }'
PUT /api/speaker-preview/{token}/profile | Bounty Developer