Skip to content

Commit 64e3f26

Browse files
committed
Add build tag parameter
1 parent 4bbfca4 commit 64e3f26

File tree

1 file changed

+6
-2
lines changed
  • src/apify_client/clients/resource_clients

1 file changed

+6
-2
lines changed

src/apify_client/clients/resource_clients/actor.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,12 @@ def webhooks(self) -> WebhookCollectionClient:
459459
"""Retrieve a client for webhooks associated with this Actor."""
460460
return WebhookCollectionClient(**self._sub_resource_init_options())
461461

462-
def validate_input(self, run_input: Any = None, content_type: str | None = None) -> bool:
462+
def validate_input(self, run_input: Any = None, *, build_tag:str| None = None, content_type: str | None = None) -> bool:
463463
"""Validate an input for the Actor that defines an input schema.
464464
465465
Args:
466466
run_input: The input to validate.
467+
build_tag: The actor's build tag.
467468
content_type: The content type of the input.
468469
469470
Returns:
@@ -476,6 +477,7 @@ def validate_input(self, run_input: Any = None, content_type: str | None = None)
476477
method='POST',
477478
headers={'content-type': content_type},
478479
data=run_input,
480+
params=self._params(build=build_tag),
479481
)
480482

481483
return True
@@ -851,11 +853,12 @@ def webhooks(self) -> WebhookCollectionClientAsync:
851853
"""Retrieve a client for webhooks associated with this Actor."""
852854
return WebhookCollectionClientAsync(**self._sub_resource_init_options())
853855

854-
async def validate_input(self, run_input: Any = None, content_type: str | None = None) -> bool:
856+
async def validate_input(self, run_input: Any = None, *, build_tag:str| None = None, content_type: str | None = None) -> bool:
855857
"""Validate an input for the Actor that defines an input schema.
856858
857859
Args:
858860
run_input: The input to validate.
861+
build_tag: The actor's build tag.
859862
content_type: The content type of the input.
860863
861864
Returns:
@@ -868,6 +871,7 @@ async def validate_input(self, run_input: Any = None, content_type: str | None =
868871
method='POST',
869872
headers={'content-type': content_type},
870873
data=run_input,
874+
params=self._params(build=build_tag),
871875
)
872876

873877
return True

0 commit comments

Comments
 (0)