Docs

Update Project

PATCH
/v1/projects/{idOrName}

Update a project.

Authorization

AuthorizationBearer <token>

API key for authentication, must be provided as a Bearer token. Generate an API key at https://alien.dev/api-keys

In: header

Path Parameters

idOrName*string

Project ID or name.

Lengthlength <= 100

Query Parameters

workspace?string

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.

Match^(?:ws_[0-9a-zA-Z]{24}|(?!ws[-_])[a-z0-9](-?[a-z0-9])*)$
Length4 <= length <= 100

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/projects/my-project" \  -H "Content-Type: application/json" \  -d '{}'
{  "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"}