# API: Bulk add TLDs

# bulkAddProducts

Create multiple products/TLDS at once, using current product as template. Method takes products array as parameter, so you can add multiple products at once. Use this to add new tlds in bulk with ease. Note that this call does not check whether product already exists.

# Required parameters

Parameter Description
products[n][copyof] ID of product/TLD to use as template
products[n][name] Name of new product

# Optional parameters

Parameter Description
products[n][periods][k][register] For tlds, set register price for {k} years for amount passed trough this argument
products[n][periods][k][transfer] For tlds, set transfer price for {k} years for amount passed trough this argument
products[n][periods][k][renew] For tlds, set renew price for {k} years for amount passed trough this argument

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=bulkAddProducts&products%5Bn%5D%5Bcopyof%5D=PRODUCTS%5BN%5D%5BCOPYOF%5D&products%5Bn%5D%5Bname%5D=PRODUCTS%5BN%5D%5BNAME%5D

# PHP Samples

# Response

{
    "success": true,
    "new_products": [
        "301"
    ],
    "call": "bulkAddProducts",
    "server_time": 1478712055,
    "info": [
        "Product .test duplicated. New product name: .test(2)",
        "Product updated"
    ]
}
Last Updated: 5/12/2023, 3:22:14 PM