ボットのハンドルを解放する

POST/me/bots/{did}/release

可能であればボットは以前の Bluesky ハンドルに戻り、ハンドルは名前解決されなくなります。猶予期間中は、ほかの人はそのハンドルを使えません。

パラメーター

名前場所型説明
did (必須)pathstring`GET /me/bots` が返すボットの DID。

レスポンス

ステータス説明本文
200解放したハンドルと、元に戻した結果。ReleaseResult
401トークンがない、期限切れ、または取り消されています(コード `unauthorized`)。もう一度 `bsbot login` を実行してください。Error
403ボットが停止されている(`forbidden`)か、トークンに `handles` スコープがないか 1 つのボットに限定されています(`insufficient_scope`)。Error
404あなたのアカウントにそのボットがないか、ボットのハンドルのサブドメインです(API はメインサイトでのみ提供されます)。Error
409ボットに解放するハンドルがありません(`conflict`、理由は `no_handle`)。Error
429レート制限に達しました:IP ごとの `publicApi`、アカウントごとの `creatorApi`、そして取得・切り替え・確認・解放に対するアカウントごとの `handleChange`(ダッシュボードと共有)。Error
500予期しないエラー。Error

例

bash
curl \
  -X POST \
  -H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
  https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/release

スキーマ

Error

フィールド型説明
error (必須)object
error.code (必須)string: "bad_request", "invalid_handle", "not_found", "rate_limited", "internal_error", "unauthorized", "forbidden", "conflict", "invalid_grant", "upstream_error", "insufficient_scope", "invalid_listing", "consent_required"
error.message (必須)string
error.reasonstring`invalid_handle`、`invalid_listing`、`conflict`、`forbidden` の場合。例:`reserved`、`taken`、`too_long`、`no_handle`、`suspended`。
error.urlstring, uriconsent_required の場合、このダッシュボードページを開いてプロフィールの編集を許可してください。
error.fieldstring`invalid_listing` の場合:拒否されたフィールド。
error.scopestring`insufficient_scope` の場合:トークンに足りないスコープ。
error.parameterstring無効なクエリパラメーター。
error.retryAfterSecondsinteger (1–)`rate_limited` の場合。

ReleaseResult

フィールド型説明
handle (必須)string解放したハンドル。
revert (必須)object`reverted`:ボットは `handle` に戻りました。`manual`: Bluesky でボットのハンドルを自分で変更してください。理由は `reason` に入ります。
revert.status (必須)string: "reverted", "manual"
revert.handlestring
revert.reasonstring: "reauthorize", "pds_refused", "pds_unreachable", "no_previous_handle"
revert.previousHandlestring | null