PUT 3dCartWebAPI/v1/FrontendScripts


This method is used to update multiple frontend scripts in the database. No URL parameters should be included.

Request Information

URI Parameters

None.

Body Parameters

A Json or XML object containing the new frontendscripts

Collection of FrontendScripts
NameDescriptionTypeAdditional 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": "08/17/2019 16:32",
    "LastUpdate": "08/17/2019 16:32"
  },
  {
    "FrontendScriptID": 1,
    "Placement": "sample string 1",
    "Code": "sample string 2",
    "DateCreated": "08/17/2019 16:32",
    "LastUpdate": "08/17/2019 16:32"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFrontendScripts xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <FrontendScripts>
    <FrontendScriptID>1</FrontendScriptID>
    <Placement>sample string 1</Placement>
    <Code>sample string 2</Code>
    <DateCreated>2019-08-17T16:32:20.0500177-04:00</DateCreated>
    <LastUpdate>2019-08-17T16:32:20.0500177-04:00</LastUpdate>
  </FrontendScripts>
  <FrontendScripts>
    <FrontendScriptID>1</FrontendScriptID>
    <Placement>sample string 1</Placement>
    <Code>sample string 2</Code>
    <DateCreated>2019-08-17T16:32:20.0500177-04:00</DateCreated>
    <LastUpdate>2019-08-17T16:32:20.0500177-04:00</LastUpdate>
  </FrontendScripts>
</ArrayOfFrontendScripts>

Sample Request



Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.