Get model objectives
GET /api/v1/predictive-models/objectives/{id}: request fields and declared response contract.
GET/api/v1/predictive-models/objectives/{id}
| Permission | dataPipelines.read |
|---|---|
| Workspace scope | required |
| Scope target | workspace |
Parameters
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
| id | string | required | non-null | — |
Query parameters: none.
Response
200
| Field | Type | Required | Nullable | Default |
|---|---|---|---|---|
| data | object | required | non-null | — |
| data.id | string | required | non-null | — |
| data.companyId | string | required | non-null | — |
| data.workspaceId | string | required | non-null | — |
| data.objectiveKey | string | required | non-null | — |
| data.revision | integer | required | non-null | — |
| data.state | "draft" | "active" | "archived" | required | non-null | — |
| data.name | string | required | non-null | — |
| data.taskType | "binary_classification" | "multiclass_classification" | "regression" | required | non-null | — |
| data.contract | object | required | non-null | — |
| data.contract.contractVersion | integer | required | non-null | 1 |
| data.contract.predictionHorizon | object | required | non-null | — |
| data.contract.predictionHorizon.unit | "days" | "weeks" | "months" | required | non-null | — |
| data.contract.predictionHorizon.amount | integer | required | non-null | — |
| data.contract.semanticInputs | array | required | non-null | — |
| data.contract.output | object | required | non-null | — |
| data.contract.output.targetName | string | required | non-null | — |
| data.contract.output.valueType | "boolean" | "number" | "category" | required | non-null | — |
| data.contract.output.categories | array | optional | non-null | — |
| data.contract.successMeasures | array | required | non-null | — |
| data.createdAt | string | required | non-null | — |
| data.updatedAt | string | required | non-null | — |
Declared failures
| ACCESS_DENIED | 403 — not retryable |
|---|---|
| CORE_ERROR | 500 — not retryable |
| GOVERNANCE_DENIED | 403 — not retryable |
| VALIDATION_ERROR | 400 — not retryable |
| VALIDATION_INPUT_ERROR | 400 — not retryable |
Readback
This method returns the current state it read.
- predictiveModels.objective.read
Request example
Schematic only. Replace placeholders with real values and include all required nested fields.
GET /api/v1/predictive-models/objectives/{id} HTTP/1.1
Authorization: Bearer <token>
x-merulan-workspace-id: <workspace-id>