Skip to content

Choose your own password after a first one

POST
/api/platform/auth/password
curl --request POST \
--url https://forge.example.com/api/platform/auth/password \
--header 'Content-Type: application/json' \
--data '{ "challenge": "example", "password": "example" }'
Media typeapplication/json
object
challenge
required
string
password
required
string

Example generated

{
"challenge": "example",
"password": "example"
}

OK

Media typeapplication/json
object
step
required
string
challenge
required
string
expiresIn
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/

Example generated

{
"step": "example",
"challenge": "example",
"expiresIn": 1
}

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"
}