PUT 3dCartWebAPI/v1/FrontendScripts/{frontendscriptid}
This method is used to update a single frontend script record in the database. The {frontendscriptid} parameter specifies which frontendscript record to update.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
frontendscriptid |
Frontend Script ID |
integer |
Required |
Body Parameters
A Json or XML object containing the new frontend script
FrontendScriptsName | Description | Type | Additional information |
---|---|---|---|
FrontendScriptID |
Primary key. Auto-incremented. database reference = FrontendScripts.id |
integer |
None. |
Placement |
(BODY | HEAD) database reference = FrontendScripts.placement |
string |
String length: inclusive between 0 and 50 |
Code |
database reference = FrontendScripts.code |
string |
String length: inclusive between 0 and 65535 |
DateCreated |
database reference = FrontendScripts.date_created |
date |
None. |
LastUpdate |
database reference = FrontendScripts.last_update |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "FrontendScriptID": 1, "Placement": "sample string 1", "Code": "sample string 2", "DateCreated": "04/15/2024 08:33", "LastUpdate": "04/15/2024 08:33" }
application/xml, text/xml
Sample:
<FrontendScripts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <FrontendScriptID>1</FrontendScriptID> <Placement>sample string 1</Placement> <Code>sample string 2</Code> <DateCreated>2024-04-15T08:33:23.0569523-04:00</DateCreated> <LastUpdate>2024-04-15T08:33:23.0569523-04:00</LastUpdate> </FrontendScripts>
Sample Request |
|
Response Information
application/json, text/json
Sample:
[ { "Key":"FrontendScriptID", "Value":"1234", "Status":"200", "Message":"updated successfully", } ]
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |