This method updates an operator under your account based on the provided parameters.
URL
https://api.plupper.com/resources/operator/<username>
Formats
plain text
HTTP Method
PUT
Requires Authentication
HTTP BASIC
API rate limited
No
Parameters
passwordOptional - New password for the accountdepartmentIdOptional - Department ID to which the operator belongsNameOptional - Full name of the operator (eg. John Lennon)displayNameOptional - Name which will be shown to visitors (eg. John)emailOptional - Email address of the operatorwelcomeMessageOptional - Message which is shown to the visitor when the chat window opens and the operator is on-lineofflineMessageOptional - Message which is shown to the visitor when the chat window opens and the operator is off-line
Response
200 OK
Example queries
- PUT https://api.plupper.com/resources/operator/john
- jQuery example
$.ajax({ type: "PUT", url: "https://api.plupper.com/resources/operator/" + username, username: "john.lennon@example.com", password: "mysecret", data: ({ password: "JohnNewPassword", displayName: "John", departmentId: 111, name: "John Lennon 2", email: "john.lennon@gmail.com", welcomeMessage: "new greetings from john" }), success: function() { alert("Updated"); } });