/policyengine/v1/regex: POST
Registers the regular expression in the Data Cataloging system.
The table shows the roles that can perform create operation on the endpoint:
Data admin | Data user | Collection Admin | Admin | Service user |
---|---|---|---|---|
✓ | ✓ | ✓ | X | X |
Synopsis of the request URL
curl -k -H 'Authorization: Bearer <token>'
https://$SDHOST/policyengine/v1/regex -d @regexp.json -H "Content-type:application/json" -X POST
Supported request types and response formats
Supported request types:
- POST
- JSON
Examples
The following example shows how to register a regular expression.
Issue the following request on one line:
curl -k -H "Authorization: Bearer ${TOKEN}" https://$SDHOST/policyengine/v1/regex -d @regexp.json -H "Content-type:application/json" -X POST
Example: Request JSON file
{
"regex_id": "US-SSN-blank-delimited",
"pattern": "\\b\\d{3}\\s\\d{2}\\s\\d{4}\\b",
"description": "US SSN delimited by white space, not dashes."
}
The following response is returned:
201(Created)