Skip to content

Update an app instance's password rotation strategy

Request

OPA roles:
  • resource_admin

Updates the password rotation strategy for the app instance. Returns the updated app instance.

Notes: Each app instance supports only one password rotation strategy. Don't change this strategy unless you fully understand the consequences. If you misconfigure it, you make accounts inaccessible that require manual recovery. For most deployments, USING_ADMIN is the recommended default. Use USING_EXISTING_PASSWORD only for on-premise apps managed by the Okta Provisioning Agent that explicitly require the previous password to set a new one.

Security
bearerAuth
Path
team_namestringrequired

The name of your team

saas_app_instance_idstringrequired

The app instance ID of a SaaS app provisioned to an Okta org

Bodyapplication/json
password_rotation_strategystring(AppPasswordRotationStrategy)

Determines the method to use for rotating a password for a SaaS app instance

Enum ValueDescription
USING_ADMIN

Rotate using an admin account

USING_EXISTING_PASSWORD

Rotate using the account's current password

curl -i -X PATCH \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/connections/saas_apps/{saas_app_instance_id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "password_rotation_strategy": "USING_ADMIN"
  }'

Responses

OK

Bodyapplication/json
app_instance_idstringread-onlyrequired

The unique identifier of the app instance

app_instance_namestringread-onlyrequired

The name of the app instance

app_instance_ornstringread-onlyrequired

The Okta resource name (ORN) for the app instance

app_login_urlstringread-only

The URL pointing to the login page of the app instance

app_logo_urlstringread-only

The URL of the logo for the global app that the instance belongs to. This URL is obtained from the app definition in the OIN catalog.

created_atstring, (date-time)read-onlyrequired

A timestamp indicating when the app instance was created

global_app_namestringread-onlyrequired

Name of the global app that the instance belongs to. This name is obtained from the app definition in the OIN catalog.

password_rotation_strategystring(AppPasswordRotationStrategy)required

Determines the method to use for rotating a password for a SaaS app instance

Enum ValueDescription
USING_ADMIN

Rotate using an admin account

USING_EXISTING_PASSWORD

Rotate using the account's current password

team_idstringread-onlyrequired

The UUID of the team associated with the app instance

updated_atstring, (date-time)read-onlyrequired

A timestamp indicating when the app instance was last updated

Response
{ "app_instance_id": "string", "app_instance_name": "string", "app_instance_orn": "string", "app_login_url": "string", "app_logo_url": "string", "created_at": "2019-08-24T14:15:22Z", "global_app_name": "string", "password_rotation_strategy": "USING_ADMIN", "team_id": "string", "updated_at": "2019-08-24T14:15:22Z" }