Update domain
Switches open tracking and click tracking on or off for a domain.
opensend domains update <id> [flags]Flags
<id>stringRequiredThe id of the item. Up to 64 characters.
--open-trackingbooleanWhether to count opens for mail from this domain.
--click-trackingbooleanWhether to count clicks for mail from this domain.
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
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.