Create a parser
import requests
url = "https://{FUSION HOST}/api/parsers"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Create a parser
deprecated
The request is a JSON body defining the new parser. Only the id field is required to create a new parser that contains no stages. Use /api/parsers/_schema to get the schema for parserStages and other parser configuration keys.
POST
/
parsers
Create a parser
import requests
url = "https://{FUSION HOST}/api/parsers"
payload = {}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Authorizations
Basic authAPI key
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
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
201 - */*
Created
Was this page helpful?
⌘I