{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/userclouds/json-schema/userclouds-idp-update-column-retention-duration-request-schema.json",
  "title": "IdpUpdateColumnRetentionDurationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/userclouds-columnretentiondurations-api-openapi.yml#/components/schemas/IdpUpdateColumnRetentionDurationRequest",
  "properties": {
    "retention_duration": {
      "$ref": "#/$defs/IdpColumnRetentionDuration"
    }
  },
  "type": "object",
  "$defs": {
    "IdpColumnRetentionDuration": {
      "properties": {
        "column_id": {
          "$ref": "#/$defs/UuidUUID"
        },
        "default_duration": {
          "$ref": "#/$defs/IdpRetentionDuration"
        },
        "duration": {
          "$ref": "#/$defs/IdpRetentionDuration"
        },
        "duration_type": {
          "$ref": "#/$defs/UserstoreDataLifeCycleState"
        },
        "id": {
          "$ref": "#/$defs/UuidUUID"
        },
        "purpose_id": {
          "$ref": "#/$defs/UuidUUID"
        },
        "purpose_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "use_default": {
          "type": "boolean"
        },
        "version": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "IdpDurationUnit": {
      "enum": [
        "day",
        "hour",
        "indefinite",
        "month",
        "week",
        "year"
      ],
      "type": "string"
    },
    "IdpRetentionDuration": {
      "properties": {
        "duration": {
          "type": "integer"
        },
        "unit": {
          "$ref": "#/$defs/IdpDurationUnit"
        }
      },
      "type": "object"
    },
    "UserstoreDataLifeCycleState": {
      "enum": [
        "",
        "live",
        "postdelete",
        "predelete",
        "softdeleted"
      ],
      "type": "string"
    },
    "UuidUUID": {
      "format": "uuid",
      "type": "string"
    }
  }
}