Skip to content

Commit 0693249

Browse files
authored
Correct example requests (#49)
The param should be nested under `assignment`. The implementation has always supported it this way, but the documentation did not correctly represent the parameter.
1 parent 1b7d04c commit 0693249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: source/includes/20170710/resources/_assignments.md.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ The `unlocked_at`, `started_at`, `passed_at`, and `burned_at` timestamps are alw
189189

190190
> Example Request
191191

192-
<%= partial('examples/PUT_shell', locals: { api_endpoint: 'assignments/80463006/start', params: { 'started_at': '2017-09-05T23:41:28.980679Z' } }) %>
192+
<%= partial('examples/PUT_shell', locals: { api_endpoint: 'assignments/80463006/start', params: { 'assignment': { 'started_at': '2017-09-05T23:41:28.980679Z' } } }) %>
193193

194-
<%= partial('examples/PUT_javascript', locals: { api_endpoint: 'assignments/80463006/start', params: { 'started_at': '2017-09-05T23:41:28.980679Z' } }) %>
194+
<%= partial('examples/PUT_javascript', locals: { api_endpoint: 'assignments/80463006/start', params: { 'assignment': { 'started_at': '2017-09-05T23:41:28.980679Z' } } }) %>
195195

196196
> Example Response
197197

0 commit comments

Comments
 (0)