dots-wrapper
Version:
Digital Ocean v2 api wrapper - javascript - typescript - nodejs
20 lines • 629 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateDomainRecord = void 0;
const updateDomainRecord = ({ httpClient, }) => ({ data, domain_name, domain_record_id, flags, name, port, priority, tag, ttl, type, weight, }) => {
const url = `/domains/${domain_name}/records/${domain_record_id}`;
const body = {
data,
flags,
name,
port,
priority,
tag,
ttl,
type,
weight,
};
return httpClient.put(url, body);
};
exports.updateDomainRecord = updateDomainRecord;
//# sourceMappingURL=update-domain-record.js.map