Tasks

Remove a project from a task

<b>Required scope: </b><code>tasks:write</code>

Removes the task from the specified project. The task will still exist in the system, but it will not be in the project anymore.

Returns an empty data block.

post/tasks/{task_gid}/removeProject

Request

  • Base URL: https://app.asana.com/api/1.0
  • URL: https://app.asana.com/api/1.0/tasks/{task_gid}/removeProject
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token, scopes: tasks:write)

Request body

Example request

{
  "data": {
    "project": "13579"
  }
}

Response

Successfully removed the specified project from the task.

dataEmptyResponse

An empty object. Some endpoints do not return an object on success. The success is conveyed through a 2-- status code and returning an empty object.

Changes

No recorded changes to this operation across all 51 revisions of this API.