---
title: "PATCH /tasks/{taskId}/moveToProject"
method: PATCH
path: "/tasks/{taskId}/moveToProject"
tags: ["slash-task"]
---

# PATCH /tasks/{taskId}/moveToProject

`PATCH /tasks/{taskId}/moveToProject`

## Path parameters

- `taskId` integer, required

## Query parameters

- `toSpaceId` integer, required
- `toProjectId` integer, required

## Request body

- object[]

## Response `200`

OK

- ResponseFormat
  - `success` boolean
  - `message` string
  - `data` unknown
  - `errorCode` integer
  - `errors` unknown

## Changes

- **2026-08-08** `237f5bbd4029` — 2 breaking
  - the `data` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - the `errors` response's property type/format changed from `object`/`` to ``/`` for status `200`

[Change history](https://skmtc.dev/astravue/apis/astravue-api/changes/tasks/:taskId/moveToProject/patch.md)

---

[API](https://skmtc.dev/astravue/apis/astravue-api.md) · [All operations](https://skmtc.dev/astravue/apis/astravue-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/astravue/astravue-api/revisions/290e97dda2ec/schema)
