model_store.model.put
Note
This document has been machine translated.
Registers a model in the model store.
This method POSTs data in multipart/form-data format, not JSON-RPC. See the execution example for details.
Parameters
- model_store_ddc:
string-- Model store name. - model_kind:
string-- model type. Any string can be specified. - model_description:
string-- Model description. Can be any string. - model_meta:
object-- model meta information. You can specify any information in JSON Object format.
Return Values
Model information is returned.
See model_info for details.
Execution example
Request Data
{
"model_store_ddc": "my_store",
"model_kind": "my_model",
"model_description": "this is my sample model",
"model_meta": {
"version": "1",
"created": "2025-07-01 01:02:03",
"loss": 0.123
}
}
Request Execution
curl -H "Content-type: multipart/form-data" \
-H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
-H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
-X POST \
-F data="$(<request.json)" \
-F file="@model.dat" \
https://localhost/api/v2/model_store/jsonrpc/upload/model_store.model.put
Response
{
"end_datetime": {
"_type": "datetime",
"val": "2025-07-11T14:35:29.520628+09:00"
},
"hop_count": 0,
"location": [
0.0,
0.0
],
"model_description": "this is my sample model",
"model_hash": "e9a5b77d4b6794a47ad0ba1682185148",
"model_id": "b9817ad7-3c69-4beb-ba45-633e139a59aa",
"model_kind": "my_model",
"model_meta": {
"created": "2025-07-01 01:02:03",
"loss": 0.123,
"version": "1"
},
"model_size": 17,
"model_state": 10,
"round": 0,
"start_datetime": {
"_type": "datetime",
"val": "2025-07-11T14:35:29.520625+09:00"
},
"tenant_id": "id-party"
}