Filter endpoints allow you to review and manage filters for async messages. A filter can contain multiple rules, but you can only create one filter per subscription. Learn about filters.
You can retrieve, create, update, or delete filters, as well as review and manage filter links.
Restore filter
Restore a filter to a previously used version. You can select which version to restore, whether going backward or forward.
To preview changes, set the dryRun query parameter to true. Otherwise, set the dryRun query parameter to false or omit altogether to immediately apply the restored version to the linked subscription.
cURL request example
Path Parameters
- filterIdrequired, string
Displays the unique identifier of the filter.
Query Parameters
- dryRunboolean
Specifies whether the restore will be previewed or executed. Set to
true
to run a preview of restoring the asset; this keeps the asset at its current version. Set tofalse
(or omit) to restore the version.
Request Body Schema
- versionnumber
- previousobject
Contains a filter and its related details.
- idstring
Contains the unique identifier of the asset.
Format: uuid - namestring
Contains the human-readable name of the asset.
- rulesArray of object
Contains a list of rules that determine when the filter is applied to a message. A filter is only applied if ALL rules are met.
- pathstring
Specifies the path to the field(s) that should be evaluated when the filter is applied. This should be a
jsonpath
value. - valuesArray of string
Contains an array of string values that are matched against the path value when the rule is evaluated.
- allowListboolean
Indicates whether the rule is an allow-list (matches when the value at the specified path is in the values array) or a deny-list (matches when the value at the specified path is NOT in the values array). Defaults to
true
(allow-list).
- actionstring
Defines what action should be performed when the filter is applied to a message.
Possible Values:block-all
,send
- pathTypestring
Specifies the format of the field paths defined for this filter's rules. Both FHIR and data model filters use the
jsonpath
path type.Value:jsonpath
- versionstring
Contains the API schema version used for this asset.
- filterVersionnumber
Contains the numeric version of the asset. Version numbers start at 1 and increment in whole numbers whenever the asset is updated.
- createdAtstring
Displays the date and time that the asset was originally created in ISO 8601 format.
- createdByobject
Contains the metadata about the user who created the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- updatedAtstring
Displays the date and time that the asset was last updated in ISO 8601 format.
- updatedByobject
Contains the metadata about the user who last updated the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- deletedAtnullable, string
Displays the date and time that the asset was deleted. Returns a
null
value if the asset hasn't been deleted. - deletedBynullable, object
Contains the metadata about the user who deleted the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- currentobject
Contains a filter and its related details.
- idstring
Contains the unique identifier of the asset.
Format: uuid - namestring
Contains the human-readable name of the asset.
- rulesArray of object
Contains a list of rules that determine when the filter is applied to a message. A filter is only applied if ALL rules are met.
- pathstring
Specifies the path to the field(s) that should be evaluated when the filter is applied. This should be a
jsonpath
value. - valuesArray of string
Contains an array of string values that are matched against the path value when the rule is evaluated.
- allowListboolean
Indicates whether the rule is an allow-list (matches when the value at the specified path is in the values array) or a deny-list (matches when the value at the specified path is NOT in the values array). Defaults to
true
(allow-list).
- actionstring
Defines what action should be performed when the filter is applied to a message.
Possible Values:block-all
,send
- pathTypestring
Specifies the format of the field paths defined for this filter's rules. Both FHIR and data model filters use the
jsonpath
path type.Value:jsonpath
- versionstring
Contains the API schema version used for this asset.
- filterVersionnumber
Contains the numeric version of the asset. Version numbers start at 1 and increment in whole numbers whenever the asset is updated.
- createdAtstring
Displays the date and time that the asset was originally created in ISO 8601 format.
- createdByobject
Contains the metadata about the user who created the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- updatedAtstring
Displays the date and time that the asset was last updated in ISO 8601 format.
- updatedByobject
Contains the metadata about the user who last updated the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- deletedAtnullable, string
Displays the date and time that the asset was deleted. Returns a
null
value if the asset hasn't been deleted. - deletedBynullable, object
Contains the metadata about the user who deleted the asset.
- idnumber
Contains the unique identifier of the user.
- namenullable, string
Displays the user's full name.
- dryRunboolean