annotation_specs change_attribute_type#
Description#
既存属性の種類を変更します。
現在対応している変換は、以下の組み合わせのみです。
choice(ラジオボタン) ↔select(ドロップダウン)
警告
変更対象の属性を参照しているアノテーションがすでに存在する場合は、注意してください。
3次元エディタ画面:属性の種類を変更すると、対象属性の値は消えます。
画像エディタ画面/動画エディタ画面:2026年4月時点では、属性の種類を変更しても、対象属性の値は消えません。保持されます。
Examples#
ドロップダウンをラジオボタンへ変更する場合#
$ annofabcli annotation_specs change_attribute_type \
--project_id prj1 \
--attribute_name_en type \
--attribute_type choice
Usage Details#
アノテーション仕様の既存属性1個に対して、許可されている組み合わせの範囲で属性種類を変更します。
usage: annofabcli annotation_specs change_attribute_type [-h] [--yes]
[--endpoint_url ENDPOINT_URL]
[--annofab_user_id ANNOFAB_USER_ID]
[--annofab_password ANNOFAB_PASSWORD]
[--annofab_pat ANNOFAB_PAT]
[--logdir LOGDIR]
[--disable_log]
[--debug] -p
PROJECT_ID
(--attribute_name_en ATTRIBUTE_NAME_EN | --attribute_id ATTRIBUTE_ID)
--attribute_type
{choice,select}
[--comment COMMENT]
Named Arguments#
- -p, --project_id
対象のプロジェクトのproject_idを指定します。
- --attribute_name_en
種類を変更する対象属性の英語名。
- --attribute_id
種類を変更する対象属性の属性ID。
- --attribute_type
Possible choices: choice, select
変更後の属性種類。現在対応している変換は以下のみです。 *
choice(ラジオボタン)↔select(ドロップダウン)- --comment
アノテーション仕様の変更内容を説明するコメント。未指定の場合、自動でコメントが生成されます。
global optional arguments#
- --yes
処理中に現れる問い合わせに対して、常に
yesと回答します。- --endpoint_url
Annofab WebAPIのエンドポイントを指定します。
Default:
'https://annofab.com'- --annofab_user_id
Annofabにログインする際のユーザーID
- --annofab_password
Annofabにログインする際のパスワード
- --annofab_pat
Annofabにログインする際のパーソナルアクセストークン
- --logdir
ログファイルを保存するディレクトリを指定します。
Default:
.log- --disable_log
ログを無効にします。
- --debug
HTTPリクエストの内容やレスポンスのステータスコードなど、デバッグ用のログが出力されます。