Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

POST /config/event_sources/generated_regexes

Retrieves a regex pattern

Table 1: POST /config/event_sources/generated_regexes Resource Details

MIME Type

application/json

Table 2: POST /config/event_sources/generated_regexes Request Parameter Details

Parameter

Type

Optionality

Data Type

MIME Type

Description

fields

header

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3: POST /config/event_sources/generated_regexes Request Body Details

Parameter

Data Type

MIME Type

Description

Sample

payload

Object

application/json

An event sample containing the data which you want the generated regular expression to capture, a leading anchor and trailing anchor.

{ "payload_data": [ { "capture_groups": [ { "begin_index": 42, "end_index": 42 } ], "event_sample": "String" } ], "regex": "String" }

Table 4: POST /config/event_sources/generated_regexes Response Codes

HTTP Response Code

Unique Code

Description

200

 

The requested regex pattern was generated and returned successfully.

422

10025

The system was unable to create a regular expression because of invalid indices.

422

10026

The system was unable to create a regular expression because of an invalid beginning index.

422

10027

null

500

1020

The system was unable to confidently create a regular expression.

Response Description

The generated regex pattern.

Response Sample