Preview the effects of applying an access template without making changes (dry-run)
Pass the target ID as instance_id.
Request body application/json · PreviewTemplateRequest
Preview request
Target to preview against. Its engine must match the template engine
Inline template body. Mutually exclusive with template_name and template_version
Saved access template to preview. Requires template_version
Version of the saved template. Required together with template_name
Responses
OK
PreviewTemplateResponse · 4 fields
3 fields
5 fields
Bad Request - the request does not name exactly one template source, or the template, its variables or the target type cannot produce a preview
Forbidden - the caller's organization role cannot change access
Not Found - the target or the template name and version do not exist
Unprocessable Entity - Future objects stay on for a PostgreSQL template body while one of its rows names its objects by name or by a name mask. Field_errors names the switch Also when Principal doesn't manage the target of the rule or template (before v7.3 that answer was 403 authorization.denied).
Common errors: 401 409 413 429 503 504. They mean the same for every operation, see Errors.