> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://support.atomicwork.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://support.atomicwork.com/_mcp/server.

# Create a policy

POST https://{tenant}.atomicwork.com/api/v1/iga/policies
Content-Type: application/json

Create a new identity policy. Requires name, type, and status.
Policies define access rules and can be associated with entitlements.


Reference: https://support.atomicwork.com/api-reference/atomicwork-public-api/access-management/postapi-v-1-iga-policies

## Authentication

- `X-Api-Key` header (required) — API Key authentication via header

## Request

### Headers

- `X-Workspace-Id` (string, optional)

### Body (application/json)

This endpoint expects an object.

- `name` (string, required) — Name of the policy
- `type` (enum, required)
  - Allowed values: `BIRTH_RIGHT`, `SELF_SERVICE`
- `status` (enum, required)
  - Allowed values: `DRAFT`, `PUBLISHED`, `ARCHIVED`, `UNPUBLISHED`
- `app_id` (long, required) — ID of the identity resource app this policy belongs to
- `description` (string, optional) — Description of the policy
- `condition` (ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition, optional)
- `approvals` (ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals, optional)
- `lifecycle` (ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle, optional)
- `is_active` (boolean, optional) — Whether the policy is active
- `entitlements` (list of long, optional) — List of entitlement IDs to associate with this policy
- `is_business_justification_required` (boolean, optional) — Whether business justification is required for requests under this policy

## Response

### 200

Successful response

## Types

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition

- ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition0

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals

- ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals0
- ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals1

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle

- ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle0
- ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle1

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition0

- `type` (string, required)
- `values` (list of long, optional)

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals0

- `type` (string, required)

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals1

- `type` (string, required)
- `steps` (list of ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems, optional)

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle0

- `type` (string, required)

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle1

- `type` (string, required)
- `allowed_access_durations` (list of ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItems, optional) — List of allowed access duration options. Each can have its own notification settings.
- `global_notification_settings` (ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettings, optional) — Notification settings for time-based access policies. Can be used globally or per-duration.
- `allow_user_to_extend` (boolean, optional, default: false) — Whether users can request an extension to their access

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems

- ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems0
- ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems1

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItems

Represents an access duration option with optional per-duration notification settings

- `duration` (ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDuration, required) — Represents a duration with a value and time unit. Includes ID field for AI-agent friendly selection.
- `notification_settings` (ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettings, optional) — Notification settings for time-based access policies. Can be used globally or per-duration.

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettings

Notification settings for time-based access policies. Can be used globally or per-duration.

- `enable_expiry_notifications` (boolean, optional, default: false) — Whether expiry notifications are enabled
- `notification_timings` (list of ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItems, optional, default: []) — List of notification timings specifying when to send notifications before expiry

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems0

- `type` (string, required)
- `criteria` (enum, optional)
  - Allowed values: `FIRST_DECISION`, `EVERYONE`
- `approvers_data` (list of ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItems, optional)

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems1

- `type` (string, required)
- `policy_id` (long, optional)

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDuration

Represents a duration with a value and time unit. Includes ID field for AI-agent friendly selection.

- `value` (integer, required) — The numeric value of the duration
- `unit` (enum, required) — Time unit for duration specifications
  - Allowed values: `HOURS`, `DAYS`, `WEEKS`, `MONTHS`
- `id` (string, optional) — Unique identifier in format: \{value}\_\{unit}

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettings

Notification settings for time-based access policies. Can be used globally or per-duration.

- `enable_expiry_notifications` (boolean, optional, default: false) — Whether expiry notifications are enabled
- `notification_timings` (list of ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettingsNotificationTimingsItems, optional, default: []) — List of notification timings specifying when to send notifications before expiry

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItems

Represents a duration with a value and time unit. Includes ID field for AI-agent friendly selection.

- `value` (integer, required) — The numeric value of the duration
- `unit` (enum, required) — Time unit for duration specifications
  - Allowed values: `HOURS`, `DAYS`, `WEEKS`, `MONTHS`
- `id` (string, optional) — Unique identifier in format: \{value}\_\{unit}

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItems

- `type` (string, optional)
- `value` (string, optional)
- `label` (string, optional)
- `metadata` (any, optional)
- `cardinality` (enum, optional) — Indicates whether the approver row resolves to a single user (SINGLE) or multiple users (MULTI). Populated server-side on approval-policy GET responses; null on writes. Rules: - EXPRESSION: SINGLE/MULTI per the placeholder template (ApprovalPlaceholder catalog). Null on unknown templates. - AGENT_GROUP: always MULTI — the resolver fans the group out to every member at evaluation time, so the FE picker should render the multi-user badge and auto-toggle the criteria selector. - Other types (EXACT, STANDARD_BASED, OPTION_BASED): null.
  - Allowed values: `SINGLE`, `MULTI`

### ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettingsNotificationTimingsItems

Represents a duration with a value and time unit. Includes ID field for AI-agent friendly selection.

- `value` (integer, required) — The numeric value of the duration
- `unit` (any, required)
- `id` (string, optional) — Unique identifier in format: \{value}\_\{unit}

