Skip to content

Commit 1ba3d46

Browse files
committed
Add project_id and project_run_id to create_validation_task
1 parent 449d236 commit 1ba3d46

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: las/client.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -2701,6 +2701,8 @@ def create_validation_task(
27012701
input: dict,
27022702
*,
27032703
metadata: Optional[dict] = None,
2704+
project_id: str = None,
2705+
project_run_id: str = None,
27042706
**optional_args,
27052707
) -> Dict:
27062708
"""Creates a validation, calls the POST /validations endpoint.
@@ -2721,7 +2723,12 @@ def create_validation_task(
27212723
:raises: :py:class:`~las.InvalidCredentialsException`, :py:class:`~las.TooManyRequestsException`,\
27222724
:py:class:`~las.LimitExceededException`, :py:class:`requests.exception.RequestException`
27232725
"""
2724-
body = dictstrip({'input': input, 'metadata': metadata})
2726+
body = dictstrip({
2727+
'input': input,
2728+
'metadata': metadata,
2729+
'projectId': project_id,
2730+
'projectRunId': project_run_id,
2731+
})
27252732
body.update(**optional_args)
27262733
return self._make_request(requests.post, f'/validations/{validation_id}/tasks', body=body)
27272734

0 commit comments

Comments
 (0)