Skip to main content
LQM Builder

Configure LQM drift and retraining operations

PUT /lqm/models/{uid}/operations-policy

Contract

Configures monitoring and retraining-request policy. This never changes the active model version and never grants automatic promotion.

Authentication
Bearer credential required
Required scope
lqm:build:write
Status
Published

Parameters

Name Location Type Required Description
uid path string Yes

Request body

application/json · required
{
    "cadence": "daily",
    "scheduled_retraining_enabled": true,
    "drift_monitoring_enabled": true,
    "automatic_request_creation": true,
    "cooldown_hours": 1,
    "evaluation_max_age_days": 1,
    "thresholds": []
}

Code examples

These examples compose a request only. Public reference pages never transmit your credential or execute the operation.

curl

curl -X PUT \
  -H "Authorization: Bearer $FINANCEGPT_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  --data '{
    "cadence": "daily",
    "scheduled_retraining_enabled": true,
    "drift_monitoring_enabled": true,
    "automatic_request_creation": true,
    "cooldown_hours": 1,
    "evaluation_max_age_days": 1,
    "thresholds": []
}' \
  "https://financegpt.dev/api/v2/lqm/models/{uid}/operations-policy"

javascript

const response = await fetch("https:\/\/financegpt.dev\/api\/v2\/lqm\/models\/{uid}\/operations-policy", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${FINANCEGPT_API_KEY}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "cadence": "daily",
    "scheduled_retraining_enabled": true,
    "drift_monitoring_enabled": true,
    "automatic_request_creation": true,
    "cooldown_hours": 1,
    "evaluation_max_age_days": 1,
    "thresholds": []
}),
});
const data = await response.json();

python

import json
import os
import requests

response = requests.request(
    'PUT',
    'https://financegpt.dev/api/v2/lqm/models/{uid}/operations-policy',
    headers={
        'Authorization': 'Bearer ' + os.environ['FINANCEGPT_API_KEY'],
        'Accept': 'application/json',
    },
    json=json.loads('{"cadence":"daily","scheduled_retraining_enabled":true,"drift_monitoring_enabled":true,"automatic_request_creation":true,"cooldown_hours":1,"evaluation_max_age_days":1,"thresholds":[]}'),
)
response.raise_for_status()
print(response.json())

php

<?php
$ch = curl_init('https://financegpt.dev/api/v2/lqm/models/{uid}/operations-policy');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'PUT',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer '.getenv('FINANCEGPT_API_KEY'),
        'Accept: application/json',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode(array (
  'cadence' => 'daily',
  'scheduled_retraining_enabled' => true,
  'drift_monitoring_enabled' => true,
  'automatic_request_creation' => true,
  'cooldown_hours' => 1,
  'evaluation_max_age_days' => 1,
  'thresholds' => 
  array (
  ),
)),
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;

Responses

Status Description
200 Governed operations policy sealed with SHA-256
409 Invalid policy or LQM context

Authority boundary

A developer credential proves application identity and permits only its scopes. It does not grant model promotion, policy override, QLM rebinding, or Financial Actions execution authority unless those separate controls are satisfied.

lqm:build:write

Machine-readable sources