PUT
/users/reset-password
curl \
-X PUT swift.croissant-rouge.org.tn/api/v1/users/reset-password \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"oldPassword":"p8\u0026Q4f7B1","newPassword":"p8\u0026Q4f7B","confirmPassword":"p8\u0026Q4f7B"}'
Request example
{
"oldPassword": "p8&Q4f7B1",
"newPassword": "p8&Q4f7B",
"confirmPassword": "p8&Q4f7B"
}
Request examples
{
"newPassword": "p8&Q4f7B",
"oldPassword": "p8&Q4f7B1",
"confirmPassword": "p8&Q4f7B"
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 579.969
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 97
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 139
ETag: W/"8b-QWbb4ikgHnVP7+uS012NuEdlw3U"
Date: Mon, 30 Oct 2023 01:56:29 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"message": {
"RESPONSE_TEXT": "Le mot de passe a été modifié avec succès",
"RESPONSE_CODE": "PASSWORD_CHANGED_SUCCESS_MESSAGE"
}
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 579.969
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 97
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 139
ETag: W/"8b-QWbb4ikgHnVP7+uS012NuEdlw3U"
Date: Mon, 30 Oct 2023 01:56:29 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}
Response examples (401)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 599.783
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 99
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 147
ETag: W/"93-sq1pbdnP3EaMQMYbMt4Hd5KnqQQ"
Date: Mon, 30 Oct 2023 01:56:06 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 401,
"message": {
"RESPONSE_TEXT": "Oups! Il semblerait que vos identifiants soient incorrect",
"RESPONSE_CODE": "BAD_AUTH_COMBINATION_MESSAGE"
}
}
Response examples (401)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 599.783
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 99
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 147
ETag: W/"93-sq1pbdnP3EaMQMYbMt4Hd5KnqQQ"
Date: Mon, 30 Oct 2023 01:56:06 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}