Activate a model checkpoint
curl --request POST \
--url https://api.example.com/admin/tenants/{tenant_id}/activate \
--header 'Content-Type: application/json' \
--data '
{
"checkpoint_version": 123,
"share_onboarding_outputs": true
}
'import requests
url = "https://api.example.com/admin/tenants/{tenant_id}/activate"
payload = {
"checkpoint_version": 123,
"share_onboarding_outputs": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({checkpoint_version: 123, share_onboarding_outputs: true})
};
fetch('https://api.example.com/admin/tenants/{tenant_id}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/admin/tenants/{tenant_id}/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'checkpoint_version' => 123,
'share_onboarding_outputs' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/tenants/{tenant_id}/activate"
payload := strings.NewReader("{\n \"checkpoint_version\": 123,\n \"share_onboarding_outputs\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/admin/tenants/{tenant_id}/activate")
.header("Content-Type", "application/json")
.body("{\n \"checkpoint_version\": 123,\n \"share_onboarding_outputs\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/admin/tenants/{tenant_id}/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"checkpoint_version\": 123,\n \"share_onboarding_outputs\": true\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Staff Onboarding
Activate a model checkpoint
Requires onboarding_admin + CSRF. Returns 404 if the given checkpoint version does not exist. Marks that checkpoint version active (deactivating all others); if the tenant has an existing dataset, enqueues a materialize_insights job for its latest version (idempotency key materialize-activation:{tenant_id}:{dataset_id}:{checkpoint_version}) so the console has fresh collections to show and sets client_visible on the matching insight_collections rows. Also sets share_onboarding_outputs on the tenant’s control.tenants row, flips tenant lifecycle state to review, and writes a control.audit_log row (checkpoint_activated).
POST
/
admin
/
tenants
/
{tenant_id}
/
activate
Activate a model checkpoint
curl --request POST \
--url https://api.example.com/admin/tenants/{tenant_id}/activate \
--header 'Content-Type: application/json' \
--data '
{
"checkpoint_version": 123,
"share_onboarding_outputs": true
}
'import requests
url = "https://api.example.com/admin/tenants/{tenant_id}/activate"
payload = {
"checkpoint_version": 123,
"share_onboarding_outputs": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({checkpoint_version: 123, share_onboarding_outputs: true})
};
fetch('https://api.example.com/admin/tenants/{tenant_id}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/admin/tenants/{tenant_id}/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'checkpoint_version' => 123,
'share_onboarding_outputs' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/admin/tenants/{tenant_id}/activate"
payload := strings.NewReader("{\n \"checkpoint_version\": 123,\n \"share_onboarding_outputs\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/admin/tenants/{tenant_id}/activate")
.header("Content-Type", "application/json")
.body("{\n \"checkpoint_version\": 123,\n \"share_onboarding_outputs\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/admin/tenants/{tenant_id}/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"checkpoint_version\": 123,\n \"share_onboarding_outputs\": true\n}"
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}