{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nice/json-schema/nice-policy-creation-response-schema.json",
  "title": "PolicyCreationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nice-policy-policyinstance-openapi.yml#/components/schemas/PolicyCreationResponse",
  "type": "object",
  "properties": {
    "policyId": {
      "type": "string",
      "format": "uuid",
      "description": "The Id of the policy created"
    },
    "entityType": {
      "type": "string",
      "description": "Entity Types the policy will affect"
    },
    "applyToMediaTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Media Types the policy will affect"
    },
    "scheduling": {
      "$ref": "#/$defs/Schedule"
    },
    "recurring": {
      "type": "boolean",
      "description": "If the policy is recurring or not"
    }
  },
  "$defs": {
    "Schedule": {
      "type": "object",
      "properties": {
        "executeNow": {
          "type": "boolean",
          "description": "Policy is configured to execute immediately"
        }
      }
    }
  }
}