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": "08/22/2019 04:49",
  "DateLastAction": "08/22/2019 04:49",
  "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": "08/22/2019 04:49",
      "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": "08/22/2019 04:49",
          "IsAdminUploaded": true
        },
        {
          "FileId": 1,
          "FileName": "sample string 1",
          "DateCreated": "08/22/2019 04:49",
          "IsAdminUploaded": true
        }
      ]
    },
    {
      "MessageId": 1,
      "DateCreated": "08/22/2019 04:49",
      "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": "08/22/2019 04:49",
          "IsAdminUploaded": true
        },
        {
          "FileId": 1,
          "FileName": "sample string 1",
          "DateCreated": "08/22/2019 04:49",
          "IsAdminUploaded": true
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<CRM xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <CrmID>1</CrmID>
  <CrmMessageList xmlns:d2p1="http://schemas.datacontract.org/2004/07/_3dCartWebAPI.Models">
    <d2p1:CrmMessage>
      <d2p1:CrmFileList>
        <d2p1:CrmFile>
          <d2p1:DateCreated>2019-08-22T04:49:53.662267-04:00</d2p1:DateCreated>
          <d2p1:FileId>1</d2p1:FileId>
          <d2p1:FileName>sample string 1</d2p1:FileName>
          <d2p1:IsAdminUploaded>true</d2p1:IsAdminUploaded>
        </d2p1:CrmFile>
        <d2p1:CrmFile>
          <d2p1:DateCreated>2019-08-22T04:49:53.662267-04:00</d2p1:DateCreated>
          <d2p1:FileId>1</d2p1:FileId>
          <d2p1:FileName>sample string 1</d2p1:FileName>
          <d2p1:IsAdminUploaded>true</d2p1:IsAdminUploaded>
        </d2p1:CrmFile>
      </d2p1:CrmFileList>
      <d2p1:CustomerIPAddress>sample string 4</d2p1:CustomerIPAddress>
      <d2p1:DateCreated>2019-08-22T04:49:53.662267-04:00</d2p1:DateCreated>
      <d2p1:Message>sample string 1</d2p1:Message>
      <d2p1:MessageId>1</d2p1:MessageId>
      <d2p1:Sender>1</d2p1:Sender>
      <d2p1:SenderEmail>sample string 3</d2p1:SenderEmail>
      <d2p1:SenderName>sample string 2</d2p1:SenderName>
    </d2p1:CrmMessage>
    <d2p1:CrmMessage>
      <d2p1:CrmFileList>
        <d2p1:CrmFile>
          <d2p1:DateCreated>2019-08-22T04:49:53.662267-04:00</d2p1:DateCreated>
          <d2p1:FileId>1</d2p1:FileId>
          <d2p1:FileName>sample string 1</d2p1:FileName>
          <d2p1:IsAdminUploaded>true</d2p1:IsAdminUploaded>
        </d2p1:CrmFile>
        <d2p1:CrmFile>
          <d2p1:DateCreated>2019-08-22T04:49:53.662267-04:00</d2p1:DateCreated>
          <d2p1:FileId>1</d2p1:FileId>
          <d2p1:FileName>sample string 1</d2p1:FileName>
          <d2p1:IsAdminUploaded>true</d2p1:IsAdminUploaded>
        </d2p1:CrmFile>
      </d2p1:CrmFileList>
      <d2p1:CustomerIPAddress>sample string 4</d2p1:CustomerIPAddress>
      <d2p1:DateCreated>2019-08-22T04:49:53.662267-04:00</d2p1:DateCreated>
      <d2p1:Message>sample string 1</d2p1:Message>
      <d2p1:MessageId>1</d2p1:MessageId>
      <d2p1:Sender>1</d2p1:Sender>
      <d2p1:SenderEmail>sample string 3</d2p1:SenderEmail>
      <d2p1:SenderName>sample string 2</d2p1:SenderName>
    </d2p1: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-08-22T04:49:53.662267-04:00</DateLastAction>
  <DateOpened>2019-08-22T04:49:53.662267-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.