Cloud
Control REST API / Reference / REST API

Policies

Postman Collection
OpenAPI
GET

Get list of policiesDeprecated

Returns comprehensive details on organizational policies, including both rules and resources.

Scopes

OAuth 2.0 scopes required: read:policies:admin

Request

Path parameters

orgId

string

Required

Query parameters

cursor

string

type

Models.PolicyType

Responses

The request has succeeded.

application/json

Models.PolicyPage
GET/admin/control/v1/orgs/{orgId}/policies
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "data": [ {} ], "meta": { "next": "<string>", "page_size": 25 }, "links": { "self": "<string>", "prev": "<string>", "next": "<string>", "page_size": "<string>" } }
POST

Create a new policyDeprecated

Create a policy aligned with your organization's standards.

Scopes

OAuth 2.0 scopes required: write:policies:admin

Request

Path parameters

orgId

string

Required

Request bodyapplication/json

data

oneOf [object, object, object]

Required

Responses

The request has been accepted for processing, but processing has not yet completed.

application/json

Models.PolicyResponse
POST/admin/control/v1/orgs/{orgId}/policies
1 2 3 4 5 6 7 8 curl --request POST \ --url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "data": {} }'
202Response
1 2 3 { "data": {} }
GET

Get single policyDeprecated

Returns information about a policy by policyId.

Scopes

OAuth 2.0 scopes required: read:policies:admin

Request

Path parameters

orgId

string

Required
policyId

string

Required

Responses

The request has succeeded.

application/json

Models.PolicyResponse
GET/admin/control/v1/orgs/{orgId}/policies/{policyId}
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 { "data": {} }
PUT

Update single policyDeprecated

Update a policy with a policyId.

Scopes

OAuth 2.0 scopes required: write:policies:admin

Request

Path parameters

orgId

string

Required
policyId

string

Required

Request bodyapplication/json

data

oneOf [object, object, Models.DataSecurityPolicy]

Required

Responses

The request has been accepted for processing, but processing has not yet completed.

application/json

Models.PolicyResponse
PUT/admin/control/v1/orgs/{orgId}/policies/{policyId}
1 2 3 4 5 6 7 8 curl --request PUT \ --url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "data": {} }'
202Response
1 2 3 { "data": {} }
DEL

Delete single policyDeprecated

Delete a policy with a policyId

Scopes

OAuth 2.0 scopes required: delete:policies:admin

Request

Path parameters

orgId

string

Required
policyId

string

Required

Responses

The request has been accepted for processing, but processing has not yet completed.

DEL/admin/control/v1/orgs/{orgId}/policies/{policyId}
1 2 3 curl --request DELETE \ --url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}' \ --header 'Authorization: Bearer <access_token>'
GET

Get list of policies V2

Returns comprehensive details on organizational policies, including both rules and status.

Scopes

OAuth 2.0 scopes required: read:policies:admin

Request

Path parameters

orgId

string

Required

Query parameters

cursor

string

type

Models.PolicyType

Responses

The request has succeeded.

application/json

Models.PolicyPageV2
GET/admin/control/v2/orgs/{orgId}/policies
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/control/v2/orgs/{orgId}/policies' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 { "data": [ { "id": "<string>", "type": "policy", "attributes": { "type": "data-security", "rule": { "export": { "blockPageExport": true }, "appAccess": { "blockAll": true, "blockedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ], "allowedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ] }, "publicLinks": { "block": true }, "anonymousAccess": { "block": true } }, "metadata": { "lastUpdatedBy": "<string>", "createdBy": "<string>", "hasHadCoverage": true, "systemTag": "<string>", "policyCoverageLevel": "UNASSIGNED", "description": "<string>" } } } ], "meta": { "next": "<string>", "page_size": 25 }, "links": { "self": "<string>", "prev": "<string>", "next": "<string>", "page_size": "<string>" } }
POST

Create a new policy V2

Create a policy aligned with your organization's standards.

Scopes

OAuth 2.0 scopes required: write:policies:admin

Request

Path parameters

orgId

string

Required

Request bodyapplication/json

data

object

Required

Responses

The request has been accepted for processing, but processing has not yet completed.

application/json

