GoodMemGoodMem
ReferenceCLIDecision Models

Decision Model Update

Decision Model Update CLI command reference

goodmem decision-model update

Update a decision model's settings

Synopsis

Change only the settings supplied by flags. Other settings remain unchanged. The provider and owner cannot be changed.

Use --configuration to set timeout_millis, max_response_bytes, or image_preview (Jev only). This replaces all configuration settings; '{}' restores the defaults.

Supply the provider's API key with --cred-api-key, --cred-api-key-file, or the GOODMEM_CRED_API_KEY environment variable.

Prints the saved settings as JSON. The decisionModelID field contains the UUID that you can use with get, update, delete, ping, and decide.

goodmem decision-model update <decision-model-id> [flags]

Examples

  goodmem decision-model update f031b49e-7a15-4c8c-b4e7-38f77225d2a6 --monitoring-endpoint=""
  goodmem decision-model update f031b49e-7a15-4c8c-b4e7-38f77225d2a6 --label-strategy replace --label=""

Options

      --api-path string              Path appended to the base URL (default /v1/systemone for Jev/Laya; required for Clef)
      --configuration string         Provider settings as a JSON object; replaces all settings ('{}' restores defaults)
      --cred-api-key string          API key for provider endpoint (use "-" to read from piped stdin)
      --cred-api-key-file string     Read API key from file (file should be mode 0600)
      --cred-api-key-prompt          Prompt for API key interactively (requires TTY, input hidden)
      --description string           Description; use --description='' to clear it on update
  -n, --display-name string          Display name
      --endpoint-url string          Provider's base URL, starting with http:// or https://
  -h, --help                         help for update
  -l, --label strings                Label as key=value; repeat for multiple labels
      --label-strategy string        How to apply labels: merge or replace; use replace with --label='' to clear all labels (default "merge")
      --model string                 Model name or identifier expected by the provider
      --monitoring-endpoint string   URL for health checks or metrics; use --monitoring-endpoint='' to clear it on update
      --version string               Version label for your records; use --version='' to clear it on update

Options inherited from parent commands

      --api-key string   API key for authentication (can also be set via GOODMEM_API_KEY environment variable)
      --server string    GoodMem server URL (gRPC API; default ports: https=443, http=80)

SEE ALSO