Skip to main content
PATCH
/
api
/
workspace
/
{workspaceId}
/
security
Update security settings
curl --request PATCH \
  --url https://app.alana.shopping/api/workspace/{workspaceId}/security \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enforce_2fa": true,
  "session_timeout_minutes": 722,
  "password_min_length": 9,
  "require_special_chars": true,
  "ip_whitelist": [
    "<string>"
  ]
}
'
{}

Authorizations

Authorization
string
header
required

Bearer token authentication. Obtain a token via the authentication endpoint and include it in the Authorization header: Authorization: Bearer <token>

Path Parameters

workspaceId
string
required

The workspace ID

Body

application/json
enforce_2fa
boolean
session_timeout_minutes
integer
Required range: 5 <= x <= 1440
password_min_length
integer
Required range: x >= 8
require_special_chars
boolean
ip_whitelist
string[]

Response

Security settings updated successfully

The response is of type object.