66 - enum :
77 - email
88 - text
9+ - voice
910 - push
1011 in : query
1112 name : notification_medium
3637 enum :
3738 - email
3839 - text
40+ - voice
3941 - push
4042 in : query
4143 name : notification_medium
8284 tags :
8385 - optins
8486patch :
87+ description : >-
88+ Used to verify an optin code, or update which channels the user is
89+ subscribed to. Email is not yet enabled.
8590 parameters :
8691 - in : header
8792 name : end-user-token
@@ -92,19 +97,28 @@ patch:
9297 required : true
9398 schema :
9499 properties :
100+ code :
101+ description : >-
102+ This code is generated on a POST, and will arrive via the same
103+ medium it was designated for.
104+ type : string
105+ notification_channel :
106+ description : >-
107+ Specify which channels to subscribe to update. You can also send
108+ in an empty string to opt out of everything.
109+ enum :
110+ - all
111+ - alerts
112+ - search_data
113+ type : string
95114 notification_medium :
96115 enum :
97116 - email
98117 - text
99- type : string
100- verification_code :
101- description : >-
102- This code is generated on a POST, and will arrive via the same
103- medium it was designated for.
118+ - voice
104119 type : string
105120 required :
106121 - notification_medium
107- - verification_code
108122 type : object
109123 responses :
110124 ' 204 ' :
@@ -114,10 +128,10 @@ patch:
114128 - optins
115129post :
116130 description : >-
117- Currently only Push notifications are implemented. With them a post creates
118- and approves the optin. Later on when text/email is ported post will create
119- the optin with the status of 'no response' meaning they haven't replied with
120- the propper code, or clicked an authorization link .
131+ Text, voice, push and manual are implemented. With push a post creates and
132+ approves the optin. With the others, a code is sent to the refecenced
133+ contact, and can be verified via the PATCH operation. Email has not yet been
134+ enabled .
121135 parameters :
122136 - in : header
123137 name : end-user-token
@@ -131,22 +145,25 @@ post:
131145 notification_channel :
132146 default : all
133147 description : >-
134- Currently defaults to all, and is ignored. When we start using it
135- it will be for opting people out or in one list like alerts, or
136- messages, but not others .
148+ Everything but email has been implemented. Push is 1 step
149+ verification. Everyone but push and manual uses PATCH to verify
150+ the code .
137151 type : string
138152 notification_medium :
139153 description : We currently only accept push
140154 enum :
141155 - email
142156 - text
157+ - voice
158+ - manual
143159 - push
144160 type : string
145161 tokens :
146162 description : >-
147163 This is how you can add multiple push notifications at once, or
148- for systems that have multiple tokens required.
149- example : ' "tokens": { "ios": "12345678", "android": "5432344" } '
164+ for systems that have multiple tokens required. For other
165+ notification mediums use "contact_number": "1234567890" instead of
166+ ios or android.
150167 properties :
151168 $SERVICE_OR_KEY_NAME :
152169 description : >-
0 commit comments