> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer-test.atomicwork.com/llms.txt.
> For full documentation content, see https://developer-test.atomicwork.com/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer-test.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://developer-test.atomicwork.com/api-reference/atomicwork-public-api/access-management/postapi-v-1-iga-policies

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/v1/iga/policies:
    post:
      operationId: postapi-v-1-iga-policies
      summary: Create a policy
      description: |
        Create a new identity policy. Requires name, type, and status.
        Policies define access rules and can be associated with entitlements.
      tags:
        - subpackage_accessManagement
      parameters:
        - name: X-Api-Key
          in: header
          required: true
          schema:
            type: string
        - name: X-Workspace-Id
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Access
                  Management_postapi_v1_iga_policies_Response_200
      requestBody:
        description: Request body for creating an identity policy via the public API
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Name of the policy
                description:
                  type: string
                  description: Description of the policy
                type:
                  $ref: >-
                    #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaType
                condition:
                  $ref: >-
                    #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition
                approvals:
                  $ref: >-
                    #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals
                lifecycle:
                  $ref: >-
                    #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle
                status:
                  $ref: >-
                    #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaStatus
                is_active:
                  type: boolean
                  description: Whether the policy is active
                entitlements:
                  type: array
                  items:
                    type: integer
                    format: int64
                  description: List of entitlement IDs to associate with this policy
                app_id:
                  type: integer
                  format: int64
                  description: ID of the identity resource app this policy belongs to
                is_business_justification_required:
                  type: boolean
                  description: >-
                    Whether business justification is required for requests
                    under this policy
              required:
                - name
                - type
                - status
                - app_id
servers:
  - url: https://{tenant}.atomicwork.com
    description: Your Atomicwork tenant
