Skip to content

Use Workspace Create API #7714

Answered by sharkymark
whenSunSet asked this question in Help
Discussion options

You must be logged in to vote

@whenSunSet this worked for me.

This is the template that has a git repo url as the parameter

curl --request POST \
--url "$CODER_URL/api/v2/organizations/$ORG_ID/members/me/workspaces" \
--header "Coder-Session-Token: $API_KEY" \
  --data '{
  "name": "jupyter-lab",
  "rich_parameter_values": [
    {
      "name": "Git Repo URL",
      "value": "https://github.com/sharkymark/pandas_automl"
    }
  ],
  "template_id": "'$TEMPLATE_ID'"
  }'

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by matifali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #7675 on May 30, 2023 13:08.