fix: correct example for /extend endpoint in the documentation (#15521)

The example in the docs wrongly shows a POST to this endpoint.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
This commit is contained in:
Aaron Lehmann
2024-11-14 12:13:27 -05:00
committed by GitHub
parent b6d0b7713a
commit f1cb3a5b11
+1 -1
View File
@@ -94,7 +94,7 @@ activity.
do
if pgrep -f "my_training_script.py" > /dev/null
then
curl -X POST "https://coder.example.com/api/v2/workspaces/$WORKSPACE_ID/extend" \
curl -X PUT "https://coder.example.com/api/v2/workspaces/$WORKSPACE_ID/extend" \
-H "Coder-Session-Token: $CODER_AGENT_TOKEN" \
-d '{
"deadline": "2019-08-24T14:15:22Z"