# "Tasks" Endpoints - PATCH Workspace Project Tasks

**URL:** <https://community.toggl.com/t/tasks-endpoints-patch-workspace-project-tasks/379>\
**Category:** API References\
**Tags:** api, endpoints, tasks, patch\
**Created:** [December 2, 2024, 5:28pm UTC](https://community.toggl.com/t/tasks-endpoints-patch-workspace-project-tasks/379 "2024-12-02T17:28:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Support](https://yyz2.discourse-cdn.com/flex012/user_avatar/community.toggl.com/support/32/1577_2.png) [@Support](https://community.toggl.com/u/Support)\
**Post date:** [December 2, 2024, 5:28pm UTC](https://community.toggl.com/t/tasks-endpoints-patch-workspace-project-tasks/379/1 "2024-12-02T17:28:19Z")

</div>

```auto
https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/projects/{project_id}/tasks/{task_ids}

```

Patch project tasks for given workspace.

- cURL
- Go
- Ruby
- JavaScript
- Python
- Rust

```auto
extern crate tokio;extern crate serde_json;use reqwest::{Client};use reqwest::header::{CONTENT_TYPE};#[tokio::main]async fn main() -> Result<(), reqwest::Error> { let client = Client::new().basic_auth("<email>", "<password>"); let json = client.request(Method::PATCH, "https://api.track.toggl.com/api/v9/workspaces/{workspace_id}/projects/{project_id}/tasks/{task_ids}".to_string()).json(&serde_json::json!([\{"op":"string","path":"string"\}])) .header(CONTENT_TYPE, "application/json") .send() .await? .json() .await?; println!("{:#?}", json); Ok(())}

```

### Parameters[​](https://engineering.toggl.com/docs/api/tasks/#parameters-2)

#### Path[​](https://engineering.toggl.com/docs/api/tasks/#path-2)

| name | type | required | description |
| --- | --- | --- | --- |
| workspace\_id | integer | true | Numeric ID of the workspace |
| project\_id | integer | true | Numeric ID of the project |
| task\_ids | string | true | Numeric IDs of project tasks separated by comma |

#### Body[​](https://engineering.toggl.com/docs/api/tasks/#body-1)

| Name | Type | Description |
| --- | --- | --- |
| items | Array of object | - |

##### items[​](https://engineering.toggl.com/docs/api/tasks/#items)

| Name | Type | Description |
| --- | --- | --- |
| op | string | - |
| path | string | - |

### Response[​](https://engineering.toggl.com/docs/api/tasks/#response-2)

#### 200[​](https://engineering.toggl.com/docs/api/tasks/#200-2)

| Name | Type | Description |
| --- | --- | --- |
| failure | Array of object | - |
| success | Array of integer | - |

##### failure[​](https://engineering.toggl.com/docs/api/tasks/#failure)

| Name | Type | Description |
| --- | --- | --- |
| id | integer | - |
| message | string | - |

#### 400[​](https://engineering.toggl.com/docs/api/tasks/#400-2)

Possible errors:

- Invalid project\_id

#### 403[​](https://engineering.toggl.com/docs/api/tasks/#403-2)

User does not have access to this resource.

#### 500[​](https://engineering.toggl.com/docs/api/tasks/#500-2)

Internal Server Error
