Pular para o conteúdo principal
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>"
  ]
}
'
{}

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication via Auth0. Users authenticate through Auth0 Universal Login. Include the access token in the Authorization header: Authorization: Bearer <token>

Parâmetros de caminho

workspaceId
string
obrigatório

The workspace ID

Pattern: ^ws_[a-z0-9]+$

Corpo

application/json
enforce_2fa
boolean
session_timeout_minutes
integer
Intervalo obrigatório: 5 <= x <= 1440
password_min_length
integer
Intervalo obrigatório: x >= 8
require_special_chars
boolean
ip_whitelist
string[]

Resposta

Security settings updated successfully

The response is of type object.

Last modified on February 16, 2026