PUT - Add Email Forwarding

Purpose

The API is used to add Email Forwarding for a user account to a particular email address. This can be done by the Admin for a user or by the user for himself.

Request URL 

Using Admin Authentication:

 http://<hostname>/api/organization/<zoid>/accounts/<accountid>

Using User Authentication:

 http://<hostname>/api/accounts/<accountid>

Request Parameters

ParameterData TypeDescription
zoidIntegerThe unique Identifier for the organization 
accountid*IntegerThe unique identifier for the account for which email forwarding is being configured

* - Mandatory parameters

Request Body (JSON Object)

ParameterData TypeAllowed ValuesDescription
zuid*Integer-The unique identifier assigned to the user for whom email forwarding is being configured.
mode* String 

addMailForward

 To add the Email Forwarding to the provided Email Address

mailForwardTo*String-

The Email Address of the account to which the Email Forwarding should be enabled.

* - Mandatory parameters

Response Codes

Please refer Response Codes.

Sample Request (Using Admin Authentication)


				{
  "zuid" : "1111111",
  "mode" : "addMailForward",
  "mailForward" : [
    {
      "mailForwardTo" : "paula@zylker.com",
    }
  ]
}			

Sample Request (Using User Authentication)


				{
  "mode" : "addMailForward",
  "mailForward" : [
    {
      "mailForwardTo" : "paula@zylker.com",
    }
  ]
}