Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Version 0.4.8 - 2025-11-17

- Add delete_validation method

## Version 0.4.7 - 2025-11-14

- Add create_action_run method
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cradl"
version = "0.4.7"
version = "0.4.8"
description = "Python SDK for Cradl"
authors = [{ name = "Cradl", email = "[email protected]" }]
readme = "README.md"
Expand Down
17 changes: 17 additions & 0 deletions src/cradl/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2647,6 +2647,23 @@ def create_validation(
body.update(**optional_args)
return self._make_request(requests.post, '/validations', body=body)

def delete_validation(self, validation_id: str) -> Dict:
"""Delete the validation with the provided validation_id, calls the DELETE /validations/{validation_id} endpoint.

>>> from cradl.client import Client
>>> client = Client()
>>> client.delete_validation('<validation_id>')

:param validation_id: Id of the validation
:type validation_id: str
:return: Validation response from REST API
:rtype: dict

:raises: :py:class:`~cradl.InvalidCredentialsException`, :py:class:`~cradl.TooManyRequestsException`,\
:py:class:`~cradl.LimitExceededException`, :py:class:`requests.exception.RequestException`
"""
return self._make_request(requests.delete, f'/validations/{validation_id}')

def create_validation_task(
self,
validation_id: str,
Expand Down
Loading