Enable and manage BankID-only login

Enable BankID as the sole login method for your account. After enabling, you will only be able to log in with BankID. This is a sensitive operation and the endpoint returns a `requestId` for follow-up actions.

Headers

Accept Example
Content-Type Example

Body

required
application/json
enabled boolean required

Responses

200
success boolean
timestamp string
requestId string
data object
403
error string
message string
code string
timestamp string
requestId string
requiresBankIdVerification boolean
POST https://cloud.hostup.se/api/account/bankid-only
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/account/bankid-only" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "success": true,
    "bankidOnly": true,
    "message": "string"
  }
}
Request Body
{
  "enabled": true
}