src/api/MailboxesAPI.js
/**
   * PUT /mailboxes/{mailboxName}
   *
   * Change the state of a mailbox. This will implicitly create the mailbox
   * if it does not already exist.
   *
   * *API available since Asterisk 12.1*
   *
   * @param {object} params
   * @param {string} params.mailboxName The name of the mailbox to update.
   * @param {number} params.oldMessages The count of old messages in the mailbox.
   * @param {number} params.newMessages The count of new messages in the mailbox.
   * @returns {Promise} Resolves if the operation completed successfully.
   */
PUT /mailboxes/{mailboxName}
Change the state of a mailbox. This will implicitly create the mailbox
if it does not already exist.

*API available since Asterisk 12.1

@param {object} params
@param {string} params.mailboxName The name of the mailbox to update.
@param {number} params.oldMessages The count of old messages in the mailbox.
@param {number} params.newMessages The count of new messages in the mailbox.
@returns {Promise} Resolves if the operation completed successfully.
PUT / mailboxes / { mailboxName } Change the state of a mailbox . This will implicitly create the mailbox if it does not already exist . * API available since Asterisk 12 . 1 @param { object } params @param { string } params . mailboxName The name of the mailbox to update . @param { number } params . oldMessages The count of old messages in the mailbox . @param { number } params . newMessages The count of new messages in the mailbox . @returns { Promise } Resolves if the operation completed successfully .
update(params) {
    const { mailboxName, oldMessages, newMessages } = params;
    const name = encodeURIComponent(mailboxName);
    return this._request({
      method: "PUT",
      url: `${this._baseUrl}/mailboxes/${name}`,
      params: { oldMessages, newMessages },
    });
  }
update ( params ) { const { mailboxName , oldMessages , newMessages } = params ; const name = encodeURIComponent ( mailboxName ) ; return this . _request ( { method : "PUT" , url : ` ${ this . _baseUrl } ${ name } ` , params : { oldMessages , newMessages } , } ) ; }
PUT /mailboxes/{mailboxName}
 Change the state of a mailbox.
PUT / mailboxes / { mailboxName } Change the state of a mailbox .