メインコンテンツまでスキップ

GetFieldSettings

フィールド設定を取得する

Description

フィールドの設定を取得します

Method

GET

Request URL Format

/api/v0/applications/:app-id/datastores/:datastore-id/fields/:field-id

URL Params

app-id          : アプリケーションID(Hexabase画面から入力したID)
datastore-id : データストアID(Hexabase画面から入力したID)
field-id : フィールドID(Hexabase画面から入力したID)

Request URL Sample

GET https://api.xxx.com/api/v0/applications/624bea3a879f4e8d8b5dcc6f/datastores/639912c0b1ea5632b8bc0545/fields/63991301fa9223af047f436f

Response Sample

{
"workspace_id": "624bea3a879f4e8d8b5dcc6c",
"project_id": "624bea3a879f4e8d8b5dcc6f",
"datastore_id": "639912c0b1ea5632b8bc0545",
"field_id": "63991301fa9223af047f436f",
"name": {
"en": "select",
"ja": "select"
},
"display_id": "Fld-MzZNUHau",
"search": true,
"show_list": true,
"as_title": false,
"status": false,
"full_text": false,
"unique": false,
"hideOnInput": false,
"hide_from_api": false,
"has_index": false,
"roles": [
{
"role_id": "624bea3a879f4e8d8b5dcc70",
"display_id": "ADMIN",
"name": "admin",
"type": "admin",
"project_id": "624bea3a879f4e8d8b5dcc6f",
"can_use": true
},
{
"role_id": "624bea3a879f4e8d8b5dcc72",
"display_id": "ROLE-KZeMbuwz",
"name": "member",
"type": "other",
"project_id": "624bea3a879f4e8d8b5dcc6f",
"can_use": true
}
]
}

選択項目のoptionを取得したい場合

選択肢・ラジオ・チェックボックス項目のoptionを取得したい場合は、 Request URLにwith_options=true を指定します。

Request URL Sample

GET https://api.xxx.com/api/v0/applications/624bea3a879f4e8d8b5dcc6f/datastores/639912c0b1ea5632b8bc0545/fields/63991301fa9223af047f436f?with_options=true

Response Sample

{
"workspace_id": "624bea3a879f4e8d8b5dcc6c",
"project_id": "624bea3a879f4e8d8b5dcc6f",
"datastore_id": "639912c0b1ea5632b8bc0545",
"field_id": "63991301fa9223af047f436f",
"name": {
"en": "select",
"ja": "select"
},
"display_id": "Fld-MzZNUHau",
"dataType": "select",
"search": true,
"show_list": true,
"as_title": false,
"status": false,
"full_text": false,
"unique": false,
"hideOnInput": false,
"hide_from_api": false,
"has_index": false,
"roles": [
{
"role_id": "624bea3a879f4e8d8b5dcc70",
"display_id": "ADMIN",
"name": "admin",
"type": "admin",
"project_id": "624bea3a879f4e8d8b5dcc6f",
"can_use": true
},
{
"role_id": "624bea3a879f4e8d8b5dcc72",
"display_id": "ROLE-KZeMbuwz",
"name": "member",
"type": "other",
"project_id": "624bea3a879f4e8d8b5dcc6f",
"can_use": true
}
],
"options": [
{
"_id": "2c85596d-7bc3-4d7f-b139-a6d6b5b32f94",
"color": "grey",
"created_at": "2022-12-14T00:05:52.58Z",
"d_id": "639912c0b1ea5632b8bc0545",
"display_id": "2c85596d-7bc3-4d7f-b139-a6d6b5b32f94",
"enabled": true,
"o_id": "2c85596d-7bc3-4d7f-b139-a6d6b5b32f94",
"selected": false,
"sort_id": 0,
"updated_at": "2022-12-20T04:02:01.238Z",
"value": {
"en": "option1",
"ja": "option1"
}
},
{
"_id": "e66ec32c-b781-4f93-97b7-92d0e6dff438",
"color": "grey",
"created_at": "2022-12-14T00:05:52.58Z",
"d_id": "639912c0b1ea5632b8bc0545",
"display_id": "e66ec32c-b781-4f93-97b7-92d0e6dff438",
"enabled": true,
"o_id": "e66ec32c-b781-4f93-97b7-92d0e6dff438",
"selected": false,
"sort_id": 1,
"updated_at": "2022-12-20T04:02:01.238Z",
"value": {
"en": "option2",
"ja": "option2"
}
}
]
}