ボットのディレクトリ掲載情報を更新

PATCH/me/bots/{did}/listing

送ったフィールドだけが変わります。`operator` と `disclosure` の中も、送ったキーだけです。`null` はフィールドを空にし、リストは保存済みのものを置き換えます。ダッシュボードと同じルールで、すべてかゼロか:1 つでも拒否されたフィールドがあれば何も保存されません。保存済みの値と同じパッチは何も書き込みません(`changed: false`)。`listing` スコープが必要です。

リクエストボディ: BotListingPatch

パラメーター

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

レスポンス

ステータス説明本文
200更新後の掲載情報と、何か変わったかどうか。BotListingUpdate
400JSON オブジェクトでない、または不明なフィールド(`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

例

bash
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.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` の場合。

BotUsageLine

フィールド型説明
kind (必須)string: "mention", "follow", "dm"`mention`: `example` を付けてボットにメンションする。`follow`:ボットをフォローする。`dm`:ダイレクトメッセージを送る。
description (必須)stringボットがすること。プレーンテキスト 1 行です。
examplestringメンションの行のみ(その場合は必ずあります):投稿で `@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 | nullhttps リンク、`@handle` 形式の Bluesky ハンドル、またはメールアドレス。この認証済みエンドポイントは編集可能なアドレスを返し、公開用の難読化表示は返しません。
disclosure.contactEmailPublic (必須)booleanメール連絡先の公開への明示的な同意。新しいアドレス設定時は true が必要です。撤回するには contact を空にしてください。
disclosure.usesGenerativeAi (必須)boolean | nullAI カテゴリを選ぶか AI の掲載を公開するときは true または false が必要です。false も有効で、過去の不明な回答は null のままです。カテゴリと情報開示の変更をまとめて検証します。
disclosure.automationLevel (必須)string | null: "automated", "collaborative", "assisted", null
disclosure.activities (必須)string: "scheduled_posts", "event_posts", "replies_to_mentions"[]

BotListingPatch

フィールド型説明
listedboolean公開ディレクトリに表示されるかどうか。
categorystring | null: "news", "art", "utility", "fun", "weather", "dev", "ai", "other", "", null
descriptionstring | null短い公開説明です。掲載には空でない説明が必要です。掲載中に説明を消去すると拒否されます(required_for_listing)。消去するには、同じ更新で掲載を解除してください。
languagesarray | null作成者が申告した言語。メインの言語が先頭です(BCP-47 の主言語コード)。
showRecentPostsbooleanボットのページに最新の投稿を表示します。
operatorobject運営者の表示と、それを表示するかどうか。
operator.namestring | null
operator.shownboolean
usagearray | null
sourceUrlstring | null
openSourceboolean
supportUrlstring | null
disclosureobject
disclosure.purposestring | null
disclosure.contactstring | nullhttps リンク、`@handle` 形式の Bluesky ハンドル、またはメールアドレス。この認証済みエンドポイントは編集可能なアドレスを返し、公開用の難読化表示は返しません。
disclosure.contactEmailPublicbooleanメール連絡先の公開への明示的な同意。新しいアドレス設定時は true が必要です。撤回するには contact を空にしてください。
disclosure.usesGenerativeAiboolean | nullAI カテゴリを選ぶか AI の掲載を公開するときは true または false が必要です。false も有効で、過去の不明な回答は null のままです。カテゴリと情報開示の変更をまとめて検証します。
disclosure.automationLevelstring | null: "automated", "collaborative", "assisted", null
disclosure.activitiesarray | null

BotListingUpdate

フィールド型説明
listing (必須)BotListing
changed (必須)boolean送ったすべての値が保存済みの値と同じときは false: 何も書き込まれていません。