Update Catalog

REST

Request

https://api.neoncrm.com/neonws/services/api/store/updateCatalog?userSessionId=[session id]&catalog.name=Computer parts&catalog.code=Comp&catalog.description=CPU,RAM,Hard drives,etc&catalog.displaySequence=3&catalog.catalogId=29

Response

{
    "UpdateCatalogResponse": {
        "operationResult": "SUCCESS",
        "responseMessage": "Catalog updated.",
        "responseDateTime": "2013-02-17T17:04:54.690-06:00"
    }
}

SOAP

Request

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:neon="http://www.z2systems.com/schemas/neonws/">
   <soapenv:header>
       <soapenv:body>
          <neon:updatecatalogrequest>
              <usersessionid>T1361844704954</usersessionid>
             <catalog>
                <catalogid>34</catalogid>
                <code>Comp</code>
                <name>Computer parts</name>
                <description>CPU,RAM,Hard drives,etc</description>
                <displaysequence>3</displaysequence>
             </catalog>
          </neon:updatecatalogrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:updatecatalogresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsemessage>Catalog updated.</responsemessage>
         <responsedatetime>2013-02-25T20:15:03.506-06:00</responsedatetime>
      </ns2:updatecatalogresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
catalog.catalogId Yes Catalog ID
catalog.name Yes Name of the catalog.
catalog.code Catalog code.
catalog.description Description of the catalog
catalog.displaySequence Display sequence number

Error Codes

Code Text Description
12001 Catalog name is required.
12002 Catalog id is required.
12003 Catalog id is invalid.