Change your own password
POST
/api/platform/profile/password
const url = 'https://forge.example.com/api/platform/profile/password';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"currentPassword":"example","newPassword":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/platform/profile/password \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "currentPassword": "example", "newPassword": "example" }'The current password, then a new one of 15 to 128 characters, checked against breached passwords. Your other sessions end. Not for a session through the identity provider.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
currentPassword
required
string
newPassword
required
string
Example generated
{ "currentPassword": "example", "newPassword": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
otherSessionsEnded
required
integer | string format: int32
Example generated
{ "otherSessionsEnded": 1}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}