post https://app.asana.com/api/1.0/goals//addSupportingRelationship
Creates a goal relationship by adding a supporting resource to a given goal.
Returns the newly created goal relationship record.
Responses
Creates a goal relationship by adding a supporting resource to a given goal.
Returns the newly created goal relationship record.
xxxxxxxxxx
curl --request POST \
--url https://app.asana.com/api/1.0/goals/goal_gid/addSupportingRelationship \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
{
"data": {
"gid": "12345",
"resource_type": "goal_relationship",
"resource_subtype": "subgoal",
"supporting_resource": {
"gid": "12345",
"resource_type": "project",
"name": "Stuff to buy"
},
"contribution_weight": 1,
"supported_goal": {
"gid": "12345",
"resource_type": "goal",
"name": "Grow web traffic by 30%",
"owner": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
}
}
}
}