ApifyClient.API.Tasks.Input (apify_client v1.0.0)

Copy Markdown View Source

Provides API endpoints related to api/tasks/input

Summary

Functions

get(actor_task_id, opts \\ [])

@spec get(actor_task_id :: String.t(), opts :: keyword()) ::
  {:ok, map() | nil} | {:error, ApifyClient.Error.t()}

Get Actor task input

Returns the input of a given task.

update(actor_task_id, body, opts \\ [])

@spec update(actor_task_id :: String.t(), body :: map(), opts :: keyword()) ::
  {:ok, map() | nil} | {:error, ApifyClient.Error.t()}

Update Actor task input

Updates the input of a task using values specified by an object passed as JSON in the PUT payload.

If the object does not define a specific property, its value is not updated.

The response is the full task input as returned by the Get Actor task input endpoint.

The request needs to specify the Content-Type: application/json HTTP header!

When providing your API authentication token, we recommend using the request's Authorization header, rather than the URL. For details, see Authentication.

Request Body

Content Types: application/json