components:
  schemas:
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaType:
      type: string
      enum:
        - BIRTH_RIGHT
        - SELF_SERVICE
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaType
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition0:
      type: object
      properties:
        type:
          type: string
        values:
          type: array
          items:
            type: integer
            format: int64
      required:
        - type
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition0
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition:
      oneOf:
        - $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition0
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaCondition
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals0:
      type: object
      properties:
        type:
          type: string
      required:
        - type
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals0
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0Criteria:
      type: string
      enum:
        - FIRST_DECISION
        - EVERYONE
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0Criteria
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItemsCardinality:
      type: string
      enum:
        - SINGLE
        - MULTI
      description: >
        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.
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItemsCardinality
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItems:
      type: object
      properties:
        type:
          type: string
        value:
          type: string
        label:
          type: string
        metadata:
          description: Any type
        cardinality:
          $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItemsCardinality
          description: >
            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.
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItems
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems0:
      type: object
      properties:
        type:
          type: string
        criteria:
          $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0Criteria
        approvers_data:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItemsOneOf0ApproversDataItems
      required:
        - type
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems0
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems1:
      type: object
      properties:
        type:
          type: string
        policy_id:
          type: integer
          format: int64
      required:
        - type
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems1
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems:
      oneOf:
        - $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems0
        - $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems1
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals1:
      type: object
      properties:
        type:
          type: string
        steps:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovalsOneOf1StepsItems
      required:
        - type
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals1
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals:
      oneOf:
        - $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals0
        - $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals1
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaApprovals
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle0:
      type: object
      properties:
        type:
          type: string
      required:
        - type
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle0
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDurationUnit:
      type: string
      enum:
        - HOURS
        - DAYS
        - WEEKS
        - MONTHS
      description: Time unit for duration specifications
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDurationUnit
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDuration:
      type: object
      properties:
        id:
          type: string
          description: 'Unique identifier in format: {value}_{unit}'
        value:
          type: integer
          description: The numeric value of the duration
        unit:
          $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDurationUnit
          description: Time unit for duration specifications
      required:
        - value
        - unit
      description: >-
        Represents a duration with a value and time unit. Includes ID field for
        AI-agent friendly selection.
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDuration
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettingsNotificationTimingsItems:
      type: object
      properties:
        id:
          type: string
          description: 'Unique identifier in format: {value}_{unit}'
        value:
          type: integer
          description: The numeric value of the duration
        unit:
          description: Any type
      required:
        - value
        - unit
      description: >-
        Represents a duration with a value and time unit. Includes ID field for
        AI-agent friendly selection.
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettingsNotificationTimingsItems
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettings:
      type: object
      properties:
        enable_expiry_notifications:
          type: boolean
          default: false
          description: Whether expiry notifications are enabled
        notification_timings:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettingsNotificationTimingsItems
          default: []
          description: >-
            List of notification timings specifying when to send notifications
            before expiry
      description: >-
        Notification settings for time-based access policies. Can be used
        globally or per-duration.
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettings
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItems:
      type: object
      properties:
        duration:
          $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsDuration
          description: >-
            Represents a duration with a value and time unit. Includes ID field
            for AI-agent friendly selection.
        notification_settings:
          $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItemsNotificationSettings
          description: >-
            Notification settings for time-based access policies. Can be used
            globally or per-duration.
      required:
        - duration
      description: >-
        Represents an access duration option with optional per-duration
        notification settings
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItems
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItemsUnit:
      type: string
      enum:
        - HOURS
        - DAYS
        - WEEKS
        - MONTHS
      description: Time unit for duration specifications
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItemsUnit
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItems:
      type: object
      properties:
        id:
          type: string
          description: 'Unique identifier in format: {value}_{unit}'
        value:
          type: integer
          description: The numeric value of the duration
        unit:
          $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItemsUnit
          description: Time unit for duration specifications
      required:
        - value
        - unit
      description: >-
        Represents a duration with a value and time unit. Includes ID field for
        AI-agent friendly selection.
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItems
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettings:
      type: object
      properties:
        enable_expiry_notifications:
          type: boolean
          default: false
          description: Whether expiry notifications are enabled
        notification_timings:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettingsNotificationTimingsItems
          default: []
          description: >-
            List of notification timings specifying when to send notifications
            before expiry
      description: >-
        Notification settings for time-based access policies. Can be used
        globally or per-duration.
      title: >-
        ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettings
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle1:
      type: object
      properties:
        type:
          type: string
        allowed_access_durations:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1AllowedAccessDurationsItems
          description: >-
            List of allowed access duration options. Each can have its own
            notification settings.
        global_notification_settings:
          $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycleOneOf1GlobalNotificationSettings
          description: >-
            Notification settings for time-based access policies. Can be used
            globally or per-duration.
        allow_user_to_extend:
          type: boolean
          default: false
          description: Whether users can request an extension to their access
      required:
        - type
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle1
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle:
      oneOf:
        - $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle0
        - $ref: >-
            #/components/schemas/ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle1
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaLifecycle
    ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaStatus:
      type: string
      enum:
        - DRAFT
        - PUBLISHED
        - ARCHIVED
        - UNPUBLISHED
      title: ApiV1IgaPoliciesPostRequestBodyContentApplicationJsonSchemaStatus
    Access Management_postapi_v1_iga_policies_Response_200:
      type: object
      properties: {}
      description: Empty response body
      title: Access Management_postapi_v1_iga_policies_Response_200
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

```

## Examples



**Request**

```json
{
  "name": {
    "value": "Employee Onboarding Access"
  },
  "type": {
    "0": "B",
    "1": "I",
    "2": "R",
    "3": "T",
    "4": "H",
    "5": "_",
    "6": "R",
    "7": "I",
    "8": "G",
    "9": "H",
    "10": "T",
    "value": "BIRTH_RIGHT"
  },
  "status": {
    "0": "D",
    "1": "R",
    "2": "A",
    "3": "F",
    "4": "T",
    "value": "DRAFT"
  },
  "app_id": {
    "value": 56
  },
  "description": {
    "value": "Policy granting default access rights to new employees upon hire."
  },
  "condition": {
    "type": "string"
  },
  "approvals": {
    "type": "string"
  },
  "lifecycle": {
    "type": "string"
  },
  "is_active": {
    "value": true
  },
  "entitlements": {
    "0": 0,
    "value": [
      1024,
      2048
    ]
  },
  "is_business_justification_required": {
    "value": true
  }
}
```

**Response**

```json
{}
```

**SDK Code**

```python
import requests

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

