Skip to content

Commit c28f666

Browse files
waldyriousAmericas
authored andcommitted
Combine double notice boxes about TOTP headers
1 parent 074e057 commit c28f666

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

_authentication.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,7 @@ Parameter | Required | Description
215215
description | yes | A human-readable description of this PAT.
216216

217217
<aside class="notice">
218-
Requires the <code>OTP-Method-Id</code> header to be sent with the id of a verified authentication method that belongs to the user.
219-
</aside>
220-
<aside class="notice">
221-
Requires the <code>OTP-Token</code> header to be sent with a valid TOTP token, belonging to the authentication method specified in <code>OTP-Method-Id</code>.
218+
Requires the <code>OTP-Method-Id</code> header with the id of a verified authentication method that belongs to the user, and the <code>OTP-Token</code> header with a valid TOTP token associated to that authentication method.
222219
</aside>
223220

224221
### Revoking a PAT

_totp.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,9 @@ curl https://api.uphold.com/v0/me/authentication_methods/totp \
7070
`POST https://api.uphold.com/v0/me/authentication_methods/totp`
7171

7272
<aside class="notice">
73-
Requires the <code>OTP-Method-Id</code> header to be sent with the id of a verified authentication method that belongs to the user.
74-
</aside>
75-
<aside class="notice">
76-
Requires the <code>OTP-Token</code> header to be sent with a valid TOTP token, belonging to the authentication method specified in <code>OTP-Method-Id</code>.
73+
Requires the <code>OTP-Method-Id</code> header with the id of a verified authentication method that belongs to the user, and the <code>OTP-Token</code> header with a valid TOTP token associated to that authentication method.
7774
</aside>
7875

79-
8076
### Response
8177

8278
Returns a fully formed [Authentication Method](#authentication-method-object) representing the authentication method created.
@@ -108,7 +104,6 @@ curl https://api.uphold.com/v0/me/authentication_methods/3f8f8264-2f5e-4b2b-8333
108104

109105
`POST https://api.uphold.com/v0/me/authentication_methods/:id/verify`
110106

111-
112107
### Response
113108

114109
Returns an [Authentication Method](#authentication-method-object) object representing the verified authentication method.

0 commit comments

Comments
 (0)