{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-program-rest20-schema.json",
  "title": "Program",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-2-0-programs-api-openapi.yml#/components/schemas/ProgramRest20",
  "properties": {
    "type": {
      "type": "string",
      "description": "The asset's type in Eloqua. This is a read-only property."
    },
    "id": {
      "type": "string",
      "readOnly": true,
      "description": "Id of the program."
    },
    "currentStatus": {
      "type": "string",
      "description": "The program's current status: Active, Draft, Scheduled, Paused, or Completed."
    },
    "name": {
      "type": "string",
      "description": "The name of the program."
    },
    "description": {
      "type": "string",
      "description": "The description of the program."
    },
    "permissions": {
      "type": "array",
      "description": "The permissions for the program granted to your current instance. This is a read-only property.",
      "items": {
        "type": "string"
      }
    },
    "folderId": {
      "type": "string",
      "readOnly": true,
      "description": "The folder id of the folder which contains the program."
    },
    "sourceTemplateId": {
      "type": "string",
      "description": "Id of the template used to create the asset."
    },
    "createdBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user who created the program."
    },
    "createdByName": {
      "type": "string",
      "description": "The name of the user who created the program."
    },
    "createdAt": {
      "type": "string",
      "readOnly": true,
      "description": "The date and time the program was created, expressed in Unix time."
    },
    "updatedBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user that last updated the program."
    },
    "updatedByName": {
      "type": "string",
      "description": "The name of the user who last updated the program."
    },
    "updatedAt": {
      "type": "string",
      "readOnly": true,
      "description": "Unix timestamp for the date and time the program was last updated. This is a read-only property."
    },
    "scheduledFor": {
      "type": "string",
      "readOnly": true,
      "description": "The date the program is scheduled."
    },
    "depth": {
      "type": "string",
      "readOnly": true,
      "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. Any other values passed are reset to <code>complete</code> by default. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
    },
    "elements": {
      "type": "array",
      "description": "A list of program elements.",
      "items": {
        "$ref": "#/$defs/CampaignElementRest20"
      }
    },
    "isReadOnly": {
      "type": "string",
      "description": "Whether or not the program is read only."
    },
    "runAsUserId": {
      "type": "string",
      "description": "The login id of the user to activate the program."
    },
    "isExitHistoryDisabled": {
      "type": "string",
      "description": "Whether or not the Exit History is disabled due to high volume. This is a read-only property."
    },
    "isBypassHistoryDisabled": {
      "type": "string",
      "description": "Whether or not the Bypass History is disabled due to high volume. This is a read-only property."
    },
    "isMemberAllowedDuplicates": {
      "type": "string",
      "description": "Whether contacts are allowed to enter the program more than once. If false, once a contact enters the program, the contact cannot enter the program again from another entry point."
    },
    "defaultEntityType": {
      "type": "string",
      "description": "The program type, possible values are Contact or CustomObjectRecords."
    },
    "defaultEntityId": {
      "type": "string",
      "description": "The id of the custom object data set. Only used for custom object programs."
    }
  },
  "$defs": {
    "CampaignElementRest20": {
      "title": "CampaignElement",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property."
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "Id of the campaign element. This is a read-only property."
        },
        "currentStatus": {
          "type": "string",
          "description": "The campaign element's current status."
        },
        "name": {
          "type": "string",
          "description": "Name of the campaign element. This is a read-only property."
        },
        "description": {
          "type": "string",
          "description": "The description of the campaign element."
        },
        "permissions": {
          "type": "array",
          "description": "The permissions for the campaign element granted to your current instance. This is a read-only property.",
          "items": {
            "type": "string"
          }
        },
        "folderId": {
          "type": "string",
          "readOnly": true,
          "description": "Id of the associated folder."
        },
        "sourceTemplateId": {
          "type": "string",
          "description": "The id of the source template."
        },
        "createdBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user who created the campaign element."
        },
        "createdByName": {
          "type": "string",
          "description": "The name of the user who created the campaign element."
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "The date and time the campaign element was created, expressed in Unix time. "
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user that last updated the campaign element."
        },
        "updatedByName": {
          "type": "string",
          "description": "The name of the user who last updated the campaign element."
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true,
          "description": "Unix timestamp for the date and time the campaign element was last updated."
        },
        "scheduledFor": {
          "type": "string",
          "readOnly": true,
          "description": "The date the campaign element is scheduled."
        },
        "depth": {
          "type": "string",
          "readOnly": true,
          "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. Any other values passed are reset to <code>complete</code> by default. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
        },
        "position": {
          "$ref": "#/$defs/PositionRest20",
          "description": "Array of campaign element position fields."
        },
        "outputTerminals": {
          "type": "array",
          "description": "A list of the campaign element ids within the campaign. This is a read-only property.",
          "items": {
            "$ref": "#/$defs/CampaignOutputTerminalRest20"
          }
        },
        "memberCount": {
          "type": "string",
          "description": "Amount of members within the campaign element. This is a read-only property."
        },
        "memberErrorCount": {
          "type": "string",
          "description": "Amount of members within the campaign element in errored status. This is a read-only property."
        }
      }
    },
    "CampaignOutputTerminalRest20": {
      "title": "CampaignOutputTerminal",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property. "
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "Id of the campaign output terminal. This is a read-only property."
        },
        "currentStatus": {
          "type": "string",
          "description": "The campaign output terminal's current status."
        },
        "name": {
          "type": "string",
          "description": "Name of the campaign output terminal."
        },
        "description": {
          "type": "string",
          "description": "The description of the campaign output terminal."
        },
        "permissions": {
          "type": "array",
          "description": "The permissions for the campaign output terminal granted to your current instance.",
          "items": {
            "type": "string"
          }
        },
        "folderId": {
          "type": "string",
          "readOnly": true,
          "description": "Id of the associated folder."
        },
        "sourceTemplateId": {
          "type": "string",
          "description": "The id of the source template."
        },
        "createdBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user who created the campaign output terminal."
        },
        "createdByName": {
          "type": "string",
          "description": "The name of the user who created the campaign output terminal."
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "The date and time the campaign output terminal was created, expressed in Unix time."
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user that last updated the campaign output terminal."
        },
        "updatedByName": {
          "type": "string",
          "description": "The name of the user who last updated the campaign output terminal."
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true,
          "description": "Unix timestamp for the date and time the campaign output terminal was last updated. This is a read-only property."
        },
        "scheduledFor": {
          "type": "string",
          "readOnly": true,
          "description": "The date the campaign output terminal is scheduled."
        },
        "depth": {
          "type": "string",
          "readOnly": true,
          "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
        },
        "terminalType": {
          "type": "string",
          "description": "The campaign output terminal type. This is a read-only property."
        },
        "connectedType": {
          "type": "string",
          "description": "The campaign output terminal's connection type. This is a read-only property."
        },
        "connectedId": {
          "type": "string",
          "description": "The connected id of the campaign output terminal. This is a read-only property."
        }
      }
    },
    "PositionRest20": {
      "title": "Position",
      "properties": {
        "type": {
          "type": "string",
          "description": "The campaign element's type. This is a read-only property."
        },
        "x": {
          "type": "string",
          "description": "The position of the campaign element on the x axis."
        },
        "y": {
          "type": "string",
          "description": "The position of the campaign element on the y axis."
        }
      }
    }
  }
}