@@ -17256,6 +17256,93 @@ paths:
1725617256 - lang: CLI
1725717257 source: >
1725817258 linode-cli profile device-revoke 123
17259+ /profile/security-questions:
17260+ x-linode-cli-command: security-questions
17261+ get:
17262+ x-linode-grant: read_only
17263+ tags:
17264+ - Profile
17265+ summary: Security Questions List
17266+ description: >
17267+ Returns a collection of security questions and their responses, if any, for your User Profile.
17268+ operationId: getSecurityQuestions
17269+ x-linode-cli-action: list
17270+ security:
17271+ - personalAccessToken: []
17272+ - oauth:
17273+ - account:read_only
17274+ responses:
17275+ '200':
17276+ description: Returns a list of security questions.
17277+ content:
17278+ application/json:
17279+ schema:
17280+ $ref: '#/components/schemas/SecurityQuestionsGet'
17281+ default:
17282+ $ref: '#/components/responses/ErrorResponse'
17283+ x-code-samples:
17284+ - lang: Shell
17285+ source: >
17286+ curl -H "Content-Type: application/json" \
17287+ -H "Authorization: Bearer $TOKEN" \
17288+ https://api.linode.com/v4/profile/security-questions
17289+ - lang: CLI
17290+ source: >
17291+ linode-cli security-questions list
17292+ post:
17293+ tags:
17294+ - Profile
17295+ summary: Security Questions Answer
17296+ description: |
17297+ Adds security question responses for your User Profile.
17298+
17299+ Requires exactly three unique questions.
17300+
17301+ Previous responses are overwritten if answered or reset to `null` if unanswered.
17302+ operationId: postSecurityQuestions
17303+ x-linode-cli-action: answer
17304+ x-linode-cli-skip: true
17305+ security:
17306+ - personalAccessToken: []
17307+ - oauth:
17308+ - account:read_write
17309+ requestBody:
17310+ description: Answer Security Questions
17311+ content:
17312+ application/json:
17313+ schema:
17314+ $ref: '#/components/schemas/SecurityQuestionsPost'
17315+ responses:
17316+ '200':
17317+ description: Security Questions answered successfully.
17318+ content:
17319+ application/json:
17320+ schema:
17321+ $ref: '#/components/schemas/SecurityQuestionsPost'
17322+ default:
17323+ $ref: '#/components/responses/ErrorResponse'
17324+ x-code-samples:
17325+ - lang: Shell
17326+ source: >
17327+ curl -H "Content-Type: application/json" \
17328+ -H "Authorization: Bearer $TOKEN" \
17329+ -X POST -d '{
17330+ "security_questions": [
17331+ {
17332+ "question_id": 1,
17333+ "response": "Gotham City"
17334+ },
17335+ {
17336+ "question_id": 2,
17337+ "response": "Gotham City"
17338+ },
17339+ {
17340+ "question_id": 11,
17341+ "response": "Gotham City"
17342+ }
17343+ ]
17344+ }' \
17345+ https://api.linode.com/v4/profile/security-questions
1725917346 /profile/sshkeys:
1726017347 x-linode-cli-command: sshkeys
1726117348 get:
@@ -25992,6 +26079,63 @@ components:
2599226079 The last IP Address to successfully authenticate with this TrustedDevice.
2599326080 example: 12.34.56.78
2599426081 readOnly: true
26082+ SecurityQuestion:
26083+ type: object
26084+ description: Single security question and response object.
26085+ properties:
26086+ id:
26087+ type: integer
26088+ readOnly: true
26089+ description: The ID representing the security question.
26090+ example: 1
26091+ question:
26092+ type: string
26093+ readOnly: true
26094+ description: The security question.
26095+ example: "In what city were you born?"
26096+ question_id:
26097+ type: integer
26098+ description: The ID representing the security question.
26099+ example: 1
26100+ response:
26101+ type: string
26102+ minLength: 3
26103+ maxLength: 17
26104+ description: |
26105+ The security question response.
26106+ example: "Gotham City"
26107+ SecurityQuestionsGet:
26108+ type: object
26109+ description: Security questions and responses object for GET operation.
26110+ properties:
26111+ security_questions:
26112+ type: array
26113+ items:
26114+ type: object
26115+ description: Single security question and response object for GET operation.
26116+ properties:
26117+ id:
26118+ $ref: '#/components/schemas/SecurityQuestion/properties/id'
26119+ question:
26120+ $ref: '#/components/schemas/SecurityQuestion/properties/question'
26121+ response:
26122+ $ref: '#/components/schemas/SecurityQuestion/properties/response'
26123+ SecurityQuestionsPost:
26124+ type: object
26125+ description: Security questions and responses object for POST operation.
26126+ properties:
26127+ security_questions:
26128+ type: array
26129+ items:
26130+ type: object
26131+ description: Single security question and response object for POST operation.
26132+ properties:
26133+ question_id:
26134+ $ref: '#/components/schemas/SecurityQuestion/properties/question_id'
26135+ response:
26136+ $ref: '#/components/schemas/SecurityQuestion/properties/response'
26137+ security_question:
26138+ $ref: '#/components/schemas/SecurityQuestion/properties/question'
2599526139 ServiceTransfer:
2599626140 type: object
2599726141 description: >
0 commit comments