Skip to main content

MGCBallastVersionService.withdrawVersion

Withdraws an approved version before it takes effect, as the version form's Withdraw button does: only a Planned version (Approved, From date ahead, never published), and Reason is required. The version becomes Withdrawn and is never published. Not gated by the license, as the button is not: it only stops a change.

  • HTTP method: POST
  • Route: /api/services/MGCBallastServiceGroup/MGCBallastVersionService/withdrawVersion
  • Service class: MGCBallastVersionService

Parameters​

NameTypeOptionalDescription
_requestMGCBallastVersionRequestContractNoBundle, LegalEntityId (per-company bundles), VersionRecId and Reason; ReasonCode, required once codes are set up for Withdraw, and TicketReference.

Returns​

MGCBallastVersionResponseContract

The version after it is withdrawn.

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.

MGCBallastVersionRequestContract​

Request for an operation on one Ballast parameter version: create, read, activate, restore or delete. Bundle selects the version table. Accounts receivable (Cust) versions belong to a legal entity, so LegalEntityId names the company to act in; it is ignored for the global System bundle.

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: System or Cust.
LegalEntityIdDataAreaIdNoGets or sets the company for a Cust version. Blank uses the caller's current company.
VersionRecIdRefRecIdNoGets or sets the version to act on. Not used by createVersion.
NameNameNoGets or sets the name of a new version.
DescriptionstrNoGets or sets why a new version exists.
FromDatedateNoGets or sets the first effective date of a new version. Blank keeps the default (today).
ToDatedateNoGets or sets the last effective date of a new version. Blank keeps the default (open ended).
ReasonstrNoGets or sets the reason recorded on a restore.
ReasonCodestrNoGets or sets the reason code recorded on a withdrawal; required once codes are set up for Withdraw.
TicketReferencestrNoGets or sets the ticket reference recorded on a withdrawal, if any.

MGCBallastVersionResponseContract​

Response describing one Ballast parameter version after an operation: the version the operation created, read, activated or restored - or, for deleteVersion, the version that was deleted.

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.
BundleMGCBallastBundleNoGets or sets the bundle the version belongs to.
LegalEntityIdDataAreaIdNoGets or sets the company a Cust version belongs to; blank for System.
VersionRecIdRefRecIdNoGets or sets the version record.
NamestrNoGets or sets the version name.
DescriptionstrNoGets or sets why the version exists.
VersionIdstrNoGets or sets the version number, for example 1.4.1.0.
StatusMGCBallastParameterStatusNoGets or sets the lifecycle status: Draft or Active.
EffectiveStateMGCBallastVersionEffectiveStateNoGets or sets where the version stands on its effective-date window today.
FromDatedateNoGets or sets the first effective date.
ToDatedateNoGets or sets the last effective date.
SequenceNumberint64NoGets or sets the creation order of the version within its bundle.
RestoredFromRecIdRefRecIdNoGets or sets the version this one was restored from; zero when it was not restored.