{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-campaign/refs/heads/main/json-structure/adobe-campaign-classic-write-request-structure.json",
  "name": "WriteRequest",
  "description": "SOAP envelope containing an entity element for the target schema with attribute values and an _operation attribute controlling the write behavior.",
  "type": "object",
  "properties": {
    "entity": {
      "type": "object",
      "properties": {
        "_operation": {
          "type": "string",
          "enum": [
            "insert",
            "insertOrUpdate",
            "update",
            "delete"
          ],
          "description": "The write operation to perform. insert creates a new record, insertOrUpdate creates or updates, update modifies existing, delete removes."
        },
        "_schema": {
          "type": "string",
          "description": "Target schema name."
        }
      }
    }
  }
}