Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Commit 178f28e

Browse files
committed
Update tasks page
1 parent 7a4aac6 commit 178f28e

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Sections/Tasks.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,19 @@ Location: /tasks/#{new_task_id} Sample post:
6868
<billable-by-default type="boolean">false</billable-by-default>
6969
<default-hourly-rate type="decimal">100</default-hourly-rate>
7070
<is-default type="boolean">false</is-default>
71-
<name>Server Admninistration</name>
71+
<name>Server Administration</name>
7272
</task>
7373
```
7474

75-
## DELETE EXISTING TASK
75+
## ARCHIVE OR DELETE EXISTING TASK
7676

7777
DELETE `/tasks/#{task_id}`
7878

7979
HTTP Response: 200 OK
8080

81-
Returned if task does not have any hours associated.
81+
Returned if task does not have any hours associated - task will be deleted.
8282

83-
HTTP Response: 400 Bad Request
84-
85-
Returned if task is not removable.
83+
Returned if task is not removable - task will be archived.
8684

8785
## UPDATE AN EXISTING TASK
8886

@@ -103,10 +101,10 @@ Sample post:
103101
</task>
104102
```
105103

106-
## ACTIVATE EXISTING TASK
104+
## ACTIVATE EXISTING ARCHIVED TASK
107105

108106
POST `/tasks/#{task_id}/activate`
109107

110108
HTTP Response: 200 OK
111109

112-
Location: /tasks/#{task_id}
110+
Location: /tasks/#{task_id}

0 commit comments

Comments
 (0)