GoSmarter Logo
GoSmarter API Gateway

OptimisationRuns


List optimisation runs (Preview)

GET
https://api.gosmarter.ai
/api/company/{companyId}/optimisation/runs

Preview: this operation may change or be removed without a new versioned route or notice period until it is announced as stable (see the API Versioning Policy). Lists optimisation runs for the specified company, most recent first, paged.

List optimisation runs (Preview) › path Parameters

companyId
​string · uuid · required

The company GUID.

List optimisation runs (Preview) › query Parameters

offset
​integer · int32

Zero-based row offset for pagination. Example: 0

limit
​integer · int32

Maximum number of rows to return (capped at 200). Example: 50

List optimisation runs (Preview) › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

List optimisation runs (Preview) › Responses

Payload of Array of OptimisationRunDto

runId
​string · uuid
companyId
​string · uuid
status
​integer · int32
filterProfileId
​string · uuid
problemBlobUri
​string
resultBlobUri
​string
errorMessage
​string
groupCount
​integer · int32
requestedBy
​string · uuid
planId
​string · uuid
runName
​string
createdAt
​string · date-time
updatedAt
​string · date-time

Start an optimisation run (Preview)

POST
https://api.gosmarter.ai
/api/company/{companyId}/optimisation/runs

Preview: this operation may change or be removed without a new versioned route or notice period until it is announced as stable (see the API Versioning Policy). Uploads a problem payload as a claim-check blob and dispatches it to the optimisation solver. With PreviewId, dispatches exactly that preview's saved snapshot (Filters/SolverSettings are recorded but not re-applied); otherwise composes a fresh problem from the supplied filters.

Start an optimisation run (Preview) › path Parameters

companyId
​string · uuid · required

The company GUID.

Start an optimisation run (Preview) › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Start an optimisation run (Preview) › Request Body

name
​string
filterProfileId
​string · uuid
​optimisationSettings
excludedGroupKeys
​string[]
previewId
​string · uuid

Start an optimisation run (Preview) › Responses

Payload of CreateOptimisationRunResponse

runId
​string · uuid
groupCount
​integer · int32
unmatchedDemandCount
​integer · int32
excludedGroupCount
​integer · int32

Preview an optimisation run (Preview)

POST
https://api.gosmarter.ai
/api/company/{companyId}/optimisation/runs/preview

Preview: this operation may change or be removed without a new versioned route or notice period until it is announced as stable (see the API Versioning Policy). Composes the problem an optimisation run would dispatch for the supplied filters, saves it as a short-lived preview snapshot, and returns a per-group summary with per-order detail plus the snapshot's PreviewId. Nothing is persisted to the database or dispatched; pass PreviewId to StartOptimisationRun (within 30 minutes) to dispatch exactly this composition. ExcludedGroupKeys is ignored — every composed group is returned.

Preview an optimisation run (Preview) › path Parameters

companyId
​string · uuid · required

The company GUID.

Preview an optimisation run (Preview) › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Preview an optimisation run (Preview) › Request Body

name
​string
filterProfileId
​string · uuid
​optimisationSettings
excludedGroupKeys
​string[]
previewId
​string · uuid

Preview an optimisation run (Preview) › Responses

Payload of OptimisationRunPreview

previewId
​string · uuid
composedAt
​string · date-time
totalGroups
​integer · int32
totalStockBarCount
​integer · int32
totalDemandPieceCount
​integer · int32
​previewExclusionSummary

Get an optimisation run (Preview)

GET
https://api.gosmarter.ai
/api/company/{companyId}/optimisation/runs/{runId}

Preview: this operation may change or be removed without a new versioned route or notice period until it is announced as stable (see the API Versioning Policy). Retrieves a single optimisation run — the polling target while a run is pending.

Get an optimisation run (Preview) › path Parameters

companyId
​string · uuid · required

The company GUID.

runId
​string · uuid · required

The optimisation run GUID.

Get an optimisation run (Preview) › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Get an optimisation run (Preview) › Responses

Payload of OptimisationRunDto

runId
​string · uuid
companyId
​string · uuid
status
​integer · int32
filterProfileId
​string · uuid
problemBlobUri
​string
resultBlobUri
​string
errorMessage
​string
groupCount
​integer · int32
requestedBy
​string · uuid
planId
​string · uuid
runName
​string
createdAt
​string · date-time
updatedAt
​string · date-time

Cancel an optimisation run (Preview)

POST
https://api.gosmarter.ai
/api/company/{companyId}/optimisation/runs/{runId}/cancel

Preview: this operation may change or be removed without a new versioned route or notice period until it is announced as stable (see the API Versioning Policy). Marks a run as cancelled. Rejected with 400 if the run has already reached a terminal or later status (ResultReceived/SolveFailed/Failed/PlanCreated).

Cancel an optimisation run (Preview) › path Parameters

companyId
​string · uuid · required

The company GUID.

runId
​string · uuid · required

The optimisation run GUID.

Cancel an optimisation run (Preview) › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Cancel an optimisation run (Preview) › Responses

No description

No data returned