Create a new snippet to use as sandbox
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
cURL
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>" } } } ]
API Request Body
Show child attributes
Source type for creating playground snippet from a Git repository
git-repo
URL of the Git repository to clone for the playground snippet
Git branch to checkout from the repository (defaults to main/master)
API Response Body
ok
Unique identifier for the created playground snippet. Use this to attach to the sandbox now and in future