Sazabi
APISandbox clis

Upsert CLI connection

POST
/sandbox-clis/config

Set or replace a project's CLI connection credentials (e.g. the kubectl CLI's KUBECONFIG_CONTENTS). Values are encrypted server-side and never returned. Requires write access to the target project.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/sandbox-clis/config" \  -H "Content-Type: application/json" \  -d '{    "cliType": "string",    "environmentVariables": [      {        "key": "string",        "value": "string"      }    ]  }'
{  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",  "cliType": "string",  "envVarKeys": [    "string"  ]}