You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: src/operations.test.js.md
+171Lines changed: 171 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3264,6 +3264,177 @@ Generated by [AVA](https://avajs.dev).
3264
3264
],
3265
3265
verb: 'put',
3266
3266
},
3267
+
{
3268
+
description: '[Beta] Updates or creates a new value for an existing environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.',
3269
+
operationId: 'setEnvVarValue',
3270
+
parameters: {
3271
+
body: {
3272
+
env_var: {
3273
+
in: 'body',
3274
+
name: 'env_var',
3275
+
schema: {
3276
+
properties: {
3277
+
context: {
3278
+
description: 'The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.',
3279
+
enum: [
3280
+
'dev',
3281
+
'branch-deploy',
3282
+
'deploy-preview',
3283
+
'production',
3284
+
],
3285
+
type: 'string',
3286
+
},
3287
+
value: {
3288
+
description: 'The environment variable\'s unencrypted value',
3289
+
type: 'string',
3290
+
},
3291
+
},
3292
+
type: 'object',
3293
+
},
3294
+
},
3295
+
},
3296
+
path: {
3297
+
account_id: {
3298
+
description: 'Scope response to account_id',
3299
+
in: 'path',
3300
+
name: 'account_id',
3301
+
required: true,
3302
+
type: 'string',
3303
+
},
3304
+
key: {
3305
+
description: 'The existing environment variable key name (case-sensitive)',
3306
+
in: 'path',
3307
+
name: 'key',
3308
+
required: true,
3309
+
type: 'string',
3310
+
},
3311
+
},
3312
+
query: {
3313
+
site_id: {
3314
+
description: 'If provided, update an environment variable set on this site',
3315
+
in: 'query',
3316
+
name: 'site_id',
3317
+
type: 'string',
3318
+
},
3319
+
},
3320
+
},
3321
+
path: '/accounts/{account_id}/env/{key}',
3322
+
responses: {
3323
+
201: {
3324
+
description: 'Created (success)',
3325
+
schema: {
3326
+
description: 'Environment variable model definition',
3327
+
properties: {
3328
+
key: {
3329
+
description: 'The environment variable key, like ALGOLIA_ID (case-sensitive)',
3330
+
type: 'string',
3331
+
'x-faker': 'commerce.productName',
3332
+
},
3333
+
scopes: {
3334
+
description: 'The scopes that this environment variable is set to',
3335
+
items: {
3336
+
enum: [
3337
+
'builds',
3338
+
'functions',
3339
+
'runtime',
3340
+
'post_processing',
3341
+
],
3342
+
type: 'string',
3343
+
},
3344
+
type: 'array',
3345
+
},
3346
+
updated_at: {
3347
+
description: 'The timestamp of when the value was last updated',
3348
+
format: 'date-time',
3349
+
type: 'string',
3350
+
'x-faker': 'date.past',
3351
+
},
3352
+
updated_by: {
3353
+
properties: {
3354
+
avatar_url: {
3355
+
description: 'A URL pointing to the user\'s avatar',
3356
+
type: 'string',
3357
+
'x-faker': 'internet.avatar',
3358
+
},
3359
+
email: {
3360
+
description: 'The user\'s email address',
3361
+
type: 'string',
3362
+
'x-faker': 'internet.email',
3363
+
},
3364
+
full_name: {
3365
+
description: 'The user\'s full name (first and last)',
3366
+
type: 'string',
3367
+
'x-faker': 'name.findName',
3368
+
},
3369
+
id: {
3370
+
description: 'The user\'s unique identifier',
3371
+
type: 'string',
3372
+
'x-faker': 'datatype.number',
3373
+
},
3374
+
},
3375
+
type: 'object',
3376
+
},
3377
+
values: {
3378
+
description: 'An array of Value objects containing values and metadata',
3379
+
items: {
3380
+
description: 'Environment variable value model definition',
3381
+
properties: {
3382
+
context: {
3383
+
description: 'The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.',
3384
+
enum: [
3385
+
'all',
3386
+
'dev',
3387
+
'branch-deploy',
3388
+
'deploy-preview',
3389
+
'production',
3390
+
],
3391
+
type: 'string',
3392
+
},
3393
+
id: {
3394
+
description: 'The environment variable value\'s universally unique ID',
3395
+
type: 'string',
3396
+
'x-faker': 'datatype.uuid',
3397
+
},
3398
+
value: {
3399
+
description: 'The environment variable\'s unencrypted value',
3400
+
type: 'string',
3401
+
'x-faker': 'internet.password',
3402
+
},
3403
+
},
3404
+
type: 'object',
3405
+
},
3406
+
type: 'array',
3407
+
'x-faker': 'internet.password',
3408
+
},
3409
+
},
3410
+
type: 'object',
3411
+
},
3412
+
},
3413
+
default: {
3414
+
description: 'error',
3415
+
schema: {
3416
+
properties: {
3417
+
code: {
3418
+
format: 'int64',
3419
+
type: 'integer',
3420
+
},
3421
+
message: {
3422
+
type: 'string',
3423
+
'x-nullable': false,
3424
+
},
3425
+
},
3426
+
required: [
3427
+
'message',
3428
+
],
3429
+
type: 'object',
3430
+
},
3431
+
},
3432
+
},
3433
+
tags: [
3434
+
'environmentVariables',
3435
+
],
3436
+
verb: 'patch',
3437
+
},
3267
3438
{
3268
3439
description: '[Beta] Deletes an environment variable. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.',
0 commit comments