Tasks

Set dependents for a task

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

Marks a set of tasks as dependents of this task, if they are not already dependents. A task can have at most 30 dependents and dependencies combined.

post/tasks/{task_gid}/addDependents

Request

  • Base URL: https://app.asana.com/api/1.0
  • URL: https://app.asana.com/api/1.0/tasks/{task_gid}/addDependents
  • 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": {
    "dependents": [
      "133713",
      "184253"
    ]
  }
}

Response

Successfully set the specified dependents on the given 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 2 revisions of this API.