Skip to main content
POST
/
public
/
create-new-playground-snippet
Create a new playground snippet
curl --request POST \
  --url https://backend.codedamn.com/api/public/create-new-playground-snippet \
  --header 'Content-Type: application/json' \
  --header 'FERMION-API-KEY: <api-key>' \
  --data '{
  "data": [
    {
      "data": {
        "bootParams": {
          "source": "git-repo",
          "gitRepoUrl": "<string>",
          "gitBranch": "<string>"
        }
      }
    }
  ]
}'
[
  {
    "output": {
      "status": "ok",
      "data": {
        "playgroundSnippetId": "<string>"
      }
    }
  }
]

Authorizations

FERMION-API-KEY
string
header
required

Body

application/json

API Request Body

data
object[]
required

Response

200 - application/json

API Response Body

output
object
required
  • Option 1
  • Option 2