PUT
/
parsers
/
{id}
Update a parser
curl --request PUT \
  --url https://{FUSION HOST}/api/parsers/{id} \
  --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.

Path Parameters

id
string
required

The entity ID

Query Parameters

context
string

The app to which this object belongs, as app:SomeApp. If the app doesn't exist, the request fails. Other comma-separated contexts in the context parameter are allowed but ignored.

Body

application/json

Response

200
application/json

OK

The response is of type object.