**注:**例子中的 1F6D701272402D1E7D8D316CCE519123 是船讯网的官方 key,已经绑定域名 api.shipxy.com,用户无权也无法使用该 key 获取数据,使用该 key 会返回 status 14 的状态码,提示来源域错误。用户如需试用服务,请在控制台创建自己的key。
{ "key": "1F6D701272402D1E7D8D316CCE519123", "area_id": "65a03820-31dd-4db6-afd4-9517b81f94e1", "area_bounds": "119.846180,32.345143-119.814280,32.311867-119.4661,32.291067-119.375887,32.213847", "url": "http://192.186.1.1:8000/shipxy/testdemo", "area_name": "浙江沿海区域", "filter_type": 3, "ship_type": "80", "length": "4", "fleet_id": "3f2062c6-b796-4a03-b923-48628794dd86" }
curl --location 'https://api.shipxy.com/apicall/v3/UpdateArea' \ --header 'Content-Type: application/json' \ --data '{ "key": "1F6D701272402D1E7D8D316CCE519123", "area_id": "65a03820-31dd-4db6-afd4-9517b81f94e1", "area_bounds": "119.846180,32.345143-119.814280,32.311867-119.4661,32.291067-119.375887,32.213847", "url": "http://192.186.1.1:8000/shipxy/testdemo", "area_name": "浙江沿海区域", "filter_type": 3, "ship_type": "80", "length": "4", "fleet_id": "3f2062c6-b796-4a03-b923-48628794dd86" }'
{ "status": 0, "msg": "", "data": { "area_id": "65a03820-31dd-4db6-afd4-9517b81f94e1" } }