MGCBallastVersionService.deleteVersion
Deletes a version and its stored values, subject to the same rule as the form: an Active version cannot be deleted. Lets a test clean up the Drafts it created.
- HTTP method:
POST - Route:
/api/services/MGCBallastServiceGroup/MGCBallastVersionService/deleteVersion - Service class:
MGCBallastVersionService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCBallastVersionRequestContract | No | Bundle, LegalEntityId (per-company bundles) and VersionRecId. |
Returns
MGCBallastVersionResponseContract
The version as it was before it was deleted.
Security
- Requires privilege
MGCBallastIntegrationServiceMaintain
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.
| Member | Type | List | Description |
|---|---|---|---|
RequestId | Guid | No | Gets or sets the caller's request identifier; echoed on the response. |
CorrelationId | Guid | No | Gets or sets the identifier that ties this call to others in the same test or integration run. |
Bundle | MGCBallastBundle | No | Gets or sets the bundle: System or Cust. |
LegalEntityId | DataAreaId | No | Gets or sets the company for a Cust version. Blank uses the caller's current company. |
VersionRecId | RefRecId | No | Gets or sets the version to act on. Not used by createVersion. |
Name | Name | No | Gets or sets the name of a new version. |
Description | str | No | Gets or sets why a new version exists. |
FromDate | date | No | Gets or sets the first effective date of a new version. Blank keeps the default (today). |
ToDate | date | No | Gets or sets the last effective date of a new version. Blank keeps the default (open ended). |
Reason | str | No | Gets or sets the reason recorded on a restore. |
ReasonCode | str | No | Gets or sets the reason code recorded on a withdrawal; required once codes are set up for Withdraw. |
TicketReference | str | No | Gets 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.
| Member | Type | List | Description |
|---|---|---|---|
Success | boolean | No | Gets or sets whether the operation completed. False means Message and ErrorCode say why. |
Message | str | No | Gets or sets the outcome in words, including any validation messages the operation raised. |
ErrorCode | str | No | Gets or sets a machine-readable failure class: ValidationFailed, NotFound, LicenseNotValid, PublishNotComplete or Failed. Empty on success. |
RequestId | Guid | No | Gets or sets the caller's request identifier; echoed on the response. |
CorrelationId | Guid | No | Gets or sets the identifier that ties this call to others in the same test or integration run. |
Bundle | MGCBallastBundle | No | Gets or sets the bundle the version belongs to. |
LegalEntityId | DataAreaId | No | Gets or sets the company a Cust version belongs to; blank for System. |
VersionRecId | RefRecId | No | Gets or sets the version record. |
Name | str | No | Gets or sets the version name. |
Description | str | No | Gets or sets why the version exists. |
VersionId | str | No | Gets or sets the version number, for example 1.4.1.0. |
Status | MGCBallastParameterStatus | No | Gets or sets the lifecycle status: Draft or Active. |
EffectiveState | MGCBallastVersionEffectiveState | No | Gets or sets where the version stands on its effective-date window today. |
FromDate | date | No | Gets or sets the first effective date. |
ToDate | date | No | Gets or sets the last effective date. |
SequenceNumber | int64 | No | Gets or sets the creation order of the version within its bundle. |
RestoredFromRecId | RefRecId | No | Gets or sets the version this one was restored from; zero when it was not restored. |