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

Method createEnvVar

packages/core/src/v3/apiClient/index.ts:368–378  ·  view source on GitHub ↗
(projectRef: string, slug: string, body: CreateEnvironmentVariableRequestBody)

Source from the content-addressed store, hash-verified

366 }
367
368 createEnvVar(projectRef: string, slug: string, body: CreateEnvironmentVariableRequestBody) {
369 return zodfetch(
370 EnvironmentVariableResponseBody,
371 `${this.baseUrl}/api/v1/projects/${projectRef}/envvars/${slug}`,
372 {
373 method: "POST",
374 headers: this.#getHeaders(false),
375 body: JSON.stringify(body),
376 }
377 );
378 }
379
380 updateEnvVar(
381 projectRef: string,

Callers 1

createFunction · 0.80

Calls 2

#getHeadersMethod · 0.95
zodfetchFunction · 0.90

Tested by

no test coverage detected