Skip to main content

CreateFieldOptions

Create field selection options

Description

Creates an option item for choice, radio, and checkbox fields.

Method

POST

Request URL Format

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

URL Params

app-id          : Application ID (ID entered from the Hexabase screen)
datastore-id : Data store ID (ID entered from the Hexabase screen)
field-id : Field ID (ID entered from Hexabase screen)

Request URL Sample

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

Payload

{
"options": [
{
"name": "option1", // (Required) The same value is set for the Japanese and English names.
"display_id": "option1", // Option (if omitted, a number will be assigned automatically)
},
{
"value": { // If you want to register Japanese and English names with their respective values, specify a value object instead of name
"en": "option2-en", // (Required) Option English name
"ja": "option2-ja" // (Required) Option Japanese name
},
"display_id": "option2",
"enabled": false // Optional enable/disable setting (if not specified, it will be registered as true)
},
]
}

Response Sample

null