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
Name | Description | Type | Additional information |
---|---|---|---|
id |
Status ID |
integer |
Required |
Body Parameters
A Json or XML object containing the new Status
CrmStatusName | Description | Type | Additional 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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <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
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |