# API: Update domain contacts

# domainSetContacts

Update domain contact details

# Required parameters

Parameter Description
id Domain ID
updateContactInfo Array with contact details:
updateContactInfo[registrant][firstname]='John' - Registrant firstname

updateContactInfo[registrant][lastname]='Doe' - Registrant lastname

updateContactInfo[registrant][companyname]='' - Registrant companyname

updateContactInfo[registrant][address1]='4106 Davis Street' - Registrant address

updateContactInfo[registrant][address2]='' - Registrant address 2

updateContactInfo[registrant][city]='Athens' - Registrant city

updateContactInfo[registrant][state]='Georgia' - Registrant state

updateContactInfo[registrant][country]='US' - Registrant country code

updateContactInfo[registrant][postcode]='30601' - Registrant post code

updateContactInfo[registrant][email]='[email protected]' - Registrant email

updateContactInfo[registrant][phonenumber]='+1.222222222' - Registrant phone number

updateContactInfo[tech][firstname]='John' - Tech firstname

...

updateContactInfo[tech][phonenumber]='+1.111111111' - Tech phone number

updateContactInfo[admin][firstname]='John' - Admin firstname

...

updateContactInfo[admin][phonenumber]='+1.111111111' - Admin phone number

updateContactInfo[billing][firstname]='John' - Billing firstname

...

updateContactInfo[billing][phonenumber]='+1.111111111' - Billing phone number

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=domainSetContacts&id=ID&updateContactInfo=UPDATECONTACTINFO

# PHP Samples

# Response

{
    "success": true,
    "ContactInfo": {
        "registrant": {
            "firstname": "John",
            "lastname": "Doe",
            "companyname": "",
            "address1": "4106 Davis Street",
            "address2": "",
            "city": "Athens",
            "state": "Georgia",
            "country": "US",
            "postcode": "30601",
            "email": "[email protected]",
            "phonenumber": "+1.222222222"
        },
        "tech": {
            "firstname": "John",
            "lastname": "Doe",
            "companyname": "",
            "address1": "4105 Davis Street",
            "address2": "",
            "city": "Athens",
            "state": "Georgia",
            "country": "US",
            "postcode": "30601",
            "email": "[email protected]",
            "phonenumber": "+1.111111111"
        },
        "admin": {
            "firstname": "John",
            "lastname": "Doe",
            "companyname": "",
            "address1": "4105 Davis Street",
            "address2": "",
            "city": "Athens",
            "state": "Georgia",
            "country": "US",
            "postcode": "30601",
            "email": "[email protected]",
            "phonenumber": "+1.111111111"
        },
        "billing": {
            "firstname": "John",
            "lastname": "Doe",
            "companyname": "",
            "address1": "4105 Davis Street",
            "address2": "",
            "city": "Athens",
            "state": "Georgia",
            "country": "US",
            "postcode": "30601",
            "email": "[email protected]",
            "phonenumber": "+1.111111111"
        }
    },
    "call": "domainSetContacts",
    "server_time": 1703162618
}
Last Updated: 10/7/2024, 2:36:43 PM