ApifyClient. API. Actors. Runs. Last. RequestQueue. Requests. Batch
(apify_client v1.0.0)
Copy Markdown
View Source
Provides API endpoints related to api/actors/runs/last/request queue/requests/batch
Summary
Functions
Batch add requests to the default request queue of an Actor's last run
Batch delete requests from the default request queue of an Actor's last run
Functions
@spec create( actor_id :: String.t(), body :: [map() | ApifyClient.Schemas.RequestWithoutId.t()], opts :: keyword() ) :: {:ok, ApifyClient.Schemas.BatchAddResult.t()} | {:error, ApifyClient.Error.t()}
Batch add requests to the default request queue of an Actor's last run
Adds requests to the default request queue of the last Actor run in batch.
This endpoint is a shortcut for getting the last run's defaultRequestQueueId and then using the
Batch add requests to request queue endpoint.
Options
status: Filter for the run status.origin: Filter for the run origin, i.e. the means by which the run was started.client_key: A unique identifier of the client accessing the request queue. It must be a string between 1 and 32 characters long. This identifier is used to determine whether the queue was accessed by multiple clients. IfclientKeyis not provided, the system considers this API call to come from a new client. For details, see thehadMultipleClientsfield returned by the Get request queue head endpoint.forefront: Determines if request should be added to the head of the queue or to the end. Default value isfalse(end of queue).
Request Body
Content Types: application/json
@spec delete( actor_id :: String.t(), body :: [ map() | ApifyClient.Schemas.RequestToDeleteById.t() | ApifyClient.Schemas.RequestToDeleteByUniqueKey.t() ], opts :: keyword() ) :: {:ok, ApifyClient.Schemas.BatchDeleteResult.t()} | {:error, ApifyClient.Error.t()}
Batch delete requests from the default request queue of an Actor's last run
Batch-deletes requests from the default request queue of the last Actor run.
This endpoint is a shortcut for getting the last run's defaultRequestQueueId and then using the
Batch delete requests from request queue endpoint.
Options
status: Filter for the run status.origin: Filter for the run origin, i.e. the means by which the run was started.client_key: A unique identifier of the client accessing the request queue. It must be a string between 1 and 32 characters long. This identifier is used to determine whether the queue was accessed by multiple clients. IfclientKeyis not provided, the system considers this API call to come from a new client. For details, see thehadMultipleClientsfield returned by the Get request queue head endpoint.
Request Body
Content Types: application/json