Python SDKFeature Clients

Filters Client

Bases: BaseRestClient

The filters client is a client for interacting with Hatchet's filters API.

Methods:

NameDescription
aio_createCreate a new filter.
aio_deleteDelete a filter by its ID.
aio_getGet a filter by its ID.
aio_listList filters for a given tenant.
aio_updateUpdate a filter by its ID.
createCreate a new filter.
deleteDelete a filter by its ID.
getGet a filter by its ID.
listList filters for a given tenant.
updateUpdate a filter by its ID.

Functions

aio_create

Create a new filter.

Parameters:

NameTypeDescriptionDefault
workflow_idstrThe ID of the workflow to associate with the filter.required
expressionstrThe expression to evaluate for the filter.required
scopestrThe scope for the filter.required
payloadJSONSerializableMapping | NoneThe payload to send with the filter.None

Returns:

TypeDescription
V1FilterThe created filter.

aio_delete

Delete a filter by its ID.

Parameters:

NameTypeDescriptionDefault
filter_idstrThe ID of the filter to delete.required

Returns:

TypeDescription
V1FilterThe deleted filter.

aio_get

Get a filter by its ID.

Parameters:

NameTypeDescriptionDefault
filter_idstrThe ID of the filter to retrieve.required

Returns:

TypeDescription
V1FilterThe filter with the specified ID.

aio_list

List filters for a given tenant.

Parameters:

NameTypeDescriptionDefault
limitint | NoneThe maximum number of filters to return.None
offsetint | NoneThe number of filters to skip before starting to collect the result set.None
workflow_idslist[str] | NoneA list of workflow IDs to filter by.None
scopeslist[str] | NoneA list of scopes to filter by.None

Returns:

TypeDescription
V1FilterListA list of filters matching the specified criteria.

aio_update

Update a filter by its ID.

Parameters:

NameTypeDescriptionDefault
filter_idstrThe ID of the filter to delete.required
updatesV1UpdateFilterRequestThe updates to apply to the filter.required

Returns:

TypeDescription
V1FilterThe updated filter.

create

Create a new filter.

Parameters:

NameTypeDescriptionDefault
workflow_idstrThe ID of the workflow to associate with the filter.required
expressionstrThe expression to evaluate for the filter.required
scopestrThe scope for the filter.required
payloadJSONSerializableMapping | NoneThe payload to send with the filter.None

Returns:

TypeDescription
V1FilterThe created filter.

delete

Delete a filter by its ID.

Parameters:

NameTypeDescriptionDefault
filter_idstrThe ID of the filter to delete.required

Returns:

TypeDescription
V1FilterThe deleted filter.

get

Get a filter by its ID.

Parameters:

NameTypeDescriptionDefault
filter_idstrThe ID of the filter to retrieve.required

Returns:

TypeDescription
V1FilterThe filter with the specified ID.

list

List filters for a given tenant.

Parameters:

NameTypeDescriptionDefault
limitint | NoneThe maximum number of filters to return.None
offsetint | NoneThe number of filters to skip before starting to collect the result set.None
workflow_idslist[str] | NoneA list of workflow IDs to filter by.None
scopeslist[str] | NoneA list of scopes to filter by.None

Returns:

TypeDescription
V1FilterListA list of filters matching the specified criteria.

update

Update a filter by its ID.

Parameters:

NameTypeDescriptionDefault
filter_idstrThe ID of the filter to delete.required
updatesV1UpdateFilterRequestThe updates to apply to the filter.required

Returns:

TypeDescription
V1FilterThe updated filter.

Last updated on September 1, 2026

On this page