赤那接口平台 / Zny\ / [新增或编辑]

[新增或编辑]

接口描述: 新增或编辑

HTTP/HTTPS
请求协议
GET/POST
请求方式
UTF-8
编码格式
JSON
返回格式
v1.0
版本号

接口参数

参数名字类型是否必须默认值其他说明
access_token字符串可选访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口
id整型可选-记录ID
province整型必须-省Id
province_name字符串必须-省名称
city字符串必须-市ID
city_name字符串必须-市名称
district整型必须-区ID
province_name字符串必须-区名称
longitude字符串必须-经度
latitude字符串必须-纬度
soil_name字符串必须-土种名称
soil_type整型必须-土类ID
soil_type_name字符串必须-土类名称
subclass_type整型必须-亚类ID
subclass_type_name字符串必须-亚类名称
common_name字符串必须-俗名
description字符串必须-描述
parent_material字符串必须-母质
topography字符串必须-分布和地形地貌
monthly_average_precipitation整型必须-月平均降水量
monthly_average_temperature整型必须-月平均温度
climatic_zone字符串必须-气候分区
annual_average_temperature整型必须-年均温(c)
annual_precipitation整型必须-年降水(mm)
area整型必须-面积(万亩)
profile_configuration字符串必须-剖面构型
effective_soil_depth字符串必须-有效土体深度
main_traits字符串必须-主要性状
production_performance字符串必须-生产性能
soil_barrier_factor字符串必须-土壤障碍因子
audit_opinion_time字符串必须-土地利用
typical_profile_landscape字符串必须-典型剖面景观
typical_profile_generation_layer字符串必须-典型剖面发生层
typical_profile_physical_properties字符串必须-典型剖面物理性质
typical_profile_chemical_properties字符串必须-典型剖面化学性质
typical_profile_nutrients字符串必须-典型剖面养分

返回字段

返回结果类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误
data对象或混合类型业务数据,由各自接口指定,通常为对象
data.true|falsebool
msg字符串提示信息,失败时的错误提示

在线测试   


参数是否必须
service 必须
access_token 可选
id 可选
province 必须
province_name 必须
city 必须
city_name 必须
district 必须
province_name 必须
longitude 必须
latitude 必须
soil_name 必须
soil_type 必须
soil_type_name 必须
subclass_type 必须
subclass_type_name 必须
common_name 必须
description 必须
parent_material 必须
topography 必须
monthly_average_precipitation 必须
monthly_average_temperature 必须
climatic_zone 必须
annual_average_temperature 必须
annual_precipitation 必须
area 必须
profile_configuration 必须
effective_soil_depth 必须
main_traits 必须
production_performance 必须
soil_barrier_factor 必须
audit_opinion_time 必须
typical_profile_landscape 必须
typical_profile_generation_layer 必须
typical_profile_physical_properties 必须
typical_profile_chemical_properties 必须
typical_profile_nutrients 必须

客户端请求示例

# 暂无示例,可添加示例文件:./src/view/docs/demos/Zny.SoilInformation.Save.json

错误列表

错误状态码错误描述信息
400ret=400,客户端参数错误或非法请求
404表示接口服务不存在
406ret=406,access_token令牌校验不通过
407ret=407,app_key权限不足,或未知应用
408ret=408,当前用户禁止使用,或用户未登录
500表示服务端内部错误

本文档生成时间:2026-01-24 23:21:18