管理項目の一覧を取得する
組織設定の「管理項目」で作った項目を、画面と同じ並び順で返します。エッジPC とデバイスの attributes のキーは、ここで返す項目の ID です。スコープは data か data:write が要ります。
GET
/custom-fieldsAuthorization
AuthorizationBearer token · headerrequired組織設定の「API・MCP」タブで発行した API トークン(tcn_ で始まる)。
Query parameters
targetstringedge_pc(エッジPC)か device(デバイス)に絞る。省略すると両方
Allowed:
edge_pcdeviceResponses
200
管理項目の一覧
customFieldsCustomField[]requiredShow propertiesHide properties
Array of
CustomFieldidstringrequiredtargetstringrequiredどちらの項目か(edge_pc はエッジPC、device はデバイス)
Allowed:
edge_pcdevicenamestringrequired項目名
typestringrequired値の種類。date は YYYY-MM-DD の文字列、number は数値、text と select は文字列
Allowed:
textdatenumberselectoptionsstring[]required選べる値(select だけ)
400
入力の検証エラー、または対象の種類が合わない
errorstringrequired人が読めるエラーメッセージ
401
トークンが無い、または無効
errorstringrequired人が読めるエラーメッセージ
403
スコープが足りない、または操作が許可されていない
errorstringrequired人が読めるエラーメッセージ