{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/akamai/main/json-schema/appsec-config-post-schema.json",
  "title": "config-post",
  "additionalProperties": false,
  "description": "Specifies the details of a security config.",
  "properties": {
    "configId": {
      "description": "Uniquely identifies the security configuration.",
      "type": "integer"
    },
    "contractId": {
      "description": "Contract ID.",
      "type": "string"
    },
    "createFrom": {
      "additionalProperties": false,
      "description": "Contains details about a source configuration and version for cloning a new security configuration.",
      "properties": {
        "configId": {
          "description": "Uniquely identifies the security configuration.",
          "type": "integer"
        },
        "version": {
          "description": "The configuration version to clone from.",
          "type": "integer"
        }
      },
      "required": [
        "configId",
        "version"
      ],
      "type": "object"
    },
    "description": {
      "description": "Describes the security configuration.",
      "type": "string"
    },
    "groupId": {
      "description": "Group ID.",
      "type": "integer"
    },
    "hostnames": {
      "description": "List of hostnames to be added to the configuration.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "name": {
      "description": "The name you assigned to the security configuration.",
      "type": "string"
    },
    "version": {
      "description": "The configuration version of the security configuration.",
      "type": "integer"
    }
  },
  "required": [
    "name",
    "description",
    "hostnames"
  ],
  "type": "object",
  "x-akamai": {
    "file-path": "schemas/config-post.yaml"
  }
}