Application Policies

The Application Policies API provides a resource to manage authentication policies associated with an app.

Assign an authentication policy
Identity Engine
OAuth 2.0: okta.apps.manage

Assigns an app to an authentication policy, identified by policyId. If the app was previously assigned to another policy, this operation replaces that assignment with the updated policy identified by policyId.

Note: When you merge duplicate authentication policies, the policy and mapping CRUD operations may be unavailable during the consolidation. When the consolidation is complete, you receive an email with merged results.

Request
path Parameters
appId
required
string

Application ID

Example: 0oafxqCAJWWGELFTYASJ
policyId
required
string

id of the Policy

Example: 00plrilJ7jZ66Gn0X0g3
Responses
204

No Content

403

Forbidden

404

Not Found

429

Too Many Requests

put/api/v1/apps/{appId}/policies/{policyId}
Request samples
Response samples
application/json
{
  • "errorCode": "E0000006",
  • "errorSummary": "You do not have permission to perform the requested action",
  • "errorLink": "E0000006",
  • "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
  • "errorCauses": [ ]
}