Skip to content
中文

Delete a script vault binding

Remove the vault assignment from this saved script without deleting the vault or its secrets. Obtain aliases from automation.scripts.vaults.list. Repeating deletion of an absent alias on an existing definition succeeds. Bindings also disappear when the definition is permanently deleted, while archival retains them.

DELETE /automation/v1/scripts/{namespace}/{name}/vaults/{alias}

Authentication

Authorization: Bearer $PRAXIS_API_KEY

Request fields

Parameter Type Description
path: namespace string required; Namespace from automation.scripts.list or create; identifies the saved script, independently of versions.
path: name string required; Resource name from automation.scripts.list or create; combine with ns to identify the saved script.
path: alias string required; Binding alias chosen by the caller: 1–40 lowercase letters, digits or hyphens, beginning with a letter. pattern: "^[a-z][a-z0-9-]{0,39}$"

Examples

Set these environment variables to your own resources:

Variable Source
SCRIPT_NAME name returned by creating a script
: "${SCRIPT_NAME:?Set SCRIPT_NAME}"
curl --fail-with-body -X DELETE "https://api.deepraxis.com/automation/v1/scripts/{namespace}/${SCRIPT_NAME}/vaults/sample" \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
import { createAutomationClient } from '@deepraxis/sdk/automation';

function env(name: string): string {
  const value = process.env[name];
  if (!value) throw new Error(`Set ${name}`);
  return value;
}
const automation = createAutomationClient({
  apiKey: env('PRAXIS_API_KEY'),
  baseUrl: 'https://api.deepraxis.com',
  maxRetries: 0,
  timeoutMs: 90_000,
});
const result = await automation.scripts.vaults.delete({
  "path": {
    "ns": "docs-samples",
    "name": env("SCRIPT_NAME"),
    "alias": "sample"
  }
});
console.log(result);

Response

HTTP 204

Binding removed or already absent; no response body.

Measured response

HTTP 204

Errors

HTTP Codes and description
400 INVALID_PARAMS: Invalid request parameters, path, cursor, or body format.
404 TARGET_NOT_FOUND: The target does not exist or has an incompatible type.
default Automation problem; inspect the refusal code and diagnostics before retrying.

Authentication and common errors · Retain the X-Request-Id response header for troubleshooting.