Appearance
Unlink dependents from a task
API Referencetask_gid
string
required
The task to operate on.
opt_pretty
boolean
Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
truetruefalse
The list of tasks to remove as dependents.
data
object
A set of dependent tasks.
dataobject
``200 Successfully unlinked the specified tasks as dependents.
object
data
object
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.
Has additional fields
``400 This usually occurs because of a missing or malformed parameter. Check the documentation and the syntax of your request and try again.
``401 A valid authentication token was not provided with the request, so the API could not associate a user with the request.
``402 The request was valid, but the queried object or object mutation specified in the request is above your current premium level.
``403 The authentication and request syntax was valid but the server is refusing to complete the request. This can happen if you try to read or write to objects or properties that the user does not have access to.
``404 Either the request method and path supplied do not specify a known action in the API, or the object specified by the request does not exist.
``500 There was a problem on Asana’s end. In the event of a server error the response body should contain an error phrase. These phrases can be used by Asana support to quickly look up the incident that caused the server error. Some errors are due to server load, and will not supply an error phrase.
Updated 28 days ago
Did this page help you?
Yes
No
ShellNodeRubyPHPPython
xxxxxxxxxx
curl --request POST \
--url https://app.asana.com/api/1.0/tasks/task_gid/removeDependents \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
{
"data": {}
}Updated28 days ago
Did this page help you?
Yes
No