Skip to content

fl.update_upstream_info

Note

This document has been machine translated.

Updates the upstream information registered in the Model Store.

Parameters

  • id (integer): The ID of the upstream information.
  • model_store_ddc (string): The name of the Model Store.
  • upstream_endpoint (string): The endpoint of the upstream node. This field is optional. If omitted, the current setting value will not be changed.
  • upstream_apikey (string): The API key for connecting to the upstream node. This field is optional. If omitted, the current setting value will not be changed.
  • upstream_secret (string): The secret for connecting to the upstream node. This field is optional. If omitted, the current setting value will not be changed.
  • upstream_model_store_ddc: string -- The name of the Model Store on the upstream node. This field is optional. If omitted, the current setting value will not be changed.

Return Value

The upstream information of the Model Store is returned. For details, refer to Data type upstream_info.

Example

Request Data

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "fl.update_upstream_info",
  "params": {
    "id": 6,
    "upstream_endpoint": "https://localhost/api/v2/fl/jsonrpc",
    "upstream_apikey": "9c6f4574-89d1-4e3c-8af7-2549dc217fcf",
    "upstream_secret": "aef8caingiej1ieNieJ3Phool4maeGohcies",
    "upstream_model_store_ddc": "other_upstream_store"
  }
}

Request Execution

curl -H "Content-type: application/json" \
     -H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
     -H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
     -X POST -d "@request.json" \
     https://localhost/api/v2/fl/jsonrpc

Response

{
  "result": {
    "id": 6,
    "model_store_ddc_id": null,
    "model_store_dataset_id": 5,
    "upstream_endpoint": "https://localhost/api/v2/fl/jsonrpc",
    "upstream_apikey": "9c6f4574-89d1-4e3c-8af7-2549dc217fcf",
    "upstream_secret": "aef8caingiej1ieNieJ3Phool4maeGohcies",
    "upstream_model_store_ddc": "other_upstream_store",
    "alias": "default",
    "description": "",
    "enabled": true,
    "created_at": {
      "_type": "datetime",
      "val": "2025-07-11T14:06:28.823722+09:00"
    },
    "updated_at": {
      "_type": "datetime",
      "val": "2025-07-11T14:06:28.823722+09:00"
    }
  },
  "id": 1,
  "jsonrpc": "2.0"
}