Update domain
Switches open tracking and click tracking on or off for a domain.
opensend.domains.update(id, input?)opensend domains updateInput
id goes first, on its own, and the rest in one object. One object that holds id works too.
idstringRequiredThe id of the item. Up to 64 characters.
openTrackingbooleanWhether to count opens for mail from this domain.
clickTrackingbooleanWhether to count clicks for mail from this domain.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"domain"Always
domain.idstringThe id of the domain.
namestringThe domain name, such as
mail.example.com.statusstringWhere verification stands:
pendinguntil every record is found,verifiedafter that,failedwhen a record is wrong.One of
pendingverifiedfailedregionstringThe region mail from this domain is sent from.
One of
us-east-1eu-west-1ap-northeast-1openTrackingbooleanWhether opens are counted for mail from this domain.
clickTrackingbooleanWhether clicks are counted for mail from this domain.
recordsobject[]The DNS records to publish, each with whether it was found.
records[].idstringThe id of the record.
records[].typestringThe type of DNS record:
MX,TXTorCNAME.One of
MXTXTCNAMErecords[].hoststringThe name to publish the record under.
records[].valuestringWhat the record has to hold.
records[].priorityinteger | nullThe priority of an
MXrecord, andnullfor the other types.records[].ttlstringHow long resolvers may keep the record, as your DNS provider writes it.
records[].statusstringWhether the record was found:
pending,verifiedorfailed.One of
pendingverifiedfailedeventsobject[]What has happened to the domain since it was added.
events[].idstringThe id of the event.
events[].titlestringWhat happened, in a few words.
events[].atstringWhen it happened.
events[].statusstringWhere verification stood after it.
One of
pendingverifiedfailedevents[].detailstringMore about what happened.
createdAtstringWhen the domain was added.