We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try { const input = { type: "A", // string name: "www", // string data: "162.10.66.0", // string priority: null, // number port: null, // number ttl: 1800, // number weight: null, // number flags: null, // number tag: null // string }; const {data:{domain_record}} = await dots.domain.createDomainRecord(input); console.log(domain_record); } catch (error) { console.log(error); }
in the api docs it is part of the url https://api.digitalocean.com/v2/domains/{domain_name}/records
Brad
The text was updated successfully, but these errors were encountered:
hey @Daxcor69
looks like the attribute is missing in my docs. Thanks for showing this.
As all inputs are "typed", you can always trust the autocomplete on your code editor OR check the raw fn code:
https://www.github.com/pjpimentel/dots/tree/master/src%2Fmodules%2Fdomain%2Fcreate-domain-record%2Fcreate-domain-record.ts
It accepts the "domain_name" input.
Sorry, something went wrong.
pjpimentel
Successfully merging a pull request may close this issue.
try {
const input = {
type: "A", // string
name: "www", // string
data: "162.10.66.0", // string
priority: null, // number
port: null, // number
ttl: 1800, // number
weight: null, // number
flags: null, // number
tag: null // string
};
const {data:{domain_record}} = await dots.domain.createDomainRecord(input);
console.log(domain_record);
} catch (error) {
console.log(error);
}
in the api docs it is part of the url
https://api.digitalocean.com/v2/domains/{domain_name}/records
Brad
The text was updated successfully, but these errors were encountered: