Skip to content

Commit 36ad67b

Browse files
committed
Replace Content-type with Content-Type
1 parent f47adc7 commit 36ad67b

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If you want to get time entries of all the workspace users and aggregated data f
1313

1414
##The API Format##
1515

16-
The API accepts only JSON requests. Please make sure you're setting `Content-type: application/json`in your request header. Each request returns a **JSON-encoded** body.
16+
The API accepts only JSON requests. Please make sure you're setting `Content-Type: application/json`in your request header. Each request returns a **JSON-encoded** body.
1717

1818
The result of each action is communicated via standard HTTP response codes.
1919

chapters/clients.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Example request
1717

1818
```shell
1919
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
20-
-H "Content-type: application/json" \
20+
-H "Content-Type: application/json" \
2121
-d '{"client":{"name":"Very Big Company","wid":777}}' \
2222
-X POST https://www.toggl.com/api/v8/clients
2323

@@ -70,7 +70,7 @@ Workspace id (wid) can't be changed.
7070
Example request
7171
```shell
7272
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
73-
-H "Content-type: application/json" \
73+
-H "Content-Type: application/json" \
7474
-d '{"client":{"name":"Very Big Company","notes":"something about the client"}}' \
7575
-X PUT https://www.toggl.com/api/v8/clients/1239455
7676
```

chapters/project_users.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Example request
2727

2828
```shell
2929
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
30-
-H "Content-type: application/json" \
30+
-H "Content-Type: application/json" \
3131
-d '{"project_user":{"pid":777,"uid":123,"rate":4.0,"manager":true}}' \
3232
-X POST https://www.toggl.com/api/v8/project_users
3333

@@ -58,7 +58,7 @@ Workspace id (wid), project id (pid) and user id (uid) can't be changed.
5858
Example request
5959
```shell
6060
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
61-
-H "Content-type: application/json" \
61+
-H "Content-Type: application/json" \
6262
-d '{"project_user":{"manager":false,"rate":15,"fields":"fullname"}}' \
6363
-X PUT https://www.toggl.com/api/v8/project_users/4692190
6464
```
@@ -103,7 +103,7 @@ Example request
103103

104104
```shell
105105
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
106-
-H "Content-type: application/json" \
106+
-H "Content-Type: application/json" \
107107
-d '{"project_user":{"pid":777,"uid":"1267998,29624,112047","rate":4.0,"manager":true,"fields":"fullname"}}' \
108108
-X POST https://www.toggl.com/api/v8/project_users
109109

@@ -149,7 +149,7 @@ By supplying multiple project user ids, you can mass update project users.
149149
Example request
150150
```shell
151151
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
152-
-H "Content-type: application/json" \
152+
-H "Content-Type: application/json" \
153153
-d '{"project_user":{"manager":false,"rate":15,"fields":"fullname"}}' \
154154
-X PUT https://www.toggl.com/api/v8/project_users/4692190,4692192,4692191
155155
```

chapters/projects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Example request
2626

2727
```shell
2828
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
29-
-H "Content-type: application/json" \
29+
-H "Content-Type: application/json" \
3030
-d '{"project":{"name":"An awesome project","wid":777,"template_id":10237,"is_private":true,"cid":123397}}' \
3131
-X POST https://www.toggl.com/api/v8/projects
3232
```
@@ -87,7 +87,7 @@ Example request
8787

8888
```shell
8989
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
90-
-H "Content-type: application/json" \
90+
-H "Content-Type: application/json" \
9191
-d '{"project":{"name":"Changed the name","is_private":false,"cid":123398, "color": "6"}}' \
9292
-X PUT https://www.toggl.com/api/v8/projects/193838628
9393
```

chapters/tags.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Example request
1313

1414
```shell
1515
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
16-
-H "Content-type: application/json" \
16+
-H "Content-Type: application/json" \
1717
-d '{"tag":{"name":"billed","wid":777}}' \
1818
-X POST https://www.toggl.com/api/v8/tags
1919

@@ -38,7 +38,7 @@ Workspace id (wid) can't be changed.
3838
Example request
3939
```shell
4040
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
41-
-H "Content-type: application/json" \
41+
-H "Content-Type: application/json" \
4242
-d '{"tag":{"name":"not billed"}}' \
4343
-X PUT https://www.toggl.com/api/v8/tags/1239455
4444
```

chapters/tasks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Example request
2323

2424
```shell
2525
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
26-
-H "Content-type: application/json" \
26+
-H "Content-Type: application/json" \
2727
-d '{"task":{"name":"A new task","pid":777}}' \
2828
-X POST https://www.toggl.com/api/v8/tasks
2929

@@ -75,7 +75,7 @@ Successful response
7575
Example request
7676
```shell
7777
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
78-
-H "Content-type: application/json" \
78+
-H "Content-Type: application/json" \
7979
-d '{"task":{"active":false,"estimated_seconds":3600,"fields":"done_seconds,uname"}}' \
8080
-X PUT https://www.toggl.com/api/v8/tasks/1335076912
8181
```
@@ -120,7 +120,7 @@ By supplying multiple task ids, you can mass update tasks. This is good for mark
120120
Example request
121121
```shell
122122
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
123-
-H "Content-type: application/json" \
123+
-H "Content-Type: application/json" \
124124
-d '{"task":{"active":false,"fields":"done_seconds,uname"}}' \
125125
-X PUT https://www.toggl.com/api/v8/tasks/1335076912,1335076911
126126
```

chapters/time_entries.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Example request
2525

2626
```shell
2727
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
28-
-H "Content-type: application/json" \
28+
-H "Content-Type: application/json" \
2929
-d '{"time_entry":{"description":"Meeting with possible clients","tags":["billed"],"duration":1200,"start":"2013-03-05T07:58:58.000Z","pid":123}}' \
3030
-X POST https://www.toggl.com/api/v8/time_entries
3131

@@ -56,7 +56,7 @@ Example request
5656

5757
```shell
5858
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
59-
-H "Content-type: application/json" \
59+
-H "Content-Type: application/json" \
6060
-d '{"time_entry":{"description":"Meeting with possible clients","tags":["billed"],"pid":123}}' \
6161
-X POST https://www.toggl.com/api/v8/time_entries/start
6262

@@ -86,7 +86,7 @@ Successful response
8686
Example request
8787
```shell
8888
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
89-
-H "Content-type: application/json" \
89+
-H "Content-Type: application/json" \
9090
-X PUT https://www.toggl.com/api/v8/time_entries/436694100/stop
9191
```
9292

@@ -173,7 +173,7 @@ Example request
173173

174174
```shell
175175
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
176-
-H "Content-type: application/json" \
176+
-H "Content-Type: application/json" \
177177
-d '{"time_entry":{"description":"Meeting with possible clients","tags":[""],"duration":1240,"start":"2013-03-05T07:58:58.000Z","stop":"2013-03-05T08:58:58.000Z","duronly":true,"pid":123,"billable":true}}' \
178178
-X PUT https://www.toggl.com/api/v8/time_entries/436694100
179179

@@ -272,7 +272,7 @@ Example request
272272

273273
```shell
274274
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
275-
-H "Content-type: application/json" \
275+
-H "Content-Type: application/json" \
276276
-d '{"time_entry":{"tags":["billed","productive"], "tag_action": "add"}}' \
277277
-X PUT https://www.toggl.com/api/v8/time_entries/436694100,436694101
278278
```

chapters/users.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ Example request
187187

188188
```shell
189189
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
190-
-H "Content-type: application/json" \
190+
-H "Content-Type: application/json" \
191191
-d '{"user":{"fullname":"John Smith"}}' \
192192
-X PUT https://www.toggl.com/api/v8/me
193193
```
@@ -260,7 +260,7 @@ To create a user you must provide these parameters for the user:
260260

261261
Example request
262262
```shell
263-
curl -H "Content-type: application/json" \
263+
curl -H "Content-Type: application/json" \
264264
-d '{"user":{"email":"[email protected]","password":"StrongPassword"}}' \
265265
-X POST https://www.toggl.com/api/v8/signups
266266
```

chapters/workspace_users.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Example request
2626

2727
```shell
2828
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
29-
-H "Content-type: application/json" \
29+
-H "Content-Type: application/json" \
3030
-d '{"emails":["[email protected]", "[email protected]"]}' \
3131
-X POST https://www.toggl.com/api/v8/workspaces/777/invite
3232
```
@@ -58,7 +58,7 @@ Example request
5858

5959
```shell
6060
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
61-
-H "Content-type: application/json" \
61+
-H "Content-Type: application/json" \
6262
-d '{"workspace_user":{"admin":false}}' \
6363
-X PUT https://www.toggl.com/api/v8/workspace_users/19012628
6464
```

chapters/workspaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Example request
9696

9797
```shell
9898
curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \
99-
-H "Content-type: application/json" \
99+
-H "Content-Type: application/json" \
100100
-d '{"workspace":{"default_currency": "EUR", "default_hourly_rate": 50, "name": "John's ws", "only_admins_may_create_projects": false, "only_admins_see_billable_rates": true, "rounding": 1, "rounding_minutes": 60}}' \
101101
-X PUT https://www.toggl.com/api/v8/workspaces/3134975
102102
```

0 commit comments

Comments
 (0)