-
Notifications
You must be signed in to change notification settings - Fork 160
/
userCredentials-scopeId-credentialId-_reset.yaml
45 lines (43 loc) · 1.43 KB
/
userCredentials-scopeId-credentialId-_reset.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
openapi: 3.0.3
info:
title: Eclipse Kapua REST API - Credential
version: '1.0'
contact:
name: Eclipse Kapua Dev Team
url: https://eclipse.org/kapua
email: kapua-dev@eclipse.org
license:
name: Eclipse Public License 2.0
url: https://www.eclipse.org/legal/epl-2.0
paths:
/{scopeId}/user/credentials/{credentialId}/_reset:
post:
tags:
- User Credentials
summary: Reset the password of a Credential
operationId: credentialPasswordReset
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: '../credential/credential.yaml#/components/parameters/credentialId'
requestBody:
description: The new password
content:
application/json:
schema:
$ref: './userCredentials.yaml#/components/schemas/passwordResetRequest'
required: true
responses:
204:
description: The updated Credential
content:
application/json:
schema:
$ref: '../credential/credential.yaml#/components/schemas/credential'
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'