POST
/
parsers
{?context}
Create a new entity from JSON
curl --request POST \
  --url https://{FUSION HOST}/api/parsers{?context} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "detectMediaTypeBasedOnExtension": true,
  "enableMediaTypeDetection": true,
  "id": "<string>",
  "idField": "<string>",
  "maxFieldLength": 123,
  "maxParserDepth": 123,
  "parserStages": [
    {
      "enabled": true,
      "errorHandling": "fail",
      "id": "<string>",
      "ignoredMediaTypes": [
        "<string>"
      ],
      "inheritMediaTypes": true,
      "label": "<string>",
      "mediaTypes": [
        "<string>"
      ],
      "outputFieldPrefix": "<string>",
      "pathPatterns": [
        {
          "pattern": "<string>",
          "syntax": "glob"
        }
      ]
    }
  ]
}'
{
  "detectMediaTypeBasedOnExtension": true,
  "enableMediaTypeDetection": true,
  "id": "<string>",
  "idField": "<string>",
  "maxFieldLength": 123,
  "maxParserDepth": 123,
  "parserStages": [
    {
      "enabled": true,
      "errorHandling": "fail",
      "id": "<string>",
      "ignoredMediaTypes": [
        "<string>"
      ],
      "inheritMediaTypes": true,
      "label": "<string>",
      "mediaTypes": [
        "<string>"
      ],
      "outputFieldPrefix": "<string>",
      "pathPatterns": [
        {
          "pattern": "<string>",
          "syntax": "glob"
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Response

201
application/json

Created

The response is of type object.