This section describes an obsolete packaging solution. We recommend using 3D mockups for packaging, which are integrated into the Customer's Canvas cloud.
SaveProject
- Less than a minute to read
The ~/api/Origami/SaveProject endpoint saves a JSON file on your server and returns its unique ID. You can save your packaging project with all the settings for further editing.
Request type
[POST]
URL
~/api/Origami/SaveProject
Request Payload
You can pass data in the following format in this POST request.
{
"DieCutModelId":"ECMA_A20.21.03.01",
"DieCutModelParams":{
"L":50,
"W":30,
"H":60
},
"DieCutTemplate":[
{
"Name":"",
"Mockup":"origami/a4ufmjb3.skt",
"Template":"5b1flwr1.akk",
"Model3D":"tvrwzxn0.vfq",
"Width":2155,
"Height":2309,
"Dpi":300,
"Animation":null,
"Position":null
}
],
"StateId":"67129ad4-af22-494e-aafc-22b1f64f3bdf"
}
Note
This project data allows you to recreate the saved project and return to product editing.
The StateId property is a unique ID of graphic design edited in the Design Editor.
Example call
$.ajax({
type: "POST",
url: appUrl + "api/Origami/SaveProject",
dataType: 'json',
data: JSON.stringify(projectData),
contentType: "application/json; charset=utf-8",
success: function (data, textStatus, jqXHR) {
window.prompt("Project id of the saved project: ", data);
}
});
Success response
Status Code: 200 OK
Content: ftpdkb25.4uo