Skip to content

Commit f1cb3a5

Browse files
authored
fix: correct example for /extend endpoint in the documentation (coder#15521)
The example in the docs wrongly shows a POST to this endpoint. Signed-off-by: Aaron Lehmann <[email protected]>
1 parent b6d0b77 commit f1cb3a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ activity.
9494
do
9595
if pgrep -f "my_training_script.py" > /dev/null
9696
then
97-
curl -X POST "https://coder.example.com/api/v2/workspaces/$WORKSPACE_ID/extend" \
97+
curl -X PUT "https://coder.example.com/api/v2/workspaces/$WORKSPACE_ID/extend" \
9898
-H "Coder-Session-Token: $CODER_AGENT_TOKEN" \
9999
-d '{
100100
"deadline": "2019-08-24T14:15:22Z"

0 commit comments

Comments
 (0)