# Create Mainframe Dataset metadata

Endpoint: POST /mainframe-dataset-metadata
Version: 5.1.51
Security: api_key

## Security:

  - `api_key` (unknown)
    apiKey in header Authorization

## Request body:

  - `application/json` (unknown)
    The Mainframe Dataset metadata to create

## Request fields (application/json):

  - `fileName` (string, required)
    The name of the Mainframe Dataset metadata. This name must match the name of a file in the ruleset it is created on. This name must be unique for the given ruleset; in other words, the same file cannot be added to a ruleset more than once.

  - `rulesetId` (integer, required)
    The ID of the ruleset to create the Mainframe Dataset metadata on.

  - `mainframeDatasetFormatId` (integer)
    The ID of the Mainframe Dataset format corresponding to this Mainframe Dataset metadata. It is used to determine the fields for this file. This field is required.

  - `recordFormat` (string)
    The record format type for the mainframe data set. Note that this enum corresponds to the Variable Length checkbox in the UI.
    Enum: "FIXED_BLOCKED", "VARIABLE_BLOCKED"

  - `nameIsRegularExpression` (boolean)
    Whether or not this file name represents a regular expression.

## Response default:

  - `default` (unknown)
    Successful operation

## Response default fields (application/json):

  - `mainframeDatasetMetadataId` (integer)
    The ID of the Mainframe Dataset metadata. This field is set by the Masking Engine.

  - `fileName` (string, required)
    The name of the Mainframe Dataset metadata. This name must match the name of a file in the ruleset it is created on. This name must be unique for the given ruleset; in other words, the same file cannot be added to a ruleset more than once.

  - `rulesetId` (integer, required)
    The ID of the ruleset to create the Mainframe Dataset metadata on.

  - `mainframeDatasetFormatId` (integer)
    The ID of the Mainframe Dataset format corresponding to this Mainframe Dataset metadata. It is used to determine the fields for this file. This field is required.

  - `recordFormat` (string)
    The record format type for the mainframe data set. Note that this enum corresponds to the Variable Length checkbox in the UI.
    Enum: "FIXED_BLOCKED", "VARIABLE_BLOCKED"

  - `nameIsRegularExpression` (boolean)
    Whether or not this file name represents a regular expression.

