PUT
/
list
/
{listId}
Update List
curl --request PUT \
  --url https://api.sendx.io/api/v1/rest/list/{listId} \
  --header 'Content-Type: application/json' \
  --header 'X-Team-ApiKey: <api-key>' \
  --data '{
  "name": "Newsletter Subscribers",
  "type": 0,
  "sendThankYouMail": true,
  "thankYouFromName": "John Doe",
  "thankYouFromEmail": "john.doe@example.com",
  "thankYouMailSubject": "Thank You for Subscribing!",
  "thankYouMailMessage": "We appreciate your subscription!",
  "thankYouSender": "sender_101",
  "confirmFromName": "John Doe",
  "confirmFromEmail": "john.doe@example.com",
  "confirmMailSubject": "Please Confirm Your Subscription",
  "confirmMailMessage": "Click the link below to confirm your subscription.",
  "confirmSuccessPage": "https://example.com/confirmation-success",
  "confirmSender": "sender_102"
}'
{
  "status": "<string>",
  "message": "<string>",
  "data": "<string>"
}

Authorizations

X-Team-ApiKey
string
header
required

Path Parameters

listId
string
required

The ID of the list to be updated.

Body

application/json

Response

200
application/json

List Updated Successfully

The response is of type object.