/policyengine/v1/regex: PUT
Updates the regular expressions in the Data Cataloging system.
The table shows the roles that can perform update 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 PUT
Supported request types and response formats
Supported request types:
- POST
- JSON
Examples
The following example shows how to update 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 PUT
Example: Request JSON payload
{
"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:
200(OK)
Accepted