Create topic
Makes a kind of mail readers can say yes or no to, such as product news. A broadcast sent on a topic only reaches the contacts who get that topic.
opensend topics create [flags]Flags
--namestringRequiredA name for the topic, such as
Product news. Up to 120 characters.--descriptionstringA line about what the topic is, shown to readers. Up to 300 characters.
--default-subscriptionstringopt_inwhen contacts get the topic unless they say no,opt_outwhen they only get it after they say yes. Without it,opt_in. It cannot be changed later.One of
opt_inopt_out--visibilitystringpublicorprivate. Without it,public.One of
publicprivate
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"topic"Always
topic.idstringThe id of the topic.
namestringThe name of the topic, as readers see it.
descriptionstringWhat the topic is about, as readers see it. Empty when not set.
defaultSubscriptionstringWhat holds for a contact who never chose:
opt_in, they get it, oropt_out, they do not.One of
opt_inopt_outvisibilitystringpublicwhen every reader sees the topic on the page where they manage their mail,privatewhen only those who chose it do.One of
publicprivatesubscriptionstring | nullWhat the contact you listed the topics for gets:
opt_inoropt_out.nullwhen you named no contact.One of
opt_inopt_outcreatedAtstringWhen the topic was made.