PUT 3dCartWebAPI/v1/CRM/status/{id}


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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Status ID

integer

Required

Body Parameters

A Json or XML object containing the new Status

CrmStatus
NameDescriptionTypeAdditional information
Id

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

integer

None.

StatusId

database reference = CRM_status.statusid

integer

None.

StatusName

database reference = CRM_status.statustext

string

String length: inclusive between 0 and 50

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "StatusId": 1,
  "StatusName": "sample string 1"
}

application/xml, text/xml

Sample:
<CrmStatus xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <StatusId>1</StatusId>
  <StatusName>sample string 1</StatusName>
</CrmStatus>

Sample Request



Response Information

application/json, text/json

Sample:
[
  {
    "Key":"StatusId",
    "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.