GET /api/templates/:template_id/foreign_input_sets
列出外部輸入集

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

template_id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

search
選填

篩選結果

Validations:

  • Must be a String

order
選填

排序結果

Validations:

  • Must be a String

page
選填

編頁結果

Validations:

  • Must be a String

per_page
選填

每個請求的項目數量

Validations:

  • Must be a String


GET /api/templates/:template_id/foreign_input_sets/:id
顯示外部輸入集的詳細資料

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

template_id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/templates/:template_id/foreign_input_sets
建立外部輸入集

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

template_id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

foreign_input_set
必填

Validations:

  • Must be a Hash

foreign_input_set[target_template_id]
必填

目標範本 ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

foreign_input_set[include_all]
選填 , 允許空值

Include all inputs from the foreign template

Validations:

  • Must be one of: true, false, 1, 0

foreign_input_set[include]
選填 , 允許空值

從外部範本納入的輸入名稱清單,以逗號隔開。

Validations:

  • Must be a String

foreign_input_set[exclude]
選填 , 允許空值

從外部範本納入的輸入名稱清單,以逗號隔開。

Validations:

  • Must be a String

foreign_input_set[description]
選填 , 允許空值

輸入集的描述

Validations:

  • Must be a String


DELETE /api/templates/:template_id/foreign_input_sets/:id
刪除外部輸入集

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

template_id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


PUT /api/templates/:template_id/foreign_input_sets/:id
更新外部輸入集

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

template_id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

foreign_input_set
必填

Validations:

  • Must be a Hash

foreign_input_set[target_template_id]
選填

目標範本 ID

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

foreign_input_set[include_all]
選填 , 允許空值

Include all inputs from the foreign template

Validations:

  • Must be one of: true, false, 1, 0

foreign_input_set[include]
選填 , 允許空值

從外部範本納入的輸入名稱清單,以逗號隔開。

Validations:

  • Must be a String

foreign_input_set[exclude]
選填 , 允許空值

從外部範本納入的輸入名稱清單,以逗號隔開。

Validations:

  • Must be a String

foreign_input_set[description]
選填 , 允許空值

輸入集的描述

Validations:

  • Must be a String