Update a story
PUT
/stories/{story_gid}
Stories
text
and html_text
can be specified.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://app.asana.com/api/1.0/stories/' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"html_text": "<body>This is a comment.<body>",
"is_pinned": false,
"sticker_name": "dancing_unicorn",
"text": "This is a comment."
}
}'
Response Response Example
200 - Example 1
{
"data": {
"gid": "12345",
"resource_type": "task",
"created_at": "2012-02-22T02:06:58.147Z",
"html_text": "<body>This is a comment.<body>",
"is_pinned": false,
"resource_subtype": "comment_added",
"sticker_name": "dancing_unicorn",
"text": "This is a comment.",
"assignee": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
},
"created_by": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
},
"custom_field": {
"gid": "12345",
"resource_type": "task",
"display_value": "blue",
"enabled": true,
"enum_options": [
{
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
}
],
"name": "Status",
"number_value": 5.2,
"resource_subtype": "text",
"text_value": "Some Value",
"type": "text"
},
"dependency": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
},
"duplicate_of": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
},
"duplicated_from": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
},
"follower": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
},
"hearted": false,
"hearts": [
{
"gid": "12345",
"user": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
}
}
],
"is_edited": false,
"liked": false,
"likes": [
{
"gid": "12345",
"user": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
}
}
],
"new_approval_status": "approved",
"new_dates": {
"due_at": "2019-09-15T02:06:58.158Z",
"due_on": "2019-09-15",
"start_on": "2019-09-14"
},
"new_enum_value": {
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
},
"new_multi_enum_values": [
{
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
}
],
"new_name": "This is the New Name",
"new_number_value": 2,
"new_resource_subtype": "milestone",
"new_section": {
"gid": "12345",
"resource_type": "task",
"name": "Next Actions"
},
"new_text_value": "This is the New Text",
"num_hearts": 5,
"num_likes": 5,
"old_approval_status": "pending",
"old_dates": {
"due_at": "2019-09-15T02:06:58.158Z",
"due_on": "2019-09-15",
"start_on": "2019-09-14"
},
"old_enum_value": {
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
},
"old_multi_enum_values": [
{
"gid": "12345",
"resource_type": "task",
"color": "blue",
"enabled": true,
"name": "Low"
}
],
"old_name": "This was the Old Name",
"old_number_value": 1,
"old_resource_subtype": "default_task",
"old_section": {
"gid": "12345",
"resource_type": "task",
"name": "Next Actions"
},
"old_text_value": "This was the Old Text",
"previews": [
{
"fallback": "Greg: Great! I like this idea.\\n\\nhttps//a_company.slack.com/archives/ABCDEFG/12345678",
"footer": "Mar 17, 2019 1:25 PM",
"header": "Asana for Slack",
"header_link": "https://asana.comn/apps/slack",
"html_text": "<body>Great! I like this idea.</body>",
"text": "Great! I like this idea.",
"title": "Greg",
"title_link": "https://asana.slack.com/archives/ABCDEFG/12345678"
}
],
"project": {
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy"
},
"source": "web",
"story": {
"gid": "12345",
"resource_type": "task",
"created_at": "2012-02-22T02:06:58.147Z",
"created_by": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez"
},
"resource_subtype": "comment_added",
"text": "marked today"
},
"tag": {
"gid": "12345",
"resource_type": "task",
"name": "Stuff to buy"
},
"target": {
"gid": "1234",
"name": "Bug Task"
},
"task": {
"gid": "12345",
"resource_type": "task",
"name": "Bug Task"
}
}
}
Request
Path Params
story_gid
string
required
Body Params application/json
Responses
Modified at 2022-09-13 02:00:32