You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/v2/issues/changing_status.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ title: API v2 - Issues - Changing Status
7
7
* TOC
8
8
{:toc}
9
9
10
-
Any authenticated user can change the status of an issue from Open to Closed and Closed to Open. Only government employees can change the status from Open to Acknowledged and Acknowledged to Closed. To check if the current user has this permission visit the <ahref="/v2/users/#show-current-user">current user</a> page. Issues are Archived after being Closed for 7 days. The status can not change for Archived issues.
10
+
Any authenticated user can change the status of an issue from Open to Closed and Closed to Open. Only government employees can change the status from Open to Acknowledged and Acknowledged to Closed. To check if the current user has this permission visit the <ahref="/v2/users/#show-current-user">current user</a> page. Issues are Archived after being Closed for 7 days. The status can not change for Archived issues.
11
11
12
12
## Close an Issue
13
13
14
-
Changing the status of an issue is similar to adding a comment on an issue.
14
+
Changing the status of an issue is similar to adding a comment on an issue.
15
15
16
16
POST /issues/<issue_id>/close
17
17
@@ -22,7 +22,6 @@ Changing the status of an issue is similar to adding a comment on an issue.
22
22
### Optional Parameters
23
23
24
24
***image** - An image of the problem. Limited to 20Mb.
25
-
***video** - A video of the problem. Limited to 20Mb.
26
25
***youtube_url** - A link to a youtube video showing the problem.
27
26
28
27
### Example
@@ -41,21 +40,20 @@ $ curl -i \
41
40
42
41
### Example, with media
43
42
44
-
If you want to attach a image or video or both to your comment, you must use multipart form data not json. Here is an example including both:
43
+
If you want to attach a image to your comment, you must use multipart form data not json.
45
44
46
45
<preclass="terminal"id="with_media">
47
46
$ curl -i \
48
47
--header "Content-Type: multipart/form-data" \
49
48
--data "comment=Pothole+is+gone" \
50
49
--data "image=@photo.png" \
51
-
--data "video=@video.mp4" \
52
50
<%= root_version_url %>/issues/1/close
53
51
</pre>
54
52
55
53
56
54
## Reopen an Issue
57
55
58
-
Changing the status of an issue is similar to adding a comment on an issue.
56
+
Changing the status of an issue is similar to adding a comment on an issue.
59
57
60
58
POST /issues/<issue_id>/open
61
59
@@ -66,7 +64,6 @@ Changing the status of an issue is similar to adding a comment on an issue.
66
64
### Optional Parameters
67
65
68
66
***image** - An image of the problem. Limited to 20Mb.
69
-
***video** - A video of the problem. Limited to 20Mb.
70
67
***youtube_url** - A link to a youtube video showing the problem.
71
68
72
69
### Example
@@ -87,7 +84,7 @@ Media can be attached the same way as [closing comments](#with_media)
87
84
88
85
## Acknowledge an Issue
89
86
90
-
Changing the status of an issue is similar to adding a comment on an issue.
87
+
Changing the status of an issue is similar to adding a comment on an issue.
91
88
92
89
POST /issues/<issue_id>/acknowledge
93
90
@@ -98,7 +95,6 @@ Changing the status of an issue is similar to adding a comment on an issue.
98
95
### Optional Parameters
99
96
100
97
***image** - An image of the problem. Limited to 20Mb.
101
-
***video** - A video of the problem. Limited to 20Mb.
102
98
***youtube_url** - A link to a youtube video showing the problem.
0 commit comments