Create Project From Template
Create a project by forking alienplatform/alien into your namespace.
API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys
In: header
Query Parameters
Workspace name or ID. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must identify the key's workspace.
^(?:ws_[0-9a-zA-Z]{24}|(?!ws[-_])[a-z0-9](-?[a-z0-9])*)$4 <= length <= 100Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/projects/import-template" \ -H "Content-Type: application/json" \ -d '{ "name": "my-app", "targetNamespace": "string", "templatePath": "examples/customer-models-ts" }'{ "id": "prj_mcytp6z3j91f7tn5ryqsfwtr", "name": "my-app", "gitRepository": { "type": "github", "repo": "alien/my-agent" }, "rootDirectory": "string", "deploymentPortalAppearance": { "avatarUrl": "http://example.com", "faviconUrl": "http://example.com", "preset": "clean", "accentColor": "blue", "title": "string", "subtitle": "string", "supportUrl": "http://example.com", "docsUrl": "http://example.com", "density": "comfortable" }, "packagesConfig": { "cli": { "binaryTargets": [ "windows-x64" ], "displayName": "string", "name": "string", "enabled": true }, "cloudformation": { "enabled": true, "displayName": "string", "requireManagementExternalId": true }, "operatorImage": { "brand": "string", "displayName": "string", "envPrefix": "string", "labelDomain": "string", "name": "string", "enabled": true }, "helm": { "chartName": "string", "description": "string", "logCollector": { "enabled": true, "mode": "podApi" }, "enabled": true, "setupResources": { "tokenSecret": { "key": "string", "name": "string", "prefix": "string", "randomLength": 16 }, "workloadReadAccess": { "rules": [ { "apiGroup": "string", "resources": [ "string" ] } ], "serviceAccountProfile": "string" } }, "runtimePersistence": { "enabled": true, "existingClaim": "string", "size": "string", "storageClassName": "string" } }, "terraform": { "enabled": true, "displayName": "string" } }, "domainId": "dom_469m0agk8luj4s16sakmmpdd", "defaultManagers": { "aws": "mgr_enxscjrqiiu2lrc672hwwuc5", "gcp": "mgr_enxscjrqiiu2lrc672hwwuc5", "azure": "mgr_enxscjrqiiu2lrc672hwwuc5", "kubernetes": "mgr_enxscjrqiiu2lrc672hwwuc5", "machines": "mgr_enxscjrqiiu2lrc672hwwuc5", "local": "mgr_enxscjrqiiu2lrc672hwwuc5" }, "projectCapabilities": null, "createdAt": "2019-08-24T14:15:22Z", "workspaceId": "ws_It13CUaGEhLLAB87simX0", "githubSetup": { "pullRequestUrl": "http://example.com", "workflowUrl": "http://example.com" }, "gitRepositoryWarning": { "code": "string", "message": "string", "source": null, "retryable": false, "context": null, "hint": "string", "httpStatusCode": 100, "internal": true, "requestId": "string" }, "template": { "sourceRepository": "alienplatform/alien", "forkRepository": "string", "templatePath": "examples/customer-models-ts", "resolvedRootDirectory": "string" }}