PUT 3dCartWebAPI/v1/CRM/{id}


This method is used to update a single CRM record in the database. The {id} parameter specifies which CRM record to update.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Crm ID

integer

Required

Body Parameters

A Json or XML object containing the new product

CRM
NameDescriptionTypeAdditional information
CrmID

Primary key. Auto-incremented. database reference = CRM.id

integer

None.

DateOpened

database reference = CRM.datentime

date

None.

DateLastAction

database reference = CRM.lastactiondatentime

date

None.

Subject

database reference = CRM.subject

string

String length: inclusive between 0 and 50

DepartmentID

database reference = CRM.departmentid

integer

None.

StatusID

database reference = CRM.status

integer

None.

CustomerName

database reference = CRM.customer

string

String length: inclusive between 0 and 255

CustomerEmail

database reference = CRM.custemail

string

Required

String length: inclusive between 0 and 100

CustomerPhone

database reference = CRM.phone

string

String length: inclusive between 0 and 50

CustomerIpAddress

database reference = CRM.custip

string

String length: inclusive between 0 and 50

OrderID

database reference = CRM.orderid

integer

None.

CustomerID

database reference = CRM.custid

integer

None.

ProductId

database reference = CRM.productid

integer

None.

CrmMessageList

Collection of CrmMessage

None.

Request Formats

application/json, text/json

Sample:
{
  "CrmID": 1,
  "DateOpened": "10/16/2019 07:54",
  "DateLastAction": "10/16/2019 07:54",
  "Subject": "sample string 1",
  "DepartmentID": 1,
  "StatusID": 1,
  "CustomerName": "sample string 2",
  "CustomerEmail": "sample string 3",
  "CustomerPhone": "sample string 4",
  "CustomerIpAddress": "sample string 5",
  "OrderID": 1,
  "CustomerID": 1,
  "ProductId": 1,
  "CrmMessageList": [
    {
      "MessageId": 1,
      "DateCreated": "10/16/2019 07:54",
      "Message": "sample string 1",
      "Sender": 1,
      "SenderName": "sample string 2",
      "SenderEmail": "sample string 3",
      "CustomerIPAddress": "sample string 4",
      "CrmFileList": [
        {
          "FileId": 1,
          "FileName": "sample string 1",
          "DateCreated": "10/16/2019 07:54",
          "IsAdminUploaded": true
        },
        {
          "FileId": 1,
          "FileName": "sample string 1",
          "DateCreated": "10/16/2019 07:54",
          "IsAdminUploaded": true
        }
      ]
    },
    {
      "MessageId": 1,
      "DateCreated": "10/16/2019 07:54",
      "Message": "sample string 1",
      "Sender": 1,
      "SenderName": "sample string 2",
      "SenderEmail": "sample string 3",
      "CustomerIPAddress": "sample string 4",
      "CrmFileList": [
        {
          "FileId": 1,
          "FileName": "sample string 1",
          "DateCreated": "10/16/2019 07:54",
          "IsAdminUploaded": true
        },
        {
          "FileId": 1,
          "FileName": "sample string 1",
          "DateCreated": "10/16/2019 07:54",
          "IsAdminUploaded": true
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<CRM xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CrmID>1</CrmID>
  <CrmMessageList>
    <CrmMessage>
      <CrmFileList>
        <CrmFile>
          <DateCreated>2019-10-16T07:54:54.6706708-04:00</DateCreated>
          <FileId>1</FileId>
          <FileName>sample string 1</FileName>
          <IsAdminUploaded>true</IsAdminUploaded>
        </CrmFile>
        <CrmFile>
          <DateCreated>2019-10-16T07:54:54.6706708-04:00</DateCreated>
          <FileId>1</FileId>
          <FileName>sample string 1</FileName>
          <IsAdminUploaded>true</IsAdminUploaded>
        </CrmFile>
      </CrmFileList>
      <CustomerIPAddress>sample string 4</CustomerIPAddress>
      <DateCreated>2019-10-16T07:54:54.6706708-04:00</DateCreated>
      <Message>sample string 1</Message>
      <MessageId>1</MessageId>
      <Sender>1</Sender>
      <SenderEmail>sample string 3</SenderEmail>
      <SenderName>sample string 2</SenderName>
    </CrmMessage>
    <CrmMessage>
      <CrmFileList>
        <CrmFile>
          <DateCreated>2019-10-16T07:54:54.6706708-04:00</DateCreated>
          <FileId>1</FileId>
          <FileName>sample string 1</FileName>
          <IsAdminUploaded>true</IsAdminUploaded>
        </CrmFile>
        <CrmFile>
          <DateCreated>2019-10-16T07:54:54.6706708-04:00</DateCreated>
          <FileId>1</FileId>
          <FileName>sample string 1</FileName>
          <IsAdminUploaded>true</IsAdminUploaded>
        </CrmFile>
      </CrmFileList>
      <CustomerIPAddress>sample string 4</CustomerIPAddress>
      <DateCreated>2019-10-16T07:54:54.6706708-04:00</DateCreated>
      <Message>sample string 1</Message>
      <MessageId>1</MessageId>
      <Sender>1</Sender>
      <SenderEmail>sample string 3</SenderEmail>
      <SenderName>sample string 2</SenderName>
    </CrmMessage>
  </CrmMessageList>
  <CustomerEmail>sample string 3</CustomerEmail>
  <CustomerID>1</CustomerID>
  <CustomerIpAddress>sample string 5</CustomerIpAddress>
  <CustomerName>sample string 2</CustomerName>
  <CustomerPhone>sample string 4</CustomerPhone>
  <DateLastAction>2019-10-16T07:54:54.6706708-04:00</DateLastAction>
  <DateOpened>2019-10-16T07:54:54.6706708-04:00</DateOpened>
  <DepartmentID>1</DepartmentID>
  <OrderID>1</OrderID>
  <ProductId>1</ProductId>
  <StatusID>1</StatusID>
  <Subject>sample string 1</Subject>
</CRM>

Sample Request



Response Information

application/json, text/json

Sample:
[
  {
    "Key":"CrmID",
    "Value":"1234",
    "Status":"200",
    "Message":"Updated successfully",
  }
]
							

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.