Authorization: Bearer ********************
{
"minIOPath": "modelconfiguration/modeltemplatefiles/BYJC_YS_8d08bc82-3b95-4712-84ae-0b9d2f198717.zip",
"minIOBucket": "MIKEPlusFloodModel",
"projectFile": "BYJC_YS.mupp",
"type": 21,
"groupId": "abfcfe31-2546-487a-9551-51c7183ff475",
"newTemplateName": "大雨预演模板",
"subType": "Schedule",
"description": "用于大雨场景下的预演模板",
"attributes": ""
}
curl --location --request POST 'http://10.174.150.25:32001/api/v2/scenario-manager/scenario/dfs/create-template' \
--header 'Content-Type: application/json' \
--data-raw '{
"minIOPath": "modelconfiguration/modeltemplatefiles/BYJC_YS_8d08bc82-3b95-4712-84ae-0b9d2f198717.zip",
"minIOBucket": "MIKEPlusFloodModel",
"projectFile": "BYJC_YS.mupp",
"type": 21,
"groupId": "abfcfe31-2546-487a-9551-51c7183ff475",
"newTemplateName": "大雨预演模板",
"subType": "Schedule",
"description": "用于大雨场景下的预演模板",
"attributes": ""
}'
{
"data": {
"id": "f379f17f-50ac-4697-b42e-37d14121c08c",
"scenarioCode": "DYYYMB337357",
"scenarioName": "大雨预演模板",
"modelType": "MIKEPlusFloodModel",
"modelSubType": "Schedule",
"template": 1,
"inheritedScenario": "00000000-0000-0000-0000-000000000000",
"readOnly": 0,
"enabled": 1,
"relativeFolder": "DYYYMB337357",
"projectFile": "BYJC_YS.mupp",
"currentTime": "2025-03-14T09:17:39.9078",
"startTime": "2025-03-14T09:17:39.9078",
"endTime": "2025-03-14T09:17:39.9078",
"createTime": "2025-03-14T09:17:39.9151",
"autoCalculate": 0,
"modified": 0,
"checked": 0,
"calculated": 0,
"published": 0,
"onlineFirst": 1,
"autoAmend": 1,
"state": null,
"description": "用于大雨场景下的预演模板",
"version": "7ddc9f12-145a-4369-b5b1-06a406d69a65",
"tenantId": "3a1654c5-4f41-00be-3508-362dee00b666",
"minIOPath": "modelconfiguration/modeltemplatefiles/BYJC_YS_8d08bc82-3b95-4712-84ae-0b9d2f198717.zip",
"minIOBucket": "MIKEPlusFloodModel",
"creatorName": "",
"attributes": "",
"name": "DYYYMB337357"
},
"status": true,
"code": "000000",
"message": null,
"traceId": null
}