You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The task's last run, optionally filtered by status. See Actor runs for the accepted status values.
last_run_with_options(options)
LastRunOptions { status, origin }
RunClient
The task's last run, optionally filtered by status and/or origin. See Actor runs for the accepted status and origin values (common origins: DEVELOPMENT, WEB, API, SCHEDULER).
runs()
—
RunCollectionClient
The task's runs.
webhooks()
—
WebhookCollectionClient
The task's webhooks.
The Task model
Task lives in apify_client::models (use apify_client::models::Task;). Returned by get,
create, update and (as PaginationList<Task>) by list. Unknown fields returned by the API
are preserved in extra.
Field
Type
Description
id
String
Unique task ID (always present); used to build a client.task(&task.id) client.
act_id
Option<String>
ID of the Actor this task runs.
user_id
Option<String>
ID of the user who owns the task.
name
Option<String>
Technical name of the task, used in API paths.
title
Option<String>
Human-readable title shown in the UI.
description
Option<String>
Human-readable description shown on the task's public landing page. Required (up to 400 characters), alongside title (3 to 63 characters), to publish the task.
created_at
Option<DateTime<Utc>>
When the task was created.
modified_at
Option<DateTime<Utc>>
When the task was last modified.
is_public
Option<bool>
Whether the task is published on its public landing page. Derived from public_config.published_at; set it via publish()/unpublish() or update().
public_config
Option<TaskPublicConfig>
The task's public landing page display configuration, or None if never configured.
extra
Extra
Any other fields returned by the API.
The TaskPublicConfig model
TaskPublicConfig lives in apify_client::models (use apify_client::models::TaskPublicConfig;).
The task is published when published_at is set and unpublished when it is None; published_at
is server-controlled (read-only) - use publish()/unpublish() to change the publication state.
Field
Type
Description
published_at
Option<DateTime<Utc>>
When the task was published, or None if unpublished. Read-only.
seo_title
Option<String>
Name shown by search engines. Defaults to the task title when unset.
seo_description
Option<String>
Description shown by search engines. Defaults to the task description when unset.
input_schema_fields
Option<Vec<String>>
Names of the task input fields displayed on the public task page.
dataset_name
Option<String>
Name of the Actor dataset schema entry whose results are displayed. None uses the Actor's default dataset.
dataset_view
Option<String>
Key of the dataset view (from the Actor's dataset schema) used to display results. Required to publish the task.