DesignAtomsService
These endpoints are used to manipulate Design Atoms models
ConvertColors
Converts colors
Request
POST /api/atoms/v1/colorConverter[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
tenantId | query | Tenant identifier |
||
body | body |
|
Convert colors operation parameters |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
404 |
|
Not Found |
|
401 | Unauthorized |
||
403 | Forbidden |
CreateDesign
Creates new design file with specified parameters and saves it in storage.
Request
POST /api/atoms/v1/designs[?privateStorage&privateStorageOwner&tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
privateStorage | query | If set to 'true' design will be saved to private storage |
||
privateStorageOwner | query | Private storage owner identifier |
||
tenantId | query | Tenant identifier |
||
body | body |
|
Design creation parameters |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
201 |
|
Success |
|
401 | Unauthorized |
||
403 | Forbidden |
LoadProduct
Loads product (design model) from design file taken from storage
If privateStorage is not set then special design search procedure activated. It tries to get specified design from public storage, and if design is not found then checks private storage
Request
GET /api/atoms/v1/designs/{id}/model[?privateStorage&privateStorageOwner&tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
privateStorage | query | If set to 'true' design will be taken from private storage |
||
privateStorageOwner | query | Private storage owner identifier |
||
tenantId | query | Tenant identifier |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
404 |
|
Not Found |
|
401 | Unauthorized |
||
403 | Forbidden |
SaveProduct
Saves product (design model) to design file and updates design in storage.
Design with specified identifier must exist at desired storage. If 'privateStorage' parameter is not set, then special design search procedure activated. It tries to find design with specified identifier in public storage, and if it is not there, then checks private storage If design found anywhere, it will be updated
Request
PUT /api/atoms/v1/designs/{id}/model[?privateStorage&privateStorageOwner&tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
privateStorage | query | If set to 'true' design will be saved to private storage |
||
privateStorageOwner | query | Private storage owner identifier |
||
tenantId | query | Tenant identifier |
||
body | body | Serialized product description |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
404 |
|
Not Found |
|
401 | Unauthorized |
||
403 | Forbidden |
PatchProduct
Patches product (design model) in design file
Design with specified identifier must exist at desired storage.
Request
PATCH /api/atoms/v1/designs/{id}/model[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
tenantId | query | Tenant identifier |
||
patchType | formData | Patch operation type |
||
replaceImageItemFileInfo.itemName | formData | Item Name |
||
replaceImageItemFileInfo.sourceFile | formData | Patch source file |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
404 |
|
Not Found |
|
401 | Unauthorized |
||
403 | Forbidden |
LoadDataSchema
Loads data schema from design file taken from storage
Request
GET /api/atoms/v1/designs/{id}/schema[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
tenantId | query | Tenant identifier |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | string | Success |
|
404 |
|
Not Found |
|
409 |
|
Conflict |
|
401 | Unauthorized |
||
403 | Forbidden |
GetVariables
Gets variable items information for design file taken from storage
Request
GET /api/atoms/v1/designs/{id}/variables[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
tenantId | query | Tenant identifier |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 |
|
Success |
|
404 |
|
Not Found |
|
401 | Unauthorized |
||
403 | Forbidden |
SetVariables
Sets variable items values for design file taken from storage
Request
PUT /api/atoms/v1/designs/{id}/variables[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
tenantId | query | Tenant identifier |
||
body | body |
|
Design variable values |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 |
|
Success |
|
404 |
|
Not Found |
|
409 |
|
Conflict |
|
401 | Unauthorized |
||
403 | Forbidden |
LoadVdpData
Loads variable data printing information from design file taken from storage
Request
GET /api/atoms/v1/designs/{id}/vdpData[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
tenantId | query | Tenant identifier |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 |
|
Success |
|
404 |
|
Not Found |
|
409 |
|
Conflict |
|
401 | Unauthorized |
||
403 | Forbidden |
SaveVdpData
Saves variable data printing information to design file and updates design in storage.
Design with specified identifier must exist at desired storage.
Request
PUT /api/atoms/v1/designs/{id}/vdpData[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
tenantId | query | Tenant identifier |
||
body | body |
|
Serialized vdp data |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
404 |
|
Not Found |
|
401 | Unauthorized |
||
403 | Forbidden |
DeleteVdpData
Deletes variable data printing inforamtion from design file and updates design in storage.
Design with specified identifier must exist at desired storage.
Request
DELETE /api/atoms/v1/designs/{id}/vdpData[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
*id | path | Design identifier |
||
tenantId | query | Tenant identifier |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
409 |
|
Conflict |
|
401 | Unauthorized |
||
403 | Forbidden |
FlattenItems
Flatten items
Request
POST /api/atoms/v1/flatten[?tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
tenantId | query | Tenant identifier |
||
body | body | array | Items to flatten |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
401 | Unauthorized |
||
403 | Forbidden |
CreateItem
Creates product item
Request
POST /api/atoms/v1/itemCreator[?itemType&tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
itemType | query | Desired item type |
||
tenantId | query | Tenant identifier |
||
sourceType | formData | Source type |
||
sourceId | formData | Source id, used if source type is 'ImageStorage' or 'PrivateImageStorage' |
||
sourceOwnerId | formData | Source owner id, used if source type is 'PrivateImageStorage' |
||
sourceFile | formData | Source file, used if source type is 'File' |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | Success |
||
404 |
|
Not Found |
|
401 | Unauthorized |
||
403 | Forbidden |
RenderProduct
Render product proof image with specified parameters.
Request
POST /api/atoms/v1/renderer[?attachment&tenantId]
Parameters
Name | In | Type | Default | Notes |
---|---|---|---|---|
attachment | query | If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false') |
||
tenantId | query | Tenant identifier |
||
body | body |
|
Preview parameters |
Responses
Status Code | Type | Description | Samples |
---|---|---|---|
200 | string | Success |
|
401 | Unauthorized |
||
403 | Forbidden |
Definitions
ConvertColorsModel
Convert colors operation parameters
Name | Type | Notes |
---|---|---|
colors | array | Serialized color description |
sourceColorProfile | string | Source color profile description |
destinationColorProfile | string | Destination color profile description |
targetDeviceColorProfile | string | Targent color profile description |
ProblemDetails
These endpoints are used to manipulate Design Atoms models
Name | Type | Notes |
---|---|---|
type | string | |
title | string | |
status | integer (int32) | |
detail | string | |
instance | string |
CreateDesignModel
Design creation parameters
Name | Type | Notes |
---|---|---|
product | Serialized product description |
|
dataSchema | string | Serialized product data schema (base64 file stream) |
name | string | Design name |
path | string | Design location (folder path) |
DesignInfo
These endpoints are used to manipulate Design Atoms models
Name | Type | Notes |
---|---|---|
id | string | |
ownerId | string | |
name | string | |
private | boolean |
VariablesModel
Variables information
Name | Type | Notes |
---|---|---|
items |
|
List of variables |
VariableInfo
List of variables
Name | Type | Notes |
---|---|---|
name | string | Variable name |
value | string | Variable value |
type | string | Variable type |
VdpDataModel
Variable data printing information
Name | Type | Notes |
---|---|---|
vdpDataSet | Serialized vdp dataset |
|
vdpItemsData | Serialized vdp items data |
RenderProductModel
Preview parameters
Name | Type | Notes |
---|---|---|
product | Serialized product description |
|
renderingConfig | Proof Image rendering config |