diff --git a/static/api-specs/idn/beta/paths/password-reset-digit-token.yaml b/static/api-specs/idn/beta/paths/password-reset-digit-token.yaml index 74ebb2e19ca..b5eca905f57 100644 --- a/static/api-specs/idn/beta/paths/password-reset-digit-token.yaml +++ b/static/api-specs/idn/beta/paths/password-reset-digit-token.yaml @@ -1,8 +1,10 @@ post: - operationId: generateDigitToken + operationId: createDigitToken + security: + - UserContextAuth: [ idn:password-digit-token:create ] + summary: Generate a digit token tags: - Password Management - summary: Generate a digit token description: This API is used to generate a digit token for password management. Requires authorization scope of "idn:password-digit-token:create". requestBody: required: true @@ -28,7 +30,11 @@ post: } '400': $ref: '../../v3/responses/400.yaml' + '401': + $ref: '../../v3/responses/401.yaml' '403': $ref: '../../v3/responses/403.yaml' + '429': + $ref: '../../v3/responses/429.yaml' '500': $ref: '../../v3/responses/500.yaml' \ No newline at end of file diff --git a/static/api-specs/idn/v2024/paths/password-reset-digit-token.yaml b/static/api-specs/idn/v2024/paths/password-reset-digit-token.yaml index 50539e82e29..e1823cd4c74 100644 --- a/static/api-specs/idn/v2024/paths/password-reset-digit-token.yaml +++ b/static/api-specs/idn/v2024/paths/password-reset-digit-token.yaml @@ -1,8 +1,10 @@ post: - operationId: generateDigitToken - tags: - - Password Management + operationId: createDigitToken + security: + - UserContextAuth: [ idn:password-digit-token:create ] summary: Generate a digit token + tags: + - Password Management description: This API is used to generate a digit token for password management. Requires authorization scope of "idn:password-digit-token:create". requestBody: @@ -27,8 +29,12 @@ post: requestId: e1267ecd-fcd9-4c73-9c55-12555efad136 '400': $ref: ../../v3/responses/400.yaml + '401': + $ref: ../../v3/responses/401.yaml '403': $ref: ../../v3/responses/403.yaml + '429': + $ref: ../../v3/responses/429.yaml '500': $ref: ../../v3/responses/500.yaml parameters: