Create DNS Record
POST
https://api.salla.dev/admin/v2/dns-recordsThis endpoint allows you to create DNS records such as A, CNAME, MX, and TXT records.
:::info[Information]
You can manage DNS records for a Salla store via the API using this endpoint.
:::dns-records.read_write
- DNS Records Read & Write
Request
Indicates the type of DNS record, such as the available enum ones
Specifies the domain or subdomain to which the DNS record applies.
Refers to the data associated with a specific DNS record.
This is typically used for MX records to specify the order in which mail servers should be tried. Required if type = MX
{
"type": "MX",
"name": "blog",
"value": "blog.yourwebsite.com",
"priority": 0
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
A unique identifier for the DNS record within the DNS record.
Indicates the type of DNS record, such as A, CNAME, MX, or TXT.
Specifies the domain or subdomain to which the DNS record applies.
Contains the value associated with the DNS record. This could be an IP address for an A record, a domain name for a CNAME record, or other information depending on the record type.
This is typically used for MX records to specify the order in which mail servers should be tried. Available if type = MX
.
{
"status": 200,
"success": true,
"data": {
"id": 358857001,
"type": "MX",
"name": "blog",
"content": "blog.yourwebsite.com",
"priority": 0
}
}