Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to the Rust Apify API client are documented here. The format
based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project adheres
to [Semantic Versioning](https://semver.org/).

## [0.10.0] - 2026-09-04

### Added
- `Task::description`, matching the spec's newly-documented task `description` field (also
present on the reference JS client's `Task`). Previously only accessible untyped via
`Task::extra`.

### Changed
- Bumped `API_SPEC_VERSION` to `v2-2026-09-02T154542Z`.
- Bumped crate version to `0.10.0`.

## [0.9.1] - 2026-08-28

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apify-client"
version = "0.9.1"
version = "0.10.0"
authors = ["Apify Technologies <support@apify.com>"]
description = "An official, but experimental, AI-generated and AI-maintained Rust client for the Apify API (https://apify.com)."
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ are preserved in `extra`.
| `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()`. |
Expand Down
5 changes: 5 additions & 0 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ pub struct Task {
/// Human-readable title.
#[serde(default)]
pub title: 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`](crate::clients::task::TaskClient::publish)
/// the task.
#[serde(default)]
pub description: Option<String>,
/// When the task was created.
#[serde(default)]
pub created_at: Option<DateTime<Utc>>,
Expand Down
2 changes: 1 addition & 1 deletion src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pub const CLIENT_VERSION: &str = env!("CARGO_PKG_VERSION");
/// and verified against.
///
/// This corresponds to the `info.version` field of the Apify OpenAPI document.
pub const API_SPEC_VERSION: &str = "v2-2026-08-27T071624Z";
pub const API_SPEC_VERSION: &str = "v2-2026-09-02T154542Z";
8 changes: 6 additions & 2 deletions tests/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,17 @@ async fn task_crud_flow() {
let input = task_client.get_input().await.expect("get input");
assert!(input.is_some());

// Update (rename).
// Update (rename + set description).
let renamed = common::unique_name("task-renamed");
let updated = task_client
.update(&json!({ "name": renamed }))
.update(&json!({ "name": renamed, "description": "Updated by task_crud_flow." }))
.await
.expect("update task");
assert_eq!(updated.name.as_deref(), Some(renamed.as_str()));
assert_eq!(
updated.description.as_deref(),
Some("Updated by task_crud_flow.")
);

// List its runs (likely empty, but the endpoint should respond).
let runs = task_client
Expand Down
Loading