Get Colors List (GetList)

Return list of colors

Method Url

https://client.livedesignerfusion.com/{username}/Color/GetList?parameters

			    

Parameters

NameTypeDefaultRequiredDescription
ReferenceID string false Color collection referenceID
Format string xml false return the result object in this format. Available formts xml,json,jsonp
StartIndex int 0 false Start index of the resultset.
RecordCount int 9999 false Result set size.



Output / Result

return list of color collections.


Expected Response
{
    "success" : "true",
    "count" : 2,
    "list" : [
        {
            "referenceid" : "0082FF00018",
            "r" : 0,
            "g" : 130,
            "b" : 255,
            "display_name" : ["Light Blue"],
            "default_name" : "Light Blue",
            "supplier_code" : "0001",
            "thread_code" : "8"
        },
        {
            "referenceid" : "E6AFC8",
            "r" : 230,
            "g" : 175,
            "b" : 200,
            "display_name" : ["Swarthy Pink"],
            "default_name" : "Swarthy Pink",
            "supplier_code" : "",
            "thread_code" : ""
        },
    ]
}


Error Response
{
    "success" : "false",
    "error_code" : "MISSING_PARAMETER",
    "error_message" : "Detailed error message"
}

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
countintTotal number of available color collections under your account.
listarray/listList / Array of colors

See object for more details
error_codestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringonly available if failed to execute. This is detailed message for the error.

list

NameTypeDescription
referenceidstringColor unique identifier
rintColor R value
gstringColor G value
bstringColor B value
display_namestringColor display name
default_namestringColor default name
supplier_codestringColor Supplier color. only available for thread colors
thread_codestringColor thread code. only available for thread colors


Expected Response
<Response>
	<Success>true</Success>
	<Count>2</Count>
	<List>
		<Color>
			<ReferenceID>0082FF00018</ReferenceID>
			<R>0</R>
			<G>130</G>
			<B>255</B>
			<DisplayName>Light Blue</DisplayName>
			<DefaultName>Light Blue</DefaultName>
			<SupplierCode>0001</SupplierCode>
			<ThreadCode>8</ThreadCode>
		</Color>
		<Color>
			<ReferenceID>E6AFC8</ReferenceID>
			<R>230</R>
			<G>175</G>
			<B>200</B>
			<DisplayName>Swarthy Pink</DisplayName>
			<DefaultName>Swarthy Pink</DefaultName>
			<SupplierCode />
			<ThreadCode />
		</Color>
	<Color>
</Response>


Error Response
<Response>
	<Success>false</Success>
	<ErrorCode>MISSING_PARAMETER</ErrorCode>
	<ErrorMessage>Detailed error message</ErrorMessage>
</Response>

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
CountintTotal number of available color collections under your account.
Listarray/listList / Array of colors

See object for more details
ErrorCodestringonly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringonly available if failed to execute. This is detailed message for the error.

List

NameTypeDescription
ReferenceIDstringColor unique identifier
RintColor R value
GstringColor G value
BstringColor B value
DisplayNamestringColor display name
DefaultNamestringColor default name
SupplierCodestringColor Supplier color. only available for thread colors
ThreadCodestringColor thread code. only available for thread colors


Add new color (Create)

Create a new color. User must be authentication to perform this activity

Method Url

https://client.livedesignerfusion.com/{username}/Color/Create?parameters

			    

Parameters

NameTypeDefaultRequiredDescription
ReferenceID string true Color collection referenceID.
R int true Color R value
G int true Color G value
B int true Color B value
Name string false Color display name
SupplierCode string false Thread Supplier Code
ThreadCode string true Thread Code
Format string xml false output format. Available formats xml,json,jsonp.



Output / Result

return the result object with the following properties


Expected Response
{
	"success" : "true",
	"referenceid" : "00000000003"
}


Error Response
{
    "success" : "false",
    "error_code" : "MISSING_PARAMETER",
    "error_message" : "Detailed error message"
}

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
referenceidstringReferenceID for the newly created collection.
error_codestringOnly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringOnly available if failed to execute. This is detailed message for the error.


Expected Response
<Response>
	<Success>true</Success>
	<ReferenceID>00000000003</ReferenceID>
</Response>


Error Response
<Response>
	<Success>false</Success>
	<ErrorCode>MISSING_PARAMETER</ErrorCode>
	<ErrorMessage>Detailed error message</ErrorMessage>
</Response>

Properties

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
ReferenceIDstringReferenceID for the newly created collection.
ErrorCodestringOnly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringOnly available if failed to execute. This is detailed message for the error.


Update Color (Update)

update existing color. User must be authentication to perform this activity

Method Url

https://client.livedesignerfusion.com/{username}/Color/Update?parameters

			    

Parameters

NameTypeDefaultRequiredDescription
ReferenceID string true Color collection referenceID.
ColorReferenceID string true Color referenceID, you want to update.
R int true Color R value
G int true Color G value
B int true Color B value
Name string false Color display name
SupplierCode string false Thread Supplier Code
ThreadCode string true Thread Code
Format string xml false output format. Available formats xml,json,jsonp.



Output / Result

return the result object with the following properties


Expected Response
{
    "success" : "true"
}


Error Response
{
    "success" : "false",
    "error_code" : "MISSING_PARAMETER",
    "error_message" : "Detailed error message"
}

Properties

NameTypeDescription
successstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
error_codestringOnly available if failed to execute. This is error identifier. refer to error code list for more details.
error_messagestringOnly available if failed to execute. This is 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

NameTypeDescription
SuccessstringPossible values "true", "false". Return true if successfully executed and return false if failed to execute.
ErrorCodestringOnly available if failed to execute. This is error identifier. refer to error code list for more details.
ErrorMessagestringOnly available if failed to execute. This is detailed message for the error.

Version: 3.6.277.0