示例

POST /api/common_parameters
{
  "common_parameter": {
    "name": "special_key",
    "value": "123"
  }
}
201
{
  "created_at": "2019-09-11 14:48:56 UTC",
  "updated_at": "2019-09-11 14:48:56 UTC",
  "hidden_value?": false,
  "hidden_value": "*****",
  "id": 767575239,
  "name": "special_key",
  "parameter_type": null,
  "value": "123"
}

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

common_parameter
必填

Validations:

  • Must be a Hash

common_parameter[name]
必填

Validations:

  • Must be a String

common_parameter[value]
必填

Validations:

  • Must be a String

common_parameter[parameter_type]
必填

Type of value

Validations:

  • Must be one of: string, boolean, integer, real, array, hash, yaml, json.

common_parameter[hidden_value]
选填 , 允许空值

Validations:

  • Must be one of: true, false.