POST /api/v1/authorizationServers/{authServerId}/policies

Creates a policy

Servers

Path parameters

Name Type Required Description
authServerId String Yes

id of the Authorization Server

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
id String No

ID of the Policy

priority Integer No

Specifies the order in which this Policy is evaluated in relation to the other Policies in a custom authorization server

name String No

Name of the Policy

created String No

Timestamp when the Policy was created

description String No

Description of the Policy

system Boolean No

Specifies whether Okta created this Policy

type String No

Indicates that the Policy is an authorization server Policy

Possible values:

  • "OAUTH_AUTHORIZATION_POLICY"
conditions Object No
conditions.clients Object No

Specifies which clients are included in the Policy

conditions.clients.include[] Array No

Which clients are included in the Policy

status String No

Specifies whether requests have access to this Policy

Possible values:

  • "ACTIVE"
  • "INACTIVE"
lastUpdated String No

Timestamp when the Policy was last updated

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.