The simulator model resource represents an asset modeled in a simulator. This asset could range from a pump or well to a complete processing facility or refinery. The simulator model is the root of its associated revisions, routines, runs, and results. The dataset assigned to a model is inherited by its children. Deleting a model also deletes all its children, thereby maintaining the integrity and hierarchy of the simulation data.
Simulator model revisions track changes and updates to a simulator model over time. Each revision ensures that modifications to models are traceable and allows users to understand the evolution of a given model.
Create a simulator model.
required | Array of objects (Items) A list with a single item |
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "items": [
- {
- "externalId": "string",
- "simulatorExternalId": "string",
- "name": "string",
- "description": "string",
- "dataSetId": 0,
- "type": "string"
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "name": "string",
- "description": "string",
- "type": "string",
- "createdTime": 0,
- "lastUpdatedTime": 0
}
]
}Retrieves a list of simulator models that match the given criteria.
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "filter": {
- "simulatorExternalIds": [
- "PROSPER"
], - "externalIdPrefix": "string",
- "dataSetIds": [
- 0
]
}, - "limit": 1000,
- "cursor": "string",
- "sort": [
- {
- "order": "asc",
- "property": "createdTime"
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "name": "string",
- "description": "string",
- "type": "string",
- "createdTime": 0,
- "lastUpdatedTime": 0
}
], - "nextCursor": "string"
}Calculate aggregates for simulator models, considering the optional filter specification.
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "filter": {
- "simulatorExternalIds": [
- "PROSPER"
], - "externalIdPrefix": "string",
- "dataSetIds": [
- 0
]
}, - "aggregate": "count"
}{- "items": [
- {
- "count": 0
}
]
}Delete a simulator model. This will also delete all associated simulator resources (e.g. revisions, routines, runs).
required | Array of IdRef (object) or ExternalIdRef (object) (Items) A list with a single item |
Successful Response
Forbidden
Internal Server Error
{- "items": [
- {
- "id": 5559452808603919
}
]
}{ }Update a simulator model.
required | Array of objects (Items) A list with a single item |
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "items": [
- {
- "id": 0,
- "update": {
- "name": {
- "set": "string"
}, - "description": {
- "set": "string"
}
}
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "name": "string",
- "description": "string",
- "type": "string",
- "createdTime": 0,
- "lastUpdatedTime": 0
}
]
}Retrieve a simulator model by ID or external ID.
required | Array of IdRef (object) or ExternalIdRef (object) (Items) A list with a single item |
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "items": [
- {
- "id": 5559452808603919
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "name": "string",
- "description": "string",
- "type": "string",
- "createdTime": 0,
- "lastUpdatedTime": 0
}
]
}Create a simulator model revision.
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "items": [
- {
- "externalId": "string",
- "modelExternalId": "string",
- "description": "string",
- "fileId": 0,
- "externalDependencies": [
- {
- "file": {
- "id": 0
}, - "arguments": {
- "property1": "string",
- "property2": "string"
}
}
]
}
], - "deleteOldest": false
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "modelExternalId": "string",
- "description": "string",
- "fileId": 0,
- "createdByUserId": "string",
- "status": "unknown",
- "statusMessage": "string",
- "versionNumber": 0,
- "logId": 0,
- "createdTime": 0,
- "lastUpdatedTime": 0,
- "externalDependencies": [
- {
- "file": {
- "id": 0
}, - "arguments": {
- "property1": "string",
- "property2": "string"
}
}
]
}
]
}Retrieves a list of simulator model revisions that match the given criteria.
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "filter": {
- "modelExternalIds": [
- "model_1",
- "model_2"
], - "simulatorExternalIds": [
- "PROSPER",
- "PetroSIM"
], - "allVersions": false,
- "createdTime": {
- "max": 0,
- "min": 0
}, - "lastUpdatedTime": {
- "max": 0,
- "min": 0
}
}, - "limit": 1000,
- "cursor": "string",
- "sort": [
- {
- "order": "asc",
- "property": "createdTime"
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "modelExternalId": "string",
- "description": "string",
- "fileId": 0,
- "createdByUserId": "string",
- "status": "unknown",
- "statusMessage": "string",
- "versionNumber": 0,
- "logId": 0,
- "createdTime": 0,
- "lastUpdatedTime": 0
}
], - "nextCursor": "string"
}Retrieve one or more simulator model revisions by IDs or external IDs.
required | Array of IdRef (object) or ExternalIdRef (object) (Items) [ 1 .. 100 ] items A list of items |
Successful Response
Bad Request
Forbidden
Internal Server Error
{- "items": [
- {
- "id": 5559452808603919
}
]
}{- "items": [
- {
- "dataSetId": 5559452808603919,
- "id": 0,
- "externalId": "string",
- "simulatorExternalId": "string",
- "modelExternalId": "string",
- "description": "string",
- "fileId": 0,
- "createdByUserId": "string",
- "status": "unknown",
- "statusMessage": "string",
- "versionNumber": 0,
- "logId": 0,
- "createdTime": 0,
- "lastUpdatedTime": 0,
- "externalDependencies": [
- {
- "file": {
- "id": 0
}, - "arguments": {
- "property1": "string",
- "property2": "string"
}
}
]
}
]
}