@@ -459,11 +459,14 @@ 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 (
463+ self , run_input : Any = None , * , build_tag : str | None = None , content_type : str | None = None
464+ ) -> bool :
463465 """Validate an input for the Actor that defines an input schema.
464466
465467 Args:
466468 run_input: The input to validate.
469+ build_tag: The actor's build tag.
467470 content_type: The content type of the input.
468471
469472 Returns:
@@ -476,6 +479,7 @@ def validate_input(self, run_input: Any = None, content_type: str | None = None)
476479 method = 'POST' ,
477480 headers = {'content-type' : content_type },
478481 data = run_input ,
482+ params = self ._params (build = build_tag ),
479483 )
480484
481485 return True
@@ -851,11 +855,14 @@ def webhooks(self) -> WebhookCollectionClientAsync:
851855 """Retrieve a client for webhooks associated with this Actor."""
852856 return WebhookCollectionClientAsync (** self ._sub_resource_init_options ())
853857
854- async def validate_input (self , run_input : Any = None , content_type : str | None = None ) -> bool :
858+ async def validate_input (
859+ self , run_input : Any = None , * , build_tag : str | None = None , content_type : str | None = None
860+ ) -> bool :
855861 """Validate an input for the Actor that defines an input schema.
856862
857863 Args:
858864 run_input: The input to validate.
865+ build_tag: The actor's build tag.
859866 content_type: The content type of the input.
860867
861868 Returns:
@@ -868,6 +875,7 @@ async def validate_input(self, run_input: Any = None, content_type: str | None =
868875 method = 'POST' ,
869876 headers = {'content-type' : content_type },
870877 data = run_input ,
878+ params = self ._params (build = build_tag ),
871879 )
872880
873881 return True
0 commit comments