Description
Modifies a Service (SRV) record.
Parameters
Name | Data Type | Required / Optional | Description |
---|---|---|---|
auth-userid | Integer | Required | Authentication Parameter |
api-key | String | Required | Authentication Parameter |
domain-name | String | Required | Domain name for which you want to modify the SRV record |
host | String | Required |
A fully qualified Service name consisting of:
This is mentioned as _< service-name >._< protocol >.domain-name.com Example: _chat._tcp.domain-name.com. |
current-value | String | Required | Current hostname of the machine providing the service |
new-value | String | Required | New hostname of the machine providing the service |
ttl | Integer | Optional | Number of seconds the record needs to be cached by the DNS Resolvers. Default value is 14400. |
priority | Integer | Optional | The Priority of the host. Value ranges from 0 to 65535. |
port | Integer | Optional | The Port number of the service |
weight | Integer | Optional | A relative weight for records with the same priority |
HTTP Method
POST
Example Test URL Request
https://test.httpapi.com/api/dns/manage/update-srv-record.json?auth-userid=0&api-key=key&domain-name=domain.asia&host=_chat._tcp.domain-name.com¤t-value=chat.domain.com&new-value=chat2.domain.com
Response
Returns "Success" as the status of the response if the record is modified successfully.
In case of any error, an "error" key with error description (as value) will be returned.