## Examples

**Request**

```json
{
  "name": "",
  "type": "BIRTH_RIGHT",
  "status": "DRAFT",
  "app_id": 0,
  "description": "",
  "condition": {
    "type": "string"
  },
  "approvals": {
    "type": "string"
  },
  "lifecycle": {
    "type": "string"
  },
  "is_active": false,
  "entitlements": [
    0
  ],
  "is_business_justification_required": false
}
```

**Response**

```json
{}
```

**SDK Code**

```python Access Management_postapi_v1_iga_policies_example
import requests

url = "https://{tenant}.atomicwork.com/api/v1/iga/policies"

payload = {
    "name": "",
    "type": "BIRTH_RIGHT",
    "status": "DRAFT",
    "app_id": 0,
    "description": "",
    "condition": { "type": "string" },
    "approvals": { "type": "string" },
    "lifecycle": { "type": "string" },
    "is_active": False,
    "entitlements": [0],
    "is_business_justification_required": False
}
headers = {
    "X-Workspace-Id": "{{workspace_id}}",
    "X-Api-Key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Access Management_postapi_v1_iga_policies_example
const url = 'https://{tenant}.atomicwork.com/api/v1/iga/policies';
const options = {
  method: 'POST',
  headers: {
    'X-Workspace-Id': '{{workspace_id}}',
    'X-Api-Key': '<apiKey>',
    'Content-Type': 'application/json'
  },
  body: '{"name":"","type":"BIRTH_RIGHT","status":"DRAFT","app_id":0,"description":"","condition":{"type":"string"},"approvals":{"type":"string"},"lifecycle":{"type":"string"},"is_active":false,"entitlements":[0],"is_business_justification_required":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Access Management_postapi_v1_iga_policies_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://{tenant}.atomicwork.com/api/v1/iga/policies"

	payload := strings.NewReader("{\n  \"name\": \"\",\n  \"type\": \"BIRTH_RIGHT\",\n  \"status\": \"DRAFT\",\n  \"app_id\": 0,\n  \"description\": \"\",\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": false,\n  \"entitlements\": [\n    0\n  ],\n  \"is_business_justification_required\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("X-Workspace-Id", "{{workspace_id}}")
	req.Header.Add("X-Api-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Access Management_postapi_v1_iga_policies_example
require 'uri'
require 'net/http'

url = URI("https://{tenant}.atomicwork.com/api/v1/iga/policies")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-Workspace-Id"] = '{{workspace_id}}'
request["X-Api-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"\",\n  \"type\": \"BIRTH_RIGHT\",\n  \"status\": \"DRAFT\",\n  \"app_id\": 0,\n  \"description\": \"\",\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": false,\n  \"entitlements\": [\n    0\n  ],\n  \"is_business_justification_required\": false\n}"

response = http.request(request)
puts response.read_body
```

```java Access Management_postapi_v1_iga_policies_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://{tenant}.atomicwork.com/api/v1/iga/policies")
  .header("X-Workspace-Id", "{{workspace_id}}")
  .header("X-Api-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"\",\n  \"type\": \"BIRTH_RIGHT\",\n  \"status\": \"DRAFT\",\n  \"app_id\": 0,\n  \"description\": \"\",\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": false,\n  \"entitlements\": [\n    0\n  ],\n  \"is_business_justification_required\": false\n}")
  .asString();
```

```php Access Management_postapi_v1_iga_policies_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://{tenant}.atomicwork.com/api/v1/iga/policies', [
  'body' => '{
  "name": "",
  "type": "BIRTH_RIGHT",
  "status": "DRAFT",
  "app_id": 0,
  "description": "",
  "condition": {
    "type": "string"
  },
  "approvals": {
    "type": "string"
  },
  "lifecycle": {
    "type": "string"
  },
  "is_active": false,
  "entitlements": [
    0
  ],
  "is_business_justification_required": false
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Api-Key' => '<apiKey>',
    'X-Workspace-Id' => '{{workspace_id}}',
  ],
]);

echo $response->getBody();
```

```csharp Access Management_postapi_v1_iga_policies_example
using RestSharp;

var client = new RestClient("https://{tenant}.atomicwork.com/api/v1/iga/policies");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Workspace-Id", "{{workspace_id}}");
request.AddHeader("X-Api-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"\",\n  \"type\": \"BIRTH_RIGHT\",\n  \"status\": \"DRAFT\",\n  \"app_id\": 0,\n  \"description\": \"\",\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": false,\n  \"entitlements\": [\n    0\n  ],\n  \"is_business_justification_required\": false\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Access Management_postapi_v1_iga_policies_example
import Foundation

let headers = [
  "X-Workspace-Id": "{{workspace_id}}",
  "X-Api-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "",
  "type": "BIRTH_RIGHT",
  "status": "DRAFT",
  "app_id": 0,
  "description": "",
  "condition": ["type": "string"],
  "approvals": ["type": "string"],
  "lifecycle": ["type": "string"],
  "is_active": false,
  "entitlements": [0],
  "is_business_justification_required": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://{tenant}.atomicwork.com/api/v1/iga/policies")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```