Unapplies all changes made to the draft guide since the last publish.

Example

Use a bare-bones client and the command you need to make an API call.

import { GuidesClient, RevertGuideCommand } from "@stedi/sdk-client-guides"; // ES Modules import
// const { GuidesClient, RevertGuideCommand } = require("@stedi/sdk-client-guides"); // CommonJS import
const client = new GuidesClient(config);
const input = { // RevertGuideInput
id: "STRING_VALUE", // required
outputFormat: "default" || "schema",
};
const command = new RevertGuideCommand(input);
const response = await client.send(command);
// { // RevertGuideOutput
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// visibility: "external" || "internal", // required
// lockStatus: "unlocked" || "locked",
// lockedBy: "STRING_VALUE",
// target: { // GuideTarget
// standard: "x12" || "edifact", // required
// release: "STRING_VALUE",
// transactionSet: "STRING_VALUE",
// hipaaTransactionSetSuffix: "STRING_VALUE",
// version: "STRING_VALUE",
// messageType: "STRING_VALUE",
// },
// definition: "DOCUMENT_VALUE", // required
// unpublishedChanges: true || false, // required
// createdAt: new Date("TIMESTAMP"), // required
// updatedAt: new Date("TIMESTAMP"), // required
// publishedAt: new Date("TIMESTAMP"), // required
// shareEnabled: true || false, // required
// shareId: "STRING_VALUE",
// sourceGuide: "STRING_VALUE",
// networkSettings: { // GuideNetworkSettings
// isVisibleInNetwork: true || false, // required
// managedBy: "stedi" || "customer", // required
// direction: "INBOUND" || "OUTBOUND" || "BOTH",
// group: "STRING_VALUE",
// isa: { // ISA
// id: "STRING_VALUE",
// qualifier: "STRING_VALUE",
// },
// gs: { // GS
// id: "STRING_VALUE",
// },
// },
// managedBy: "stedi" || "customer",
// };

Param

RevertGuideCommandInput

Returns

RevertGuideCommandOutput

See

Throws

InternalFailureException (server fault) The server response when an unexpected error occurred while processing request.

Throws

ThrottlingException (client fault) The server response when usage plan or account-level throttling limits exceeded.

Throws

ValidationException (client fault) A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.

Throws

AccessDeniedException (client fault) The server response for authorization failure.

Throws

UnauthorizedException (client fault) The server response when the authorizer failed to authenticate the caller.

Throws

ResourceConflictException (client fault) The server could not process the request because of conflict in the current state of the resource.

Throws

ResourceLockedException (client fault) The server response when the resource is locked and no updates are allowed.

Throws

BadRequestException (client fault) The server cannot process the request due to an apparent client error.

Throws

ResourceNotFoundException (client fault) The server response when the specified resource cannot be found after an API request passes authentication and authorization.

Throws

GuidesServiceException

Base exception class for all service exceptions from Guides service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions