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


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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Department ID

integer

Required

Body Parameters

A Json or XML object containing the new Department

CrmDepartment
NameDescriptionTypeAdditional information
DepartmentId

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

integer

None.

Name

database reference = CRM_Department.department

string

String length: inclusive between 0 and 255

Visible

database reference = CRM_Department.visible

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "DepartmentId": 1,
  "Name": "sample string 1",
  "Visible": true
}

application/xml, text/xml

Sample:
<CrmDepartment xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DepartmentId>1</DepartmentId>
  <Name>sample string 1</Name>
  <Visible>true</Visible>
</CrmDepartment>

Sample Request



Response Information

application/json, text/json

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