獲取表單的設計資訊
檢索窗體的設計資訊。
URL
用於檢索生產環境設置的 URL 與用於檢索測試環境設置的 URL 不同。
如果要獲取生產環境的設置
- 常規應用
- https://sample.cybozu.com/k/v1/form.json
- 建立訪客空間
- https://sample.cybozu.com/k/guest/
GUEST_SPACE_ID
/v1/form.json
獲取操作測試環境的設置
- 常規應用
- https://sample.cybozu.com/k/v1/preview/form.json
- 建立訪客空間
- https://sample.cybozu.com/k/guest/
GUEST_SPACE_ID
/v1/preview/form.json
HTTP 方法
GET
所需許可權
您必須具有以下權限之一:
- 查看應用程式中記錄的許可權
- 在應用程式中添加記錄的許可權
請求
參數
參數名稱 | 型 | 必須 | 說明 |
---|---|---|---|
app | 數位或字串 | 必須 | 應用的ID |
範例請求(如果在網址中包含參數 )
URL
https://sample.cybozu.com/k/v1/form.json?app=4
頁眉
|
|
關於請求頭,請參見 kintone REST API的通用規範 。
範例要求(如果要在要求正文中包含參數)
URL
https://sample.cybozu.com/k/v1/form.json
頁眉
|
|
關於請求頭,請參見 kintone REST API的通用規範 。
身體
|
|
回應
財產
屬性名稱 | 型 | 說明 |
---|---|---|
properties | 陣列 | 構成應用的欄位清單properties[].type 每個都有不同的欄位內容。詳情見附表。 |
properties[].type | 字串 | 欄位類型 根據類型,將返回以下值:
|
字串(單行)欄位屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"SINGLE_LINE_TEXT"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].expression | 字串 | 通過自動計算設置的公式 |
properties[].hideExpression | 字串 | 是否顯示計算公式
|
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].unique | 字串 | 是否允許重複值
|
properties[].minLength | 字串 | 字元數(最小值) 返回一個整數。 如果未設置,則返回「null」。 |
properties[].maxLength | 字串 | 字元數(最大值) 返回一個整數。 如果未設置,則返回「null」。 |
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
字串(多行)屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"MULTI_LINE_TEXT"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
豐富的編輯器屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"RICH_TEXT"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
數值屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"NUMBER"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].digit | 字串 | 是否顯示千位分隔符
|
properties[].required | 字串 | 是否強制執行
|
properties[].unique | 字串 | 是否允許重複值
|
properties[].minValue | 字串 | 價值限制(最小值) 返回一個整數。 如果未設置,則返回「null」。 |
properties[].maxValue | 字串 | 值限制(最大值) 返回一個整數。 如果未設置,則返回「null」。 |
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].displayScale | 字串 | 小數點後的顯示位數 返回一個整數。 如果未設置,則返回「null」。 |
properties[].unit | 字串 | 單位符號 如果未設置,則返回「null」。 |
properties[].unitPosition | 字串 | 單位符號的位置 傳回以下值:
|
properties[].code | 字串 | 欄位代碼 |
計算屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"CALC"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行 返回"false"。 |
properties[].expression | 字串 | 通過自動計算設置的公式 |
properties[].hideExpression | 字串 | 是否顯示計算公式
|
properties[].format | 字串 | 格式 傳回以下值之一:
|
properties[].displayScale | 字串 | 小數點後的顯示位數 返回一個整數。 如果未設置,則返回「null」。 |
properties[].unit | 字串 | 單位符號 如果未設置,則返回「null」。 |
properties[].unitPosition | 字串 | 單位符號的位置 傳回以下值:
|
properties[].code | 字串 | 欄位代碼 |
單選按鈕屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"RADIO_BUTTON"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行 返回"true"。 |
properties[].options | 陣列(arrays) | 項目清單 |
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
複選框屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"CHECK_BOX"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].options | 陣列(arrays) | 項目清單 |
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
多選屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"MULTI_SELECT"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].options | 陣列(arrays) | 項目清單 |
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
下拉屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"DROP_DOWN"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].options | 陣列(arrays) | 項目清單 |
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
用戶選擇屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"USER_SELECT"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].code | 字串 | 欄位代碼 |
組織選擇屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"ORGANIZATION_SELECT"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].code | 字串 | 欄位代碼 |
組選擇屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"GROUP_SELECT"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].code | 字串 | 欄位代碼 |
Date 屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"DATE"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].unique | 字串 | 是否允許重複值
|
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].defaultExpression | 字串 | 表達式設置為初始值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
Time 屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"TIME"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].defaultExpression | 字串 | 表達式設置為初始值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
日期和時間屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"DATETIME"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].unique | 字串 | 是否允許重複值
|
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].defaultExpression | 字串 | 表達式設置為初始值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
附件屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"FILE"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].code | 字串 | 欄位代碼 |
連結屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"LINK"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].unique | 字串 | 是否允許重複值
|
properties[].protocol | 字串 | 連結類型 傳回以下值之一:
|
properties[].minLength | 字串 | 字元數(最小值) 返回一個整數。 如果未設置,則返回「null」。 |
properties[].maxLength | 字串 | 字元數(最大值) 返回一個整數。 如果未設置,則返回「null」。 |
properties[].defaultValue | 字串 | 預設值 如果未設置,則返回「null」。 |
properties[].code | 字串 | 欄位代碼 |
相關記錄清單屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"REFERENCE_TABLE"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].relatedApp | 數位 | 要引用的應用的應用ID |
properties[].code | 字串 | 欄位代碼 |
查找屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 根據要從中複製的欄位類型,將傳回以下值之一:
|
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].required | 字串 | 是否強制執行
|
properties[].relatedApp | 數位 | 要引用的應用的應用ID |
properties[].code | 字串 | 欄位代碼 |
表屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"TABLE"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].relatedApp | 數位 | 要引用的應用的應用ID |
properties[].fields | 陣列 | 表中的欄位清單 |
properties[].code | 字串 | 欄位代碼 |
標籤屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"LABEL"。 |
properties[].label | 字串 | 欄位名稱 |
空間屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"SPACER"。 |
properties[].elementId | 字串 | 元素的ID |
邊框屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"HR"。 |
記錄編號屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"RECORD_NUMBER"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].code | 字串 | 欄位代碼 |
作者屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"CREATOR"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].code | 字串 | 欄位代碼 |
創建日期和時間屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"CREATED_TIME"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].code | 字串 | 欄位代碼 |
更新人員屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"MODIFIER"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].code | 字串 | 欄位代碼 |
修改後的屬性
屬性名稱 | 型 | 說明 |
---|---|---|
properties[].type | 字串 | 欄位類型 返回"UPDATED_TIME"。 |
properties[].label | 字串 | 欄位名稱 |
properties[].noLabel | 字串 | 隱藏欄位名稱
|
properties[].code | 字串 | 欄位代碼 |
示例回應
|
|
示例代碼
使用 curl 的請求
|
|
發送kintone REST API請求 使用API 發送請求
|
|
限制
- 以下欄位不可用:
- 類別
- 狀態
- 群組
- 組欄位中的下一個字段
- 記錄號碼
- 建立人
- 建立時間
- 更新人
- 更新時間
- 空間
- 標籤
- 分隔線