Edit Recipient List

This API allows you to edit the details of the recipients in a list.

Request Type

  • PUT

Request URL

https://campaigns.zoho.com/emailapi/v1/recipients/{recipient_list_id}

Note: You need to provide the full and updated recipient list in the API request. Providing only a few recipient addresses will delete all the other addresses and add only the given ones.

Content-Type

application/json

List of Request Body Attributes

ParametersData TypeDescription
name*StringName of the list.
descriptionStringDescription provided for the list.
recipients*JSON Array

Contains the details of the recipients.

➤ address* - Email address

➤ name - Name of the recipient

➤ additional_data - Additional information of the recipient such as Country, Phone.

➤ merge_data - Data to be replaced instead of merge tags.

List of Response Body Attributes

ParametersData TypeDescription
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.
errorsJSON ObjectContains the error details of the API such as 'code' and 'message'.

Possible Errors

Error CodeDescription
400501A recipient list with the same name already exists.
400502Recipient list ID not provided.
400503Recipient list name not provided.
400504Recipients/contacts not provided.
400011Recipient limit exceeded.
400013None of the recipients are valid.

Sample Request Payload

Copied{
  "name":"List 5",
  "description":"List 4 test",
  "recipients":[
    {
      "address":"patricia@zylker.com",
      "name":"Patricia",
      "additional_data":{
        "country":"IN",
        "ph":"9876543210"
      },
      "merge_data":{
        "first_name":"Patricia"
      }
    },
    {
      "address":"boyle@zylker.com",
      "name":"Boyle",
      "additional_data":{
        "country":"IN",
        "ph":"1234567890"
      },
      "merge_data":{
        "first_name":"Bolye"
      }
    },
    {
      "address":"julia@zylker.com",
      "name":"Julia",
      "additional_data":{
        "country":"EU",
        "ph":"9999999999"
      },
      "merge_data":{
        "first_name":"Julia"
      }
    },
    {
      "address":"jamal@zylker.com",
      "name":"Jamal",
      "additional_data":{
        "country":"US",
        "ph":"9000000000"
      },
      "merge_data":{
        "first_name":"Jamal"
      }
    },
    {
      "address":"musashi@zylker.com",
      "name":"Musashi",
      "additional_data":{
        "country":"JP",
        "ph":"1111111111"
      },
      "merge_data":{
        "first_name":"Musashi"
      }
    }
  ]
}

Sample Response - Success

Copied{
  "response": {
    "code": 200504,
    "message": "Recipient list updated successfully"
  }
}

Sample Response - Failure

Copied{
  "errors": [
    {
      "code": 500501,
      "message": "An error occurred in Recipient List API"
    }
  ]
}