Model Schema
This document describes the Model object schema returned by the globalMOO API.
Structure
{
"id": 123, // Unique identifier
"createdAt": "2025-01-31T10:00:00.000Z", // Creation timestamp
"updatedAt": "2025-01-31T10:00:00.000Z", // Last update timestamp
"disabledAt": null, // Optional disable timestamp
"name": "Production Optimization", // Model name
"description": "Optimization model for production planning", // Optional description
"projects": [ // Associated projects
{
"id": 456,
"createdAt": "2025-01-31T10:00:00.000Z",
"updatedAt": "2025-01-31T10:00:00.000Z",
"disabledAt": null,
"name": "Q1 Planning",
"description": "First quarter production planning",
"configuration": {
"parameters": {
"max_iterations": 1000,
"convergence_threshold": 0.001
}
}
}
]
}Fields
id
integer
Unique identifier for the model
createdAt
string (ISO 8601)
Timestamp when the model was created
updatedAt
string (ISO 8601)
Timestamp when the model was last updated
disabledAt
string (ISO 8601) or null
Timestamp when the model was disabled, null if active
name
string
Name of the model
description
string or null
Description of the model, null if not provided
SDK Representations
JavaScript SDK
In the JavaScript SDK, the Model object uses snake_case naming for some fields, translating from the API's camelCase:
Python SDK
The Python SDK also uses snake_case naming and converts timestamps to datetime objects:
PHP SDK
The PHP SDK maintains camelCase naming to match the API and converts timestamps to DateTimeImmutable objects:
Examples
Simple Model
Model with Projects
Related Endpoints
Last updated