Skip to content

Update settings for a team

Request

OPA roles:
  • resource_admin

Updates team-level settings for your team. Partial updates are permitted. To disable a setting, set the value to null.

Security
bearerAuth
Path
team_namestringrequired

The name of your team

Bodyapplication/jsonrequired
approve_device_without_interactionboolean or null

If true, devices are automatically approved for authenticated users

client_session_durationinteger or null, (int32), [ 3600 .. 90000 ]

The maximum time before a client session expires. The duration can be from 3600 – 90000 seconds.

post_device_enrollment_urlstring or null, <= 8096 characters

If specified, redirects a user to the URL after they enroll a device

post_login_urlstring or null, <= 8096 characters

If specified, redirects a user to the URL after they authenticate through the IdP

post_logout_urlstring or null, <= 8096 characters

If specified, redirects a user to the URL after they sign out

reactivate_users_via_idpboolean or null

If true, previously deleted or disabled users are re-enabled if they authenticate through the IdP

web_session_durationinteger or null, (int32), [ 1800 .. 90000 ]

The maximum time before a web session expires. The duration can be from 1800 – 90000 seconds.

user_provisioning_exact_usernameboolean or nulldeprecated

DEPRECATED. This setting has no effect.

curl -i -X PUT \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/settings' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "approve_device_without_interaction": false,
    "client_session_duration": 3600,
    "post_device_enrollment_url": null,
    "post_login_url": null,
    "post_logout_url": null,
    "reactivate_users_via_idp": false,
    "team": "Your_OPA_Team",
    "user_provisioning_exact_username": null,
    "web_session_duration": 1800
  }'

Responses

No Content