Skip to main content
POST
/
api
/
domains
/
{domain_id}
/
notification-channels
/
bulk
cURL
curl --request POST \
  --url https://domainwarden.app/api/domains/{domain_id}/notification-channels/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_domain_id": "9d4e8c9a-5678-1234-9012-987654321def",
  "notification_channel_ids": [
    "9d4e8c9a-abcd-efgh-ijkl-123456789012",
    "9d4e8c9a-wxyz-abcd-efgh-234567890123"
  ]
}
'
{
  "message": "Successfully copied 3 notification channels to the domain.",
  "data": {
    "copied_count": 3,
    "skipped_count": 0,
    "target_domain_id": "9d4e8c9a-1234-5678-9012-123456789abc",
    "source_domain_id": "9d4e8c9a-5678-1234-9012-987654321def"
  }
}

Authorizations

Authorization
string
header
required

You can obtain your API Token from your Domainwarden account settings.

Path Parameters

domain_id
string
required

The ID of the domain.

domain
string
required

The ID of the target domain.

Body

application/json
source_domain_id
string
required

The ID of the source domain to copy channels from.

Example:

"9d4e8c9a-5678-1234-9012-987654321def"

notification_channel_ids
string[]
required

Array of notification channel IDs to copy (minimum 1 required).

Example:
[
"9d4e8c9a-abcd-efgh-ijkl-123456789012",
"9d4e8c9a-wxyz-abcd-efgh-234567890123"
]

Response

message
string
Example:

"Successfully copied 3 notification channels to the domain."

data
object