Data Policies
Preview a data policy
Changed onPreviews the latest version on one record set without writing anything: one sample record as the policy would leave it, and how many records the set holds. A rule that fails on the record answers 200 with ok: false and the error, so an editor can show it inline. Answers 504 when the preview does not finish within 5 seconds (retry). Requires specs:write. The person behind the key must be an Admin of the workspace, and the workspace must manage its own configuration; otherwise the answer is 403 insufficient_role.
post/v1/data-policies/{id}/test
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Path parameters
id, string uuid required
Request body
object required
record_set_id, string uuid required
sample_record_id, string
The record to show; the first one when absent.
Response
OK
object required
ok, boolean
sample, object
total_records, integer
error, unknown
Changes
- info
endpoint added
- info