payload = {
    "name": { "value": "Employee Onboarding Access" },
    "type": {
        "0": "B",
        "1": "I",
        "2": "R",
        "3": "T",
        "4": "H",
        "5": "_",
        "6": "R",
        "7": "I",
        "8": "G",
        "9": "H",
        "10": "T",
        "value": "BIRTH_RIGHT"
    },
    "status": {
        "0": "D",
        "1": "R",
        "2": "A",
        "3": "F",
        "4": "T",
        "value": "DRAFT"
    },
    "app_id": { "value": 56 },
    "description": { "value": "Policy granting default access rights to new employees upon hire." },
    "condition": { "type": "string" },
    "approvals": { "type": "string" },
    "lifecycle": { "type": "string" },
    "is_active": { "value": True },
    "entitlements": {
        "0": 0,
        "value": [1024, 2048]
    },
    "is_business_justification_required": { "value": True }
}
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
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":{"value":"Employee Onboarding Access"},"type":{"0":"B","1":"I","2":"R","3":"T","4":"H","5":"_","6":"R","7":"I","8":"G","9":"H","10":"T","value":"BIRTH_RIGHT"},"status":{"0":"D","1":"R","2":"A","3":"F","4":"T","value":"DRAFT"},"app_id":{"value":56},"description":{"value":"Policy granting default access rights to new employees upon hire."},"condition":{"type":"string"},"approvals":{"type":"string"},"lifecycle":{"type":"string"},"is_active":{"value":true},"entitlements":{"0":0,"value":[1024,2048]},"is_business_justification_required":{"value":true}}'
};

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

```go
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    \"value\": \"Employee Onboarding Access\"\n  },\n  \"type\": {\n    \"0\": \"B\",\n    \"1\": \"I\",\n    \"2\": \"R\",\n    \"3\": \"T\",\n    \"4\": \"H\",\n    \"5\": \"_\",\n    \"6\": \"R\",\n    \"7\": \"I\",\n    \"8\": \"G\",\n    \"9\": \"H\",\n    \"10\": \"T\",\n    \"value\": \"BIRTH_RIGHT\"\n  },\n  \"status\": {\n    \"0\": \"D\",\n    \"1\": \"R\",\n    \"2\": \"A\",\n    \"3\": \"F\",\n    \"4\": \"T\",\n    \"value\": \"DRAFT\"\n  },\n  \"app_id\": {\n    \"value\": 56\n  },\n  \"description\": {\n    \"value\": \"Policy granting default access rights to new employees upon hire.\"\n  },\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": {\n    \"value\": true\n  },\n  \"entitlements\": {\n    \"0\": 0,\n    \"value\": [\n      1024,\n      2048\n    ]\n  },\n  \"is_business_justification_required\": {\n    \"value\": true\n  }\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
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    \"value\": \"Employee Onboarding Access\"\n  },\n  \"type\": {\n    \"0\": \"B\",\n    \"1\": \"I\",\n    \"2\": \"R\",\n    \"3\": \"T\",\n    \"4\": \"H\",\n    \"5\": \"_\",\n    \"6\": \"R\",\n    \"7\": \"I\",\n    \"8\": \"G\",\n    \"9\": \"H\",\n    \"10\": \"T\",\n    \"value\": \"BIRTH_RIGHT\"\n  },\n  \"status\": {\n    \"0\": \"D\",\n    \"1\": \"R\",\n    \"2\": \"A\",\n    \"3\": \"F\",\n    \"4\": \"T\",\n    \"value\": \"DRAFT\"\n  },\n  \"app_id\": {\n    \"value\": 56\n  },\n  \"description\": {\n    \"value\": \"Policy granting default access rights to new employees upon hire.\"\n  },\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": {\n    \"value\": true\n  },\n  \"entitlements\": {\n    \"0\": 0,\n    \"value\": [\n      1024,\n      2048\n    ]\n  },\n  \"is_business_justification_required\": {\n    \"value\": true\n  }\n}"

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

```java
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    \"value\": \"Employee Onboarding Access\"\n  },\n  \"type\": {\n    \"0\": \"B\",\n    \"1\": \"I\",\n    \"2\": \"R\",\n    \"3\": \"T\",\n    \"4\": \"H\",\n    \"5\": \"_\",\n    \"6\": \"R\",\n    \"7\": \"I\",\n    \"8\": \"G\",\n    \"9\": \"H\",\n    \"10\": \"T\",\n    \"value\": \"BIRTH_RIGHT\"\n  },\n  \"status\": {\n    \"0\": \"D\",\n    \"1\": \"R\",\n    \"2\": \"A\",\n    \"3\": \"F\",\n    \"4\": \"T\",\n    \"value\": \"DRAFT\"\n  },\n  \"app_id\": {\n    \"value\": 56\n  },\n  \"description\": {\n    \"value\": \"Policy granting default access rights to new employees upon hire.\"\n  },\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": {\n    \"value\": true\n  },\n  \"entitlements\": {\n    \"0\": 0,\n    \"value\": [\n      1024,\n      2048\n    ]\n  },\n  \"is_business_justification_required\": {\n    \"value\": true\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://{tenant}.atomicwork.com/api/v1/iga/policies', [
  'body' => '{
  "name": {
    "value": "Employee Onboarding Access"
  },
  "type": {
    "0": "B",
    "1": "I",
    "2": "R",
    "3": "T",
    "4": "H",
    "5": "_",
    "6": "R",
    "7": "I",
    "8": "G",
    "9": "H",
    "10": "T",
    "value": "BIRTH_RIGHT"
  },
  "status": {
    "0": "D",
    "1": "R",
    "2": "A",
    "3": "F",
    "4": "T",
    "value": "DRAFT"
  },
  "app_id": {
    "value": 56
  },
  "description": {
    "value": "Policy granting default access rights to new employees upon hire."
  },
  "condition": {
    "type": "string"
  },
  "approvals": {
    "type": "string"
  },
  "lifecycle": {
    "type": "string"
  },
  "is_active": {
    "value": true
  },
  "entitlements": {
    "0": 0,
    "value": [
      1024,
      2048
    ]
  },
  "is_business_justification_required": {
    "value": true
  }
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-Api-Key' => '<apiKey>',
    'X-Workspace-Id' => '{{workspace_id}}',
  ],
]);

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

