This method updates a department under your account based on the provided parameters.
URL
https://api.plupper.com/resources/department/<departmentId>
Formats
plain text
HTTP Method
PUT
Requires Authentication
HTTP BASIC
API rate limited
No
Parameters
nameOptional - Name of the departmentdisplayNameOptional - This name of the department will be shown to visitorswelcomeMessageOptional - Message which is shown when the chat window opens and the operator is on-lineofflineMessageOptional - Message which is shown when the chat window opens and all operators are off-line
Response
200 OK
Example queries
- PUT https://api.plupper.com/resources/department/123
- jQuery example
$.ajax({ type: "PUT", url: "https://api.plupper.com/resources/department/" + departmentId, username: "john.lennon@example.com", password: "mysecret", data: ({ offlineMessage: "new offline message", welcomeMessage: "new welcome message" }), success: function() { alert("Updated"); } });