REST API
Infra APIProjects

Checkout Project source into a fresh Sandbox

POST/api/v1/serverless/projects/{project_id}/source/checkout

Authorization

BearerAuth
AuthorizationBearer <token>

Hydra JWT Bearer token

In: header

Path Parameters

project_id*string

Project ID

Request Body

application/json

Pinned source and Sandbox

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/serverless/projects/string/source/checkout" \  -H "Content-Type: application/json" \  -d '{}'
{  "commit_sha": "string",  "workspace_path": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}
{  "error": "string",  "message": "string"}