MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / updateEnvVar

Method updateEnvVar

packages/core/src/v3/apiClient/index.ts:380–395  ·  view source on GitHub ↗
(
    projectRef: string,
    slug: string,
    key: string,
    body: UpdateEnvironmentVariableRequestBody
  )

Source from the content-addressed store, hash-verified

378 }
379
380 updateEnvVar(
381 projectRef: string,
382 slug: string,
383 key: string,
384 body: UpdateEnvironmentVariableRequestBody
385 ) {
386 return zodfetch(
387 EnvironmentVariableResponseBody,
388 `${this.baseUrl}/api/v1/projects/${projectRef}/envvars/${slug}/${key}`,
389 {
390 method: "PUT",
391 headers: this.#getHeaders(false),
392 body: JSON.stringify(body),
393 }
394 );
395 }
396
397 deleteEnvVar(projectRef: string, slug: string, key: string) {
398 return zodfetch(

Callers 1

updateFunction · 0.80

Calls 2

#getHeadersMethod · 0.95
zodfetchFunction · 0.90

Tested by

no test coverage detected