Get Styles List (GetList)
Get List of styles
Method Url
https://client.livedesignerfusion.com/{username}/Styles/GetList?parameterlist
Parameters
Name | Type | Default | Required | Description |
DefaultStyle |
boolean |
false |
false |
This parameter determines if response will contain the Melco provided style files. |
Format |
string |
xml |
false |
Output format. Available format's: XML, json, jsonp |
Returns the list of Styles in the requested format.
Expected Response |
---|
{
"success": "true",
"count": 2,
"list": [
{
"referenceid": "CustomFabricStyle",
"name": "CustomFabricStyle",
"file_name": "CustomFabricStyle.ST3",
"default_style": "false"
},
{
"referenceid": "Fleece",
"name": "Fleece (Melco)",
"file_name": "Fleece.fabric.ST3",
"default_style": "true"
}
]
} |
Error Response |
---|
{
"success" : "false",
"error_code" : "MISSING_PARAMETER",
"error_message" : "Detailed error message"
} |
Properties
Name | Type | Description |
---|
success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed to execute. |
count | int | The total number of styles avilable (after applicable filters). |
list | array/list | Array / List of styles.
See object for more details |
error_code | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
error_message | string | Only available if the call failed to execute. This is a detailed message for the error. |
list
Name | Type | Description |
---|
referenceid | string | This is the unique identifier for the style and required in all other API calls to download or apply style files to output files. |
name | string | Name of the style. |
file_name | string | Style File Name. (i.e. Cotton.st3, Lightweight.st3) |
default_style | boolean | Possible values "true", "false". Will return true if this is a default style (Melco provided).
Will return false if this is the customer's own uploaded file.
|
Expected Response |
---|
<Response>
<Success>true</Success>
<Count>2</Count>
<List>
<Style>
<ReferenceID>CustomFabricStyle</ReferenceID>
<Name>CustomFabricStyle</Name>
<FileName>CustomFabricStyle.ST3</FileName>
<DefaultStyle>false</DefaultStyle>
</Style>
<Style>
<ReferenceID>Fleece</ReferenceID>
<Name>Fleece (Melco)</Name>
<FileName>Fleece.fabric.ST3</FileName>
<DefaultStyle>true</DefaultStyle>
</Style>
</List>
</Response> |
Error Response |
---|
<Response>
<Success>false</Success>
<ErrorCode>MISSING_PARAMETER</ErrorCode>
<ErrorMessage>Detailed error message</ErrorMessage>
</Response> |
Properties
Name | Type | Description |
---|
Success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed to execute. |
Count | int | The total number of styles avilable (after applicable filters). |
List | array/list | Array / List of styles.
See object for more details |
ErrorCode | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
ErrorMessage | string | Only available if the call failed to execute. This is a detailed message for the error. |
List
Name | Type | Description |
---|
ReferenceID | string | This is the unique identifier for the style and required in all other API calls to download or apply style files to output files. |
Name | string | Name of the style. |
FileName | string | Style File Name. (i.e. Cotton.st3, Lightweight.st3) |
DefaultStyle | boolean | Possible values "true", "false". Will return true if this is a default style (Melco provided).
Will return false if this is the customer's own uploaded file.
|
Import the posted file as style.
Method Url
https://client.livedesignerfusion.com/{username}/Styles/Upload
Parameters
Name | Type | Default | Required | Description |
ReferenceID |
string |
|
true/false |
This is the unique identifer for the uploaded style. It's required if you are updating existing style file and
optional if you are uplaoding as new style i.e. you can assign your own identifer in new style upload.
If value of this parameter isn't provided then application will automatically assign unique identifier.
|
Update |
boolean |
false/0 |
false |
This parameter determines the behaviour of upload process (new vs. update)
|
Name |
string |
|
false |
Name of the Style. Default value will be the file name without file extension.
|
Upload / update the posted file as a Style file.
Expected Response |
---|
{
"success": "true"
} |
Error Response |
---|
{
"success" : "false",
"error_code" : "MISSING_PARAMETER",
"error_message" : "Detailed error message"
} |
Properties
Name | Type | Description |
---|
success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed
to execute. |
error_code | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
error_message | string | Only available if the call failed to execute. This is a detailed message for the error. |
Expected Response |
---|
<Response>
<Success>true</Success>
</Response> |
Error Response |
---|
<Response>
<Success>false</Success>
<ErrorCode>MISSING_PARAMETER</ErrorCode>
<ErrorMessage>Detailed error message</ErrorMessage>
</Response> |
Properties
Name | Type | Description |
---|
Success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed
to execute. |
ErrorCode | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
ErrorMessage | string | Only available if the call failed to execute. This is a detailed message for the error. |
Removes the selected style.
Method Url
https://client.livedesignerfusion.com/{username}/Styles/Delete?parameterlist
Parameters
Name | Type | Default | Required | Description |
ReferenceID |
string |
|
true |
The unique identifier, representing the Style you want to delete. |
Format |
string |
xml |
false |
Output format (xml, json, jsonp). |
Expected Response |
---|
{
"success": "true"
} |
Error Response |
---|
{
"success" : "false",
"error_code" : "MISSING_PARAMETER",
"error_message" : "Detailed error message"
} |
Properties
Name | Type | Description |
---|
success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed to execute. |
error_code | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
error_message | string | Only available if the call failed to execute. This is a detailed message for the error. |
Expected Response |
---|
<Response>
<Success>true</Success>
</Response> |
Error Response |
---|
<Response>
<Success>false</Success>
<ErrorCode>MISSING_PARAMETER</ErrorCode>
<ErrorMessage>Detailed error message</ErrorMessage>
</Response> |
Properties
Name | Type | Description |
---|
Success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed to execute. |
ErrorCode | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
ErrorMessage | string | Only available if the call failed to execute. This is a detailed message for the error. |
Returns the Design file.
Method Url
https://client.livedesignerfusion.com/{username}/Styles/GetFile?parameterlist
Parameters
Name | Type | Default | Required | Description |
ReferenceID |
string |
|
true |
The unique identifier, representing the Style you want to download. |
Default |
boolean |
false |
false |
This parameter determines if you are trying to download the style from your account or Melco provided styles.
If true, the default (Melco provided) Style file will be returned. If false, your own uploaded Style file will be returned. |
Returns the requested Style file.
Get Style Info (GetDefinition)
Returns style file metadata.
Method Url
https://client.livedesignerfusion.com/{username}/Styles/GetDefinition?parameterlist
Parameters
Name | Type | Default | Required | Description |
ReferenceID |
string |
|
true |
The unique identifier of the style. |
Returns the requested Style file metadata.
Expected Response |
---|
{
"success": "true",
"definition": {
"referenceid": "S000011",
"name": "CustomK.FABRIC",
"file_name": "CustomK.FABRIC.ST3",
"default_style": "false",
"blanks": []
}
} |
Error Response |
---|
{
"success" : "false",
"error_code" : "MISSING_PARAMETER",
"error_message" : "Detailed error message"
} |
Properties
Name | Type | Description |
---|
success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed to execute. |
definition | object | object with style properties.
See object for more details |
error_code | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
error_message | string | Only available if the call failed to execute. This is a detailed message for the error. |
definition
Name | Type | Description |
---|
referenceid | string | The unique identifier of the style. |
name | string | The name of the style. |
file_name | string | The file name of the style. |
default_style | boolean | This is Melco provided style or not. |
blanks | list/object | List of associated blanks |
Expected Response |
---|
<Response>
<Success>true</Success>
<Definition>
<ReferenceID>S000011</ReferenceID>
<Name>CustomK.FABRIC</Name>
<FileName>CustomK.FABRIC.ST3</FileName>
<DefaultStyle>false</DefaultStyle>
<Blanks />
</Definition>
</Response> |
Error Response |
---|
<Response>
<Success>false</Success>
<ErrorCode>MISSING_PARAMETER</ErrorCode>
<ErrorMessage>Detailed error message</ErrorMessage>
</Response> |
Properties
Name | Type | Description |
---|
Success | string | Possible values "true", "false". Will return true if the call successfully executed and will return false if the call failed to execute. |
Definition | object | object with style properties.
See object for more details |
ErrorCode | string | Only available if the call failed to execute. This is the error identifier. Please refer to error code list for more details. |
ErrorMessage | string | Only available if the call failed to execute. This is a detailed message for the error. |
Definition
Name | Type | Description |
---|
ReferenceID | string | The unique identifier of the style. |
Name | string | The name of the style. |
FileName | string | The file name of the style. |
DefaultStyle | boolean | This is Melco provided style or not. |
Blanks | list/object | List of associated blanks |