back to API list


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

  • name Optional - Name of the department
  • displayName Optional - This name of the department will be shown to visitors
  • welcomeMessage Optional - Message which is shown when the chat window opens and the operator is on-line
  • offlineMessage Optional - 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");
        }
    });
                    

STAY CONNECTED