Skip to content

model_store.model.put_aggregated

Note

This document has been machine translated.

Registers an aggregated model in the Model Store.

This method does not use JSON-RPC; instead, it POSTs data in the multipart/form-data format. For details, refer to the execution example.

Parameters

  • model_store_ddc (string): The name of the Model Store.
  • model_kind (string): The type of the model. Any string can be specified.
  • model_description (string): The description of the model. Any string can be specified.
  • model_meta (object): The metadata of the model. Any information can be specified in JSON Object format.

Return Value

Model information is returned. For details, refer to model_info.

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_aggregated

Response

{
  "end_datetime": {
    "_type": "datetime",
    "val": "2025-07-12T09:12:27.318646+09:00"
  },
  "hop_count": 0,
  "location": [
    0.0,
    0.0
  ],
  "model_description": "this is my sample model",
  "model_hash": "e9a5b77d4b6794a47ad0ba1682185148",
  "model_id": "634e44c7-49b7-49ce-807c-cfd344fc3781",
  "model_kind": "my_model",
  "model_meta": {
    "created": "2025-07-01 01:02:03",
    "loss": 0.123,
    "version": "1"
  },
  "model_size": 17,
  "model_state": 30,
  "model_store_ddc": "my_store_1752278789.8122",
  "round": 0,
  "start_datetime": {
    "_type": "datetime",
    "val": "2025-07-12T09:12:27.318644+09:00"
  },
  "tenant_id": "id-party"
}