Register model through config
curl --request PUT \
--url https://mycluster.domino.tech/model-monitor/v2/api/model \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"datasetDetails": {
"datasetConfig": {
"path": "<string>"
},
"datasetType": "file",
"datasourceName": "<string>",
"name": "<string>",
"featureSetId": "<string>",
"featureSetVersionId": "<string>"
},
"modelMetadata": {
"name": "<string>",
"version": "<string>",
"author": "<string>",
"dateCreated": 123,
"description": "<string>"
},
"run_cohort_analysis": true,
"variables": [
{
"name": "<string>",
"binsCategories": [
"<string>"
],
"binsEdges": [
123
],
"binsNum": 123,
"featureImportance": 123,
"forPredictionOutput": "<string>",
"precomputedBinCounts": [
123
],
"predictionProbabilityLabels": [
"<string>"
]
}
]
}
'import requests
url = "https://mycluster.domino.tech/model-monitor/v2/api/model"
payload = {
"datasetDetails": {
"datasetConfig": { "path": "<string>" },
"datasetType": "file",
"datasourceName": "<string>",
"name": "<string>",
"featureSetId": "<string>",
"featureSetVersionId": "<string>"
},
"modelMetadata": {
"name": "<string>",
"version": "<string>",
"author": "<string>",
"dateCreated": 123,
"description": "<string>"
},
"run_cohort_analysis": True,
"variables": [
{
"name": "<string>",
"binsCategories": ["<string>"],
"binsEdges": [123],
"binsNum": 123,
"featureImportance": 123,
"forPredictionOutput": "<string>",
"precomputedBinCounts": [123],
"predictionProbabilityLabels": ["<string>"]
}
]
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
datasetDetails: {
datasetConfig: {path: '<string>'},
datasetType: 'file',
datasourceName: '<string>',
name: '<string>',
featureSetId: '<string>',
featureSetVersionId: '<string>'
},
modelMetadata: {
name: '<string>',
version: '<string>',
author: '<string>',
dateCreated: 123,
description: '<string>'
},
run_cohort_analysis: true,
variables: [
{
name: '<string>',
binsCategories: ['<string>'],
binsEdges: [123],
binsNum: 123,
featureImportance: 123,
forPredictionOutput: '<string>',
precomputedBinCounts: [123],
predictionProbabilityLabels: ['<string>']
}
]
})
};
fetch('https://mycluster.domino.tech/model-monitor/v2/api/model', 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://mycluster.domino.tech/model-monitor/v2/api/model",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'datasetDetails' => [
'datasetConfig' => [
'path' => '<string>'
],
'datasetType' => 'file',
'datasourceName' => '<string>',
'name' => '<string>',
'featureSetId' => '<string>',
'featureSetVersionId' => '<string>'
],
'modelMetadata' => [
'name' => '<string>',
'version' => '<string>',
'author' => '<string>',
'dateCreated' => 123,
'description' => '<string>'
],
'run_cohort_analysis' => true,
'variables' => [
[
'name' => '<string>',
'binsCategories' => [
'<string>'
],
'binsEdges' => [
123
],
'binsNum' => 123,
'featureImportance' => 123,
'forPredictionOutput' => '<string>',
'precomputedBinCounts' => [
123
],
'predictionProbabilityLabels' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$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://mycluster.domino.tech/model-monitor/v2/api/model"
payload := strings.NewReader("{\n \"datasetDetails\": {\n \"datasetConfig\": {\n \"path\": \"<string>\"\n },\n \"datasetType\": \"file\",\n \"datasourceName\": \"<string>\",\n \"name\": \"<string>\",\n \"featureSetId\": \"<string>\",\n \"featureSetVersionId\": \"<string>\"\n },\n \"modelMetadata\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\",\n \"author\": \"<string>\",\n \"dateCreated\": 123,\n \"description\": \"<string>\"\n },\n \"run_cohort_analysis\": true,\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"binsCategories\": [\n \"<string>\"\n ],\n \"binsEdges\": [\n 123\n ],\n \"binsNum\": 123,\n \"featureImportance\": 123,\n \"forPredictionOutput\": \"<string>\",\n \"precomputedBinCounts\": [\n 123\n ],\n \"predictionProbabilityLabels\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
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.put("https://mycluster.domino.tech/model-monitor/v2/api/model")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"datasetDetails\": {\n \"datasetConfig\": {\n \"path\": \"<string>\"\n },\n \"datasetType\": \"file\",\n \"datasourceName\": \"<string>\",\n \"name\": \"<string>\",\n \"featureSetId\": \"<string>\",\n \"featureSetVersionId\": \"<string>\"\n },\n \"modelMetadata\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\",\n \"author\": \"<string>\",\n \"dateCreated\": 123,\n \"description\": \"<string>\"\n },\n \"run_cohort_analysis\": true,\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"binsCategories\": [\n \"<string>\"\n ],\n \"binsEdges\": [\n 123\n ],\n \"binsNum\": 123,\n \"featureImportance\": 123,\n \"forPredictionOutput\": \"<string>\",\n \"precomputedBinCounts\": [\n 123\n ],\n \"predictionProbabilityLabels\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/model-monitor/v2/api/model")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"datasetDetails\": {\n \"datasetConfig\": {\n \"path\": \"<string>\"\n },\n \"datasetType\": \"file\",\n \"datasourceName\": \"<string>\",\n \"name\": \"<string>\",\n \"featureSetId\": \"<string>\",\n \"featureSetVersionId\": \"<string>\"\n },\n \"modelMetadata\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\",\n \"author\": \"<string>\",\n \"dateCreated\": 123,\n \"description\": \"<string>\"\n },\n \"run_cohort_analysis\": true,\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"binsCategories\": [\n \"<string>\"\n ],\n \"binsEdges\": [\n 123\n ],\n \"binsNum\": 123,\n \"featureImportance\": 123,\n \"forPredictionOutput\": \"<string>\",\n \"precomputedBinCounts\": [\n 123\n ],\n \"predictionProbabilityLabels\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"modelType": "classification",
"name": "<string>",
"version": "<string>",
"createdAt": 123,
"id": "<string>",
"ingestionStatus": "created",
"isDeleted": true,
"registrationStatus": "draft",
"updatedAt": 123,
"userId": "<string>",
"author": "<string>",
"dateCreated": 123,
"description": "<string>",
"sourceDetails": {
"workbenchModelId": "<string>",
"workbenchModelVersionId": "<string>"
},
"sourceType": "domino_workbench",
"collaborators": [
{
"collaboratorLevel": "editor",
"userId": "<string>"
}
],
"ownerEmail": "<string>",
"ownerName": "<string>",
"ownerUsername": "<string>",
"tags": [
{
"id": "<string>",
"tagName": "<string>"
}
],
"visibility": "public",
"permissions": {
"canEditPermissions": true,
"canRegisterDataset": true,
"canUpdateMonitoringSettings": true
}
}Authorizations
Body
Config to be used to register a model with DMM.
Config for the dataset to be registered with the model.
Show child attributes
Show child attributes
Model Config to be used to register a model with DMM.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Successfully registered the Model.
Model Config to be used to register a model with DMM.
Type of the Model.
classification, regression Name of the Model.
Version of the Model.
Creation timestamp of the Model.
Model Identifier.
Dataset Ingestion status for a model.
created, training, prediction, ground_truth Whether the model is deleted or not.
Registration status of a model.
draft, created, deleted Last update timestamp for the Model.
Id of the model owner, who created the model.
Author of the Model.
The creation date of the model.
Description for the Model.
Model details associated with a Domino workbench model.
Show child attributes
Show child attributes
Source for the model registration.
domino_workbench, standalone Show child attributes
Show child attributes
email of the model owner, who created the model.
name of the model owner, who created the model.
username of the model owner, who created the model.
List of tags associated with the model
Show child attributes
Show child attributes
Model visibility
public, private Permission metadata required for a model response
Show child attributes
Show child attributes
Related topics
Register a ModelManage models with model registryRegister modelsRegister dataset configWas this page helpful?
curl --request PUT \
--url https://mycluster.domino.tech/model-monitor/v2/api/model \
--header 'Content-Type: application/json' \
--header 'X-Domino-Api-Key: <api-key>' \
--data '
{
"datasetDetails": {
"datasetConfig": {
"path": "<string>"
},
"datasetType": "file",
"datasourceName": "<string>",
"name": "<string>",
"featureSetId": "<string>",
"featureSetVersionId": "<string>"
},
"modelMetadata": {
"name": "<string>",
"version": "<string>",
"author": "<string>",
"dateCreated": 123,
"description": "<string>"
},
"run_cohort_analysis": true,
"variables": [
{
"name": "<string>",
"binsCategories": [
"<string>"
],
"binsEdges": [
123
],
"binsNum": 123,
"featureImportance": 123,
"forPredictionOutput": "<string>",
"precomputedBinCounts": [
123
],
"predictionProbabilityLabels": [
"<string>"
]
}
]
}
'import requests
url = "https://mycluster.domino.tech/model-monitor/v2/api/model"
payload = {
"datasetDetails": {
"datasetConfig": { "path": "<string>" },
"datasetType": "file",
"datasourceName": "<string>",
"name": "<string>",
"featureSetId": "<string>",
"featureSetVersionId": "<string>"
},
"modelMetadata": {
"name": "<string>",
"version": "<string>",
"author": "<string>",
"dateCreated": 123,
"description": "<string>"
},
"run_cohort_analysis": True,
"variables": [
{
"name": "<string>",
"binsCategories": ["<string>"],
"binsEdges": [123],
"binsNum": 123,
"featureImportance": 123,
"forPredictionOutput": "<string>",
"precomputedBinCounts": [123],
"predictionProbabilityLabels": ["<string>"]
}
]
}
headers = {
"X-Domino-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-Domino-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
datasetDetails: {
datasetConfig: {path: '<string>'},
datasetType: 'file',
datasourceName: '<string>',
name: '<string>',
featureSetId: '<string>',
featureSetVersionId: '<string>'
},
modelMetadata: {
name: '<string>',
version: '<string>',
author: '<string>',
dateCreated: 123,
description: '<string>'
},
run_cohort_analysis: true,
variables: [
{
name: '<string>',
binsCategories: ['<string>'],
binsEdges: [123],
binsNum: 123,
featureImportance: 123,
forPredictionOutput: '<string>',
precomputedBinCounts: [123],
predictionProbabilityLabels: ['<string>']
}
]
})
};
fetch('https://mycluster.domino.tech/model-monitor/v2/api/model', 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://mycluster.domino.tech/model-monitor/v2/api/model",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'datasetDetails' => [
'datasetConfig' => [
'path' => '<string>'
],
'datasetType' => 'file',
'datasourceName' => '<string>',
'name' => '<string>',
'featureSetId' => '<string>',
'featureSetVersionId' => '<string>'
],
'modelMetadata' => [
'name' => '<string>',
'version' => '<string>',
'author' => '<string>',
'dateCreated' => 123,
'description' => '<string>'
],
'run_cohort_analysis' => true,
'variables' => [
[
'name' => '<string>',
'binsCategories' => [
'<string>'
],
'binsEdges' => [
123
],
'binsNum' => 123,
'featureImportance' => 123,
'forPredictionOutput' => '<string>',
'precomputedBinCounts' => [
123
],
'predictionProbabilityLabels' => [
'<string>'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Domino-Api-Key: <api-key>"
],
]);
$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://mycluster.domino.tech/model-monitor/v2/api/model"
payload := strings.NewReader("{\n \"datasetDetails\": {\n \"datasetConfig\": {\n \"path\": \"<string>\"\n },\n \"datasetType\": \"file\",\n \"datasourceName\": \"<string>\",\n \"name\": \"<string>\",\n \"featureSetId\": \"<string>\",\n \"featureSetVersionId\": \"<string>\"\n },\n \"modelMetadata\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\",\n \"author\": \"<string>\",\n \"dateCreated\": 123,\n \"description\": \"<string>\"\n },\n \"run_cohort_analysis\": true,\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"binsCategories\": [\n \"<string>\"\n ],\n \"binsEdges\": [\n 123\n ],\n \"binsNum\": 123,\n \"featureImportance\": 123,\n \"forPredictionOutput\": \"<string>\",\n \"precomputedBinCounts\": [\n 123\n ],\n \"predictionProbabilityLabels\": [\n \"<string>\"\n ]\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Domino-Api-Key", "<api-key>")
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.put("https://mycluster.domino.tech/model-monitor/v2/api/model")
.header("X-Domino-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"datasetDetails\": {\n \"datasetConfig\": {\n \"path\": \"<string>\"\n },\n \"datasetType\": \"file\",\n \"datasourceName\": \"<string>\",\n \"name\": \"<string>\",\n \"featureSetId\": \"<string>\",\n \"featureSetVersionId\": \"<string>\"\n },\n \"modelMetadata\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\",\n \"author\": \"<string>\",\n \"dateCreated\": 123,\n \"description\": \"<string>\"\n },\n \"run_cohort_analysis\": true,\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"binsCategories\": [\n \"<string>\"\n ],\n \"binsEdges\": [\n 123\n ],\n \"binsNum\": 123,\n \"featureImportance\": 123,\n \"forPredictionOutput\": \"<string>\",\n \"precomputedBinCounts\": [\n 123\n ],\n \"predictionProbabilityLabels\": [\n \"<string>\"\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/model-monitor/v2/api/model")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-Domino-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"datasetDetails\": {\n \"datasetConfig\": {\n \"path\": \"<string>\"\n },\n \"datasetType\": \"file\",\n \"datasourceName\": \"<string>\",\n \"name\": \"<string>\",\n \"featureSetId\": \"<string>\",\n \"featureSetVersionId\": \"<string>\"\n },\n \"modelMetadata\": {\n \"name\": \"<string>\",\n \"version\": \"<string>\",\n \"author\": \"<string>\",\n \"dateCreated\": 123,\n \"description\": \"<string>\"\n },\n \"run_cohort_analysis\": true,\n \"variables\": [\n {\n \"name\": \"<string>\",\n \"binsCategories\": [\n \"<string>\"\n ],\n \"binsEdges\": [\n 123\n ],\n \"binsNum\": 123,\n \"featureImportance\": 123,\n \"forPredictionOutput\": \"<string>\",\n \"precomputedBinCounts\": [\n 123\n ],\n \"predictionProbabilityLabels\": [\n \"<string>\"\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"modelType": "classification",
"name": "<string>",
"version": "<string>",
"createdAt": 123,
"id": "<string>",
"ingestionStatus": "created",
"isDeleted": true,
"registrationStatus": "draft",
"updatedAt": 123,
"userId": "<string>",
"author": "<string>",
"dateCreated": 123,
"description": "<string>",
"sourceDetails": {
"workbenchModelId": "<string>",
"workbenchModelVersionId": "<string>"
},
"sourceType": "domino_workbench",
"collaborators": [
{
"collaboratorLevel": "editor",
"userId": "<string>"
}
],
"ownerEmail": "<string>",
"ownerName": "<string>",
"ownerUsername": "<string>",
"tags": [
{
"id": "<string>",
"tagName": "<string>"
}
],
"visibility": "public",
"permissions": {
"canEditPermissions": true,
"canRegisterDataset": true,
"canUpdateMonitoringSettings": true
}
}