JSON API » messages » messages/update

Updates an existing message. Only affects voicemails left using Enswitch voicemail.

Input parameters

Requires authentication and the features, messages, or user role privileges.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
mailboxStringMailbox containing message.Yes
folderStringFolder containing message. Most commonly "INBOX".Yes
messageStringMessage to update.Yes
bodyStringMessage body.NoEmpty string.
customerIntegerID of customer owning mailbox.NoCustomer of authentication user.
notifyInteger1 to send notifications for message, 0 not to.No0

Responses

CodeDescription
204Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.
404The mailbox or message does not exist.

Data returned

No data is returned.

Example: Setting the body and sending notifications

http://enswitch.example.com/api/json/messages/update/?auth_username=user;auth_password=password;mailbox=1234;folder=INBOX;message=msg0001;body=This+is+a+test+voicemail;notify=1

{ "responses":[ { "code":"204", "key":"", "message":"OK" } ] }

Change history

VersionChanges
3.14Function added.