Skip to main content

MGCBallastPublishService.schedulePublish

Schedules one run of the publish engine as a batch job, to start at or after the request's StartDateTime (UTC; empty means now), and returns the job. The run itself is the same one the engine makes on its schedule: when it executes it records the job and its scheduled start on the publish run (BallastPublishRuns: BatchJobId, ScheduledDateTime, StartedUtcMs, FinishedUtcMs), so a caller can read how long after its scheduled start the run began and how long it took.

  • HTTP method: POST
  • Route: /api/services/MGCBallastServiceGroup/MGCBallastPublishService/schedulePublish
  • Service class: MGCBallastPublishService

Parameters​

NameTypeOptionalDescription
_requestMGCBallastPublishRequestContractNoBundle (None publishes every bundle), Force and StartDateTime.

Returns​

MGCBallastPublishResponseContract

The batch job and its scheduled start date/time.

Security​

  • Requires privilege MGCBallastIntegrationServiceGoLive

Data contracts​

The data contracts this operation takes and returns, with their members. A member whose type is another data contract links to that contract below.

MGCBallastPublishRequestContract​

Request to publish the effective Ballast parameter versions now - the same run the publish engine makes on its schedule. A per-company bundle is published in every company, as the engine does.

MemberTypeListDescription
RequestIdGuidNoGets or sets the caller's request identifier; echoed on the response.
CorrelationIdGuidNoGets or sets the identifier that ties this call to others in the same test or integration run.
BundleMGCBallastBundleNoGets or sets the bundle to publish. None publishes every bundle.
ForcebooleanNoGets or sets whether to republish even where the applied version already matches.
StartDateTimeutcdatetimeNoGets or sets when a scheduled run may start, in UTC (schedulePublish only); empty means now.

MGCBallastPublishResponseContract​

Response for a publish: the publish run it created, the run's outcome, and how many lines and execution exceptions it recorded. The run itself, with its lines and exceptions, is readable through the BallastPublishRuns, BallastPublishRunLines and BallastExecutionExceptions data entities.

MemberTypeListDescription
SuccessbooleanNoGets or sets whether the operation completed. False means Message and ErrorCode say why.
MessagestrNoGets or sets the outcome in words, including any validation messages the operation raised.
ErrorCodestrNoGets or sets a machine-readable failure class: ValidationFailed, NotFound, LicenseNotValid, PublishNotComplete or Failed. Empty on success.
RequestIdGuidNoGets or sets the caller's request identifier; echoed on the response.
CorrelationIdGuidNoGets or sets the identifier that ties this call to others in the same test or integration run.
PublishRunRecIdRefRecIdNoGets or sets the publish run the call created; zero if none was created.
OutcomeMGCBallastPublishRunOutcomeNoGets or sets the publish run outcome.
LineCountintNoGets or sets the number of run lines recorded.
FailedLineCountintNoGets or sets the number of run lines that failed.
ExceptionCountintNoGets or sets the number of execution exceptions recorded.
BatchJobIdRefRecIdNoGets or sets the batch job a schedulePublish call created; zero for publishNow.
ScheduledDateTimeutcdatetimeNoGets or sets the batch job's scheduled start date/time (UTC), as the batch framework stored it.