post https://app.asana.com/api/1.0/goals//setMetricCurrentValue
Updates a goal's existing metric's current_number_value
if one exists,
otherwise responds with a 400 status code.
Returns the complete updated goal metric record.
Responses
Updates a goal's existing metric's current_number_value
if one exists,
otherwise responds with a 400 status code.
Returns the complete updated goal metric record.
xxxxxxxxxx
curl --request POST \
--url https://app.asana.com/api/1.0/goals/goal_gid/setMetricCurrentValue \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
76}
{
"data": {
"gid": "12345",
"resource_type": "goal",
"name": "Grow web traffic by 30%",
"html_notes": "<body>Start building brand awareness.</body>",
"notes": "Start building brand awareness.",
"due_on": "2019-09-15",
"start_on": "2019-09-14",
"is_workspace_level": true,
"liked": false,
"likes": [
{
"gid": "12345",
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
}
}
],
"num_likes": 5,
"team": {
"gid": "12345",
"resource_type": "team",
"name": "Marketing"
},
"workspace": {
"gid": "12345",
"resource_type": "workspace",
"name": "My Company Workspace"
},