ボットのディレクトリ掲載情報を更新
PATCH/me/bots/{did}/listing
送ったフィールドだけが変わります。`operator` と `disclosure` の中も、送ったキーだけです。`null` はフィールドを空にし、リストは保存済みのものを置き換えます。ダッシュボードと同じルールで、すべてかゼロか:1 つでも拒否されたフィールドがあれば何も保存されません。保存済みの値と同じパッチは何も書き込みません(`changed: false`)。`listing` スコープが必要です。
リクエストボディ: BotListingPatch
パラメーター
| 名前 | 場所 | 型 | 説明 |
|---|---|---|---|
| did (必須) | path | string | `GET /me/bots` が返すボットの DID。 |
レスポンス
| ステータス | 説明 | 本文 |
|---|---|---|
| 200 | 更新後の掲載情報と、何か変わったかどうか。 | BotListingUpdate |
| 400 | JSON オブジェクトでない、または不明なフィールド(`bad_request`、`parameter` 付き)。あるいは拒否された値(`invalid_listing`、`field`(例:`usage[1].example`)と `reason`(ダッシュボードのルールのコード。例:`too_long`、`link`、`unknown_category`、`cleared_by_admin`)付き)。 | Error |
| 401 | トークンがない、期限切れ、または取り消されています(コード `unauthorized`)。もう一度 `bsbot login` を実行してください。 | Error |
| 403 | トークンに `listing` スコープがありません(`insufficient_scope`。`scope` と `WWW-Authenticate` チャレンジ付き)。このスコープができる前に発行された CLI のトークンです。もう一度 `bsbot login` を実行してください。 | Error |
| 404 | あなたのアカウントにそのボットがないか、ボットのハンドルのサブドメインです(API はメインサイトでのみ提供されます)。 | Error |
| 429 | レート制限:IP ごとに `publicApi`、アカウントごとに `creatorApi`、アカウントごとに `botSettings`(1 時間に 30 回の変更。ダッシュボードと共通)。 | Error |
| 500 | 予期しないエラー。 | Error |
例
curl \
-X PATCH \
-H "Authorization: Bearer $BLUESKY_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{"category":"weather"}' \
https://bluesky.bot/api/v1/me/bots/did:plc:yourbot/listingスキーマ
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.reason | string | `invalid_handle`、`invalid_listing`、`conflict`、`forbidden` の場合。例:`reserved`、`taken`、`too_long`、`no_handle`、`suspended`。 |
| error.url | string, uri | consent_required の場合、このダッシュボードページを開いてプロフィールの編集を許可してください。 |
| error.field | string | `invalid_listing` の場合:拒否されたフィールド。 |
| error.scope | string | `insufficient_scope` の場合:トークンに足りないスコープ。 |
| error.parameter | string | 無効なクエリパラメーター。 |
| error.retryAfterSeconds | integer (1–) | `rate_limited` の場合。 |
BotUsageLine
| フィールド | 型 | 説明 |
|---|---|---|
| kind (必須) | string: "mention", "follow", "dm" | `mention`: `example` を付けてボットにメンションする。`follow`:ボットをフォローする。`dm`:ダイレクトメッセージを送る。 |
| description (必須) | string | ボットがすること。プレーンテキスト 1 行です。 |
| example | string | メンションの行のみ(その場合は必ずあります):投稿で `@handle` の後に続くテキスト。リンクや他のメンションは含みません。 |
BotListing
| フィールド | 型 | 説明 |
|---|---|---|
| listed (必須) | boolean | 公開ディレクトリに表示されるかどうか。 |
| category (必須) | string | null: "news", "art", "utility", "fun", "weather", "dev", "ai", "other", null | |
| description (必須) | string | null | 短い公開説明です。掲載には空でない説明が必要です。掲載中に説明を消去すると拒否されます(required_for_listing)。消去するには、同じ更新で掲載を解除してください。 |
| languages (必須) | string: "en", "ja", "pt", "es", "fr", "de", "it", "nl", "ko", "zh", "ru", "uk", "pl", "tr", "ar", "fa", "he", "hi", "id", "th", "vi", "sv", "ca", "eo"[] | 作成者が申告した言語。メインの言語が先頭です(BCP-47 の主言語コード)。 |
| showRecentPosts (必須) | boolean | ボットのページに最新の投稿を表示します。 |
| operator (必須) | object | 運営者の表示と、それを表示するかどうか。 |
| operator.name (必須) | string | null | |
| operator.shown (必須) | boolean | |
| usage (必須) | BotUsageLine[] | |
| sourceUrl (必須) | string | null | |
| openSource (必須) | boolean | |
| supportUrl (必須) | string | null | |
| disclosure (必須) | object | |
| disclosure.purpose (必須) | string | null | |
| disclosure.contact (必須) | string | null | https リンク、`@handle` 形式の Bluesky ハンドル、またはメールアドレス。この認証済みエンドポイントは編集可能なアドレスを返し、公開用の難読化表示は返しません。 |
| disclosure.contactEmailPublic (必須) | boolean | メール連絡先の公開への明示的な同意。新しいアドレス設定時は true が必要です。撤回するには contact を空にしてください。 |
| disclosure.usesGenerativeAi (必須) | boolean | null | AI カテゴリを選ぶか AI の掲載を公開するときは true または false が必要です。false も有効で、過去の不明な回答は null のままです。カテゴリと情報開示の変更をまとめて検証します。 |
| disclosure.automationLevel (必須) | string | null: "automated", "collaborative", "assisted", null | |
| disclosure.activities (必須) | string: "scheduled_posts", "event_posts", "replies_to_mentions"[] |
BotListingPatch
| フィールド | 型 | 説明 |
|---|---|---|
| listed | boolean | 公開ディレクトリに表示されるかどうか。 |
| category | string | null: "news", "art", "utility", "fun", "weather", "dev", "ai", "other", "", null | |
| description | string | null | 短い公開説明です。掲載には空でない説明が必要です。掲載中に説明を消去すると拒否されます(required_for_listing)。消去するには、同じ更新で掲載を解除してください。 |
| languages | array | null | 作成者が申告した言語。メインの言語が先頭です(BCP-47 の主言語コード)。 |
| showRecentPosts | boolean | ボットのページに最新の投稿を表示します。 |
| operator | object | 運営者の表示と、それを表示するかどうか。 |
| operator.name | string | null | |
| operator.shown | boolean | |
| usage | array | null | |
| sourceUrl | string | null | |
| openSource | boolean | |
| supportUrl | string | null | |
| disclosure | object | |
| disclosure.purpose | string | null | |
| disclosure.contact | string | null | https リンク、`@handle` 形式の Bluesky ハンドル、またはメールアドレス。この認証済みエンドポイントは編集可能なアドレスを返し、公開用の難読化表示は返しません。 |
| disclosure.contactEmailPublic | boolean | メール連絡先の公開への明示的な同意。新しいアドレス設定時は true が必要です。撤回するには contact を空にしてください。 |
| disclosure.usesGenerativeAi | boolean | null | AI カテゴリを選ぶか AI の掲載を公開するときは true または false が必要です。false も有効で、過去の不明な回答は null のままです。カテゴリと情報開示の変更をまとめて検証します。 |
| disclosure.automationLevel | string | null: "automated", "collaborative", "assisted", null | |
| disclosure.activities | array | null |
BotListingUpdate
| フィールド | 型 | 説明 |
|---|---|---|
| listing (必須) | BotListing | |
| changed (必須) | boolean | 送ったすべての値が保存済みの値と同じときは false: 何も書き込まれていません。 |