Skip to main content

Interface: ISaveProductResult

A structure used by (Editor:class).saveProduct to store a return value.

Example

const savingResult = await editor.saveProduct("mug");

// When the product has been saved correctly, get the promise properties through ISaveProductResult.
let userId = savingResult.userId;
let stateId = savingResult.stateId;
let returnToEditUrl = savingResult.returnToEditUrl;
console.log("User " + userId + " successfully saved state " + stateId);

Properties

stateId

stateId: string

A product state identifier


userId

userId: string

The identifier of the user who currently works with the editor. Note that you can not use custom file names for saving states, working under the default user or the master user.


returnToEditUrl

returnToEditUrl: string

A return-to-edit URL. This property is provided for backward compatibility only; it utilizes the old API based on query string.

Was this page helpful?