Models.PolicyResponseV2
POST/admin/control/v2/orgs/{orgId}/policies
1 2 3 4 5 6 7 8 curl --request POST \ --url 'https://api.atlassian.com/admin/control/v2/orgs/{orgId}/policies' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "data": {} }'
202Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 { "data": { "id": "<string>", "type": "policy", "attributes": { "type": "data-security", "rule": { "export": { "blockPageExport": true }, "appAccess": { "blockAll": true, "blockedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ], "allowedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ] }, "publicLinks": { "block": true }, "anonymousAccess": { "block": true } }, "metadata": { "lastUpdatedBy": "<string>", "createdBy": "<string>", "hasHadCoverage": true, "systemTag": "<string>", "policyCoverageLevel": "UNASSIGNED", "description": "<string>" } } } }
GET

Get single policy V2

Returns information about a policy by policyId.

Scopes

OAuth 2.0 scopes required: read:policies:admin

Request

Path parameters

orgId

string

Required
policyId

string

Required

Responses

The request has succeeded.

application/json

Models.PolicyResponseV2
GET/admin/control/v2/orgs/{orgId}/policies/{policyId}
1 2 3 4 curl --request GET \ --url 'https://api.atlassian.com/admin/control/v2/orgs/{orgId}/policies/{policyId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 { "data": { "id": "<string>", "type": "policy", "attributes": { "type": "data-security", "rule": { "export": { "blockPageExport": true }, "appAccess": { "blockAll": true, "blockedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ], "allowedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ] }, "publicLinks": { "block": true }, "anonymousAccess": { "block": true } }, "metadata": { "lastUpdatedBy": "<string>", "createdBy": "<string>", "hasHadCoverage": true, "systemTag": "<string>", "policyCoverageLevel": "UNASSIGNED", "description": "<string>" } } } }
PUT

Update single policy V2

Update a policy with a policyId.

Scopes

OAuth 2.0 scopes required: write:policies:admin

Request

Path parameters

orgId

string

Required
policyId

string

Required

Request bodyapplication/json

data

oneOf [object, object, Models.DataSecurityPolicy]

Required

Responses

The request has been accepted for processing, but processing has not yet completed.

application/json

Models.PolicyResponseV2
PUT/admin/control/v2/orgs/{orgId}/policies/{policyId}
1 2 3 4 5 6 7 8 curl --request PUT \ --url 'https://api.atlassian.com/admin/control/v2/orgs/{orgId}/policies/{policyId}' \ --header 'Authorization: Bearer <access_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "data": {} }'
202Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 { "data": { "id": "<string>", "type": "policy", "attributes": { "type": "data-security", "rule": { "export": { "blockPageExport": true }, "appAccess": { "blockAll": true, "blockedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ], "allowedApps": [ "ari:cloud:ecosystem::app/6cbe3d88-199b-485e-9f58-cec9e642a0da" ] }, "publicLinks": { "block": true }, "anonymousAccess": { "block": true } }, "metadata": { "lastUpdatedBy": "<string>", "createdBy": "<string>", "hasHadCoverage": true, "systemTag": "<string>", "policyCoverageLevel": "UNASSIGNED", "description": "<string>" } } } }
DEL

Delete single policy V2

Delete a policy with a policyId

Scopes

OAuth 2.0 scopes required: delete:policies:admin

Request

Path parameters

orgId

string

Required
policyId

string

Required

Responses

The request has been accepted for processing, but processing has not yet completed.

DEL/admin/control/v2/orgs/{orgId}/policies/{policyId}
1 2 3 curl --request DELETE \ --url 'https://api.atlassian.com/admin/control/v2/orgs/{orgId}/policies/{policyId}' \ --header 'Authorization: Bearer <access_token>'
GET

Validate a policy

Validate a policy to view potential issues in your policy

Scopes

OAuth 2.0 scopes required: read:policies:admin

Request

Path parameters

orgId

string

Required
policyId

string

Required

Responses

The request has been accepted for processing, but processing has not yet completed.

GET/admin/control/v1/orgs/{orgId}/policies/{policyId}/validate
1 2 3 curl --request GET \ --url 'https://api.atlassian.com/admin/control/v1/orgs/{orgId}/policies/{policyId}/validate' \ --header 'Authorization: Bearer <access_token>'

Rate this page: