POST
/
users
/
{user}
/
convert-login
curl --request POST \
  --url https://cloud.local.wirtual.dev/api/v2/users/{user}/convert-login \
  --header 'Content-Type: application/json' \
  --header 'Wirtual-Session-Token: <api-key>' \
  --data '{
  "password": "<string>",
  "to_type": "<any>"
}'
{
  "expires_at": "2023-11-07T05:31:56Z",
  "state_string": "<string>",
  "to_type": "",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Wirtual-Session-Token
string
header
required

Path Parameters

user
string
required

User ID, name, or me

Body

application/json
Convert request
password
string
required
to_type
any

Response

201 - application/json
Created
expires_at
string
state_string
string
to_type
enum<string>
Available options:
,
password,
github,
oidc,
token,
none
user_id
string