Loading...

Knowledge Base

Modify TXT Records Using the API

When you want to update a Text (TXT) DNS record. This article explains how to modify TXT records for a domain using the API, including host values, TXT content changes, and TTL configuration.

 

Description

Modifies a Text (TXT) record.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredYour Live Account Reseller Id
api-keyStringRequiredAn alphanumeric code that can be used to authenticate your API calls
domain-nameStringRequiredDomain name for which you want to modify the TXT record
hostStringOptional

The host part of the domain-name for which you need to modify a TXT record

Example:

You may send this as www, if u wish to modify the TXT record for www.domainname.com.

current-valueStringRequiredCurrent TXT value
new-valueStringRequiredNew TXT value
ttlIntegerOptionalNumber of seconds the record needs to be cached by the DNS Resolvers. Default value is 14400.

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/dns/manage/update-txt-record.json?auth-userid=0&api-key=key&domain-name=domain.asia&current-value=Mail Server&new-value=Chat Server

Response

Returns a status key with value as Success if the record is modified successfully.

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.