```csharp
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    \"value\": \"Employee Onboarding Access\"\n  },\n  \"type\": {\n    \"0\": \"B\",\n    \"1\": \"I\",\n    \"2\": \"R\",\n    \"3\": \"T\",\n    \"4\": \"H\",\n    \"5\": \"_\",\n    \"6\": \"R\",\n    \"7\": \"I\",\n    \"8\": \"G\",\n    \"9\": \"H\",\n    \"10\": \"T\",\n    \"value\": \"BIRTH_RIGHT\"\n  },\n  \"status\": {\n    \"0\": \"D\",\n    \"1\": \"R\",\n    \"2\": \"A\",\n    \"3\": \"F\",\n    \"4\": \"T\",\n    \"value\": \"DRAFT\"\n  },\n  \"app_id\": {\n    \"value\": 56\n  },\n  \"description\": {\n    \"value\": \"Policy granting default access rights to new employees upon hire.\"\n  },\n  \"condition\": {\n    \"type\": \"string\"\n  },\n  \"approvals\": {\n    \"type\": \"string\"\n  },\n  \"lifecycle\": {\n    \"type\": \"string\"\n  },\n  \"is_active\": {\n    \"value\": true\n  },\n  \"entitlements\": {\n    \"0\": 0,\n    \"value\": [\n      1024,\n      2048\n    ]\n  },\n  \"is_business_justification_required\": {\n    \"value\": true\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-Workspace-Id": "{{workspace_id}}",
  "X-Api-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": ["value": "Employee Onboarding Access"],
  "type": [
    "0": "B",
    "1": "I",
    "2": "R",
    "3": "T",
    "4": "H",
    "5": "_",
    "6": "R",
    "7": "I",
    "8": "G",
    "9": "H",
    "10": "T",
    "value": "BIRTH_RIGHT"
  ],
  "status": [
    "0": "D",
    "1": "R",
    "2": "A",
    "3": "F",
    "4": "T",
    "value": "DRAFT"
  ],
  "app_id": ["value": 56],
  "description": ["value": "Policy granting default access rights to new employees upon hire."],
  "condition": ["type": "string"],
  "approvals": ["type": "string"],
  "lifecycle": ["type": "string"],
  "is_active": ["value": true],
  "entitlements": [
    "0": 0,
    "value": [1024, 2048]
  ],
  "is_business_justification_required": ["value": true]
] 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()
```