@netlify/open-api 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/swagger.json +964 -1
- package/package.json +1 -1
package/dist/swagger.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"title": "Netlify's API documentation",
|
|
6
6
|
"description": "Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify’s API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/js-client)",
|
|
7
7
|
"termsOfService": "https://www.netlify.com/legal/terms-of-use/",
|
|
@@ -2534,6 +2534,825 @@
|
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
2536
|
},
|
|
2537
|
+
"/accounts/{account_id}/env": {
|
|
2538
|
+
"get": {
|
|
2539
|
+
"tags": [
|
|
2540
|
+
"environmentVariables"
|
|
2541
|
+
],
|
|
2542
|
+
"operationId": "getEnvVars",
|
|
2543
|
+
"parameters": [
|
|
2544
|
+
{
|
|
2545
|
+
"name": "account_id",
|
|
2546
|
+
"description": "Scope response to account_id",
|
|
2547
|
+
"type": "string",
|
|
2548
|
+
"required": true,
|
|
2549
|
+
"in": "path"
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
"name": "context_name",
|
|
2553
|
+
"description": "Filter by deploy context",
|
|
2554
|
+
"type": "string",
|
|
2555
|
+
"enum": [
|
|
2556
|
+
"all",
|
|
2557
|
+
"dev",
|
|
2558
|
+
"branch-deploy",
|
|
2559
|
+
"deploy-preview",
|
|
2560
|
+
"production"
|
|
2561
|
+
],
|
|
2562
|
+
"required": false,
|
|
2563
|
+
"in": "query"
|
|
2564
|
+
},
|
|
2565
|
+
{
|
|
2566
|
+
"name": "scope",
|
|
2567
|
+
"description": "Filter by scope",
|
|
2568
|
+
"type": "string",
|
|
2569
|
+
"enum": [
|
|
2570
|
+
"builds",
|
|
2571
|
+
"functions",
|
|
2572
|
+
"runtime",
|
|
2573
|
+
"post_processing"
|
|
2574
|
+
],
|
|
2575
|
+
"required": false,
|
|
2576
|
+
"in": "query"
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
"name": "site_id",
|
|
2580
|
+
"description": "If specified, only return environment variables set on this site",
|
|
2581
|
+
"type": "string",
|
|
2582
|
+
"required": false,
|
|
2583
|
+
"in": "query"
|
|
2584
|
+
}
|
|
2585
|
+
],
|
|
2586
|
+
"responses": {
|
|
2587
|
+
"200": {
|
|
2588
|
+
"description": "OK",
|
|
2589
|
+
"schema": {
|
|
2590
|
+
"type": "array",
|
|
2591
|
+
"items": {
|
|
2592
|
+
"type": "object",
|
|
2593
|
+
"properties": {
|
|
2594
|
+
"key": {
|
|
2595
|
+
"type": "string",
|
|
2596
|
+
"description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
|
|
2597
|
+
"x-faker": "commerce.productName"
|
|
2598
|
+
},
|
|
2599
|
+
"scopes": {
|
|
2600
|
+
"type": "array",
|
|
2601
|
+
"items": {
|
|
2602
|
+
"type": "string",
|
|
2603
|
+
"enum": [
|
|
2604
|
+
"builds",
|
|
2605
|
+
"functions",
|
|
2606
|
+
"runtime",
|
|
2607
|
+
"post_processing"
|
|
2608
|
+
]
|
|
2609
|
+
},
|
|
2610
|
+
"description": "The scopes that this environment variable is set to"
|
|
2611
|
+
},
|
|
2612
|
+
"values": {
|
|
2613
|
+
"type": "array",
|
|
2614
|
+
"items": {
|
|
2615
|
+
"type": "object",
|
|
2616
|
+
"properties": {
|
|
2617
|
+
"id": {
|
|
2618
|
+
"type": "string",
|
|
2619
|
+
"description": "The environment variable value's universally unique ID",
|
|
2620
|
+
"x-faker": "datatype.uuid"
|
|
2621
|
+
},
|
|
2622
|
+
"value": {
|
|
2623
|
+
"type": "string",
|
|
2624
|
+
"description": "The environment variable's unencrypted value",
|
|
2625
|
+
"x-faker": "internet.password"
|
|
2626
|
+
},
|
|
2627
|
+
"context": {
|
|
2628
|
+
"type": "string",
|
|
2629
|
+
"enum": [
|
|
2630
|
+
"all",
|
|
2631
|
+
"dev",
|
|
2632
|
+
"branch-deploy",
|
|
2633
|
+
"deploy-preview",
|
|
2634
|
+
"production"
|
|
2635
|
+
],
|
|
2636
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2637
|
+
}
|
|
2638
|
+
},
|
|
2639
|
+
"description": "Environment variable value model definition"
|
|
2640
|
+
},
|
|
2641
|
+
"description": "An array of Value objects containing values and metadata",
|
|
2642
|
+
"x-faker": "internet.password"
|
|
2643
|
+
},
|
|
2644
|
+
"updated_at": {
|
|
2645
|
+
"type": "string",
|
|
2646
|
+
"format": "date-time",
|
|
2647
|
+
"description": "The timestamp of when the value was last updated",
|
|
2648
|
+
"x-faker": "date.past"
|
|
2649
|
+
},
|
|
2650
|
+
"updated_by": {
|
|
2651
|
+
"type": "object",
|
|
2652
|
+
"properties": {
|
|
2653
|
+
"id": {
|
|
2654
|
+
"type": "string",
|
|
2655
|
+
"description": "The user's unique identifier",
|
|
2656
|
+
"x-faker": "datatype.number"
|
|
2657
|
+
},
|
|
2658
|
+
"full_name": {
|
|
2659
|
+
"type": "string",
|
|
2660
|
+
"description": "The user's full name (first and last)",
|
|
2661
|
+
"x-faker": "name.findName"
|
|
2662
|
+
},
|
|
2663
|
+
"email": {
|
|
2664
|
+
"type": "string",
|
|
2665
|
+
"description": "The user's email address",
|
|
2666
|
+
"x-faker": "internet.email"
|
|
2667
|
+
},
|
|
2668
|
+
"avatar_url": {
|
|
2669
|
+
"type": "string",
|
|
2670
|
+
"description": "A URL pointing to the user's avatar",
|
|
2671
|
+
"x-faker": "internet.avatar"
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
},
|
|
2676
|
+
"description": "Environment variable model definition"
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
"default": {
|
|
2681
|
+
"description": "error",
|
|
2682
|
+
"schema": {
|
|
2683
|
+
"type": "object",
|
|
2684
|
+
"required": [
|
|
2685
|
+
"message"
|
|
2686
|
+
],
|
|
2687
|
+
"properties": {
|
|
2688
|
+
"code": {
|
|
2689
|
+
"type": "integer",
|
|
2690
|
+
"format": "int64"
|
|
2691
|
+
},
|
|
2692
|
+
"message": {
|
|
2693
|
+
"type": "string",
|
|
2694
|
+
"x-nullable": false
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
}
|
|
2699
|
+
},
|
|
2700
|
+
"description": "[Beta] Returns all environment variables for an account or site. An account corresponds to a team in the Netlify UI."
|
|
2701
|
+
},
|
|
2702
|
+
"post": {
|
|
2703
|
+
"tags": [
|
|
2704
|
+
"environmentVariables"
|
|
2705
|
+
],
|
|
2706
|
+
"operationId": "createEnvVars",
|
|
2707
|
+
"description": "[Beta] Creates new environment variables. Granular scopes are available on Pro plans and above.",
|
|
2708
|
+
"parameters": [
|
|
2709
|
+
{
|
|
2710
|
+
"in": "body",
|
|
2711
|
+
"name": "env_vars",
|
|
2712
|
+
"schema": {
|
|
2713
|
+
"type": "array",
|
|
2714
|
+
"items": {
|
|
2715
|
+
"type": "object",
|
|
2716
|
+
"properties": {
|
|
2717
|
+
"key": {
|
|
2718
|
+
"type": "string",
|
|
2719
|
+
"description": "The existing or new name of the key, if you wish to rename it (case-sensitive)"
|
|
2720
|
+
},
|
|
2721
|
+
"scopes": {
|
|
2722
|
+
"description": "The scopes that this environment variable is set to (Pro plans and above)",
|
|
2723
|
+
"type": "array",
|
|
2724
|
+
"items": {
|
|
2725
|
+
"type": "string",
|
|
2726
|
+
"enum": [
|
|
2727
|
+
"builds",
|
|
2728
|
+
"functions",
|
|
2729
|
+
"runtime",
|
|
2730
|
+
"post_processing"
|
|
2731
|
+
]
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
"values": {
|
|
2735
|
+
"type": "array",
|
|
2736
|
+
"items": {
|
|
2737
|
+
"type": "object",
|
|
2738
|
+
"properties": {
|
|
2739
|
+
"id": {
|
|
2740
|
+
"type": "string",
|
|
2741
|
+
"description": "The environment variable value's universally unique ID",
|
|
2742
|
+
"x-faker": "datatype.uuid"
|
|
2743
|
+
},
|
|
2744
|
+
"value": {
|
|
2745
|
+
"type": "string",
|
|
2746
|
+
"description": "The environment variable's unencrypted value",
|
|
2747
|
+
"x-faker": "internet.password"
|
|
2748
|
+
},
|
|
2749
|
+
"context": {
|
|
2750
|
+
"type": "string",
|
|
2751
|
+
"enum": [
|
|
2752
|
+
"all",
|
|
2753
|
+
"dev",
|
|
2754
|
+
"branch-deploy",
|
|
2755
|
+
"deploy-preview",
|
|
2756
|
+
"production"
|
|
2757
|
+
],
|
|
2758
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2759
|
+
}
|
|
2760
|
+
},
|
|
2761
|
+
"description": "Environment variable value model definition"
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
"name": "account_id",
|
|
2770
|
+
"description": "Scope response to account_id",
|
|
2771
|
+
"type": "string",
|
|
2772
|
+
"required": true,
|
|
2773
|
+
"in": "path"
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
"name": "site_id",
|
|
2777
|
+
"description": "If provided, create an environment variable on the site level, not the account level",
|
|
2778
|
+
"type": "string",
|
|
2779
|
+
"required": false,
|
|
2780
|
+
"in": "query"
|
|
2781
|
+
}
|
|
2782
|
+
],
|
|
2783
|
+
"responses": {
|
|
2784
|
+
"201": {
|
|
2785
|
+
"description": "OK",
|
|
2786
|
+
"schema": {
|
|
2787
|
+
"type": "array",
|
|
2788
|
+
"items": {
|
|
2789
|
+
"type": "object",
|
|
2790
|
+
"properties": {
|
|
2791
|
+
"key": {
|
|
2792
|
+
"type": "string",
|
|
2793
|
+
"description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
|
|
2794
|
+
"x-faker": "commerce.productName"
|
|
2795
|
+
},
|
|
2796
|
+
"scopes": {
|
|
2797
|
+
"type": "array",
|
|
2798
|
+
"items": {
|
|
2799
|
+
"type": "string",
|
|
2800
|
+
"enum": [
|
|
2801
|
+
"builds",
|
|
2802
|
+
"functions",
|
|
2803
|
+
"runtime",
|
|
2804
|
+
"post_processing"
|
|
2805
|
+
]
|
|
2806
|
+
},
|
|
2807
|
+
"description": "The scopes that this environment variable is set to"
|
|
2808
|
+
},
|
|
2809
|
+
"values": {
|
|
2810
|
+
"type": "array",
|
|
2811
|
+
"items": {
|
|
2812
|
+
"type": "object",
|
|
2813
|
+
"properties": {
|
|
2814
|
+
"id": {
|
|
2815
|
+
"type": "string",
|
|
2816
|
+
"description": "The environment variable value's universally unique ID",
|
|
2817
|
+
"x-faker": "datatype.uuid"
|
|
2818
|
+
},
|
|
2819
|
+
"value": {
|
|
2820
|
+
"type": "string",
|
|
2821
|
+
"description": "The environment variable's unencrypted value",
|
|
2822
|
+
"x-faker": "internet.password"
|
|
2823
|
+
},
|
|
2824
|
+
"context": {
|
|
2825
|
+
"type": "string",
|
|
2826
|
+
"enum": [
|
|
2827
|
+
"all",
|
|
2828
|
+
"dev",
|
|
2829
|
+
"branch-deploy",
|
|
2830
|
+
"deploy-preview",
|
|
2831
|
+
"production"
|
|
2832
|
+
],
|
|
2833
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2834
|
+
}
|
|
2835
|
+
},
|
|
2836
|
+
"description": "Environment variable value model definition"
|
|
2837
|
+
},
|
|
2838
|
+
"description": "An array of Value objects containing values and metadata",
|
|
2839
|
+
"x-faker": "internet.password"
|
|
2840
|
+
},
|
|
2841
|
+
"updated_at": {
|
|
2842
|
+
"type": "string",
|
|
2843
|
+
"format": "date-time",
|
|
2844
|
+
"description": "The timestamp of when the value was last updated",
|
|
2845
|
+
"x-faker": "date.past"
|
|
2846
|
+
},
|
|
2847
|
+
"updated_by": {
|
|
2848
|
+
"type": "object",
|
|
2849
|
+
"properties": {
|
|
2850
|
+
"id": {
|
|
2851
|
+
"type": "string",
|
|
2852
|
+
"description": "The user's unique identifier",
|
|
2853
|
+
"x-faker": "datatype.number"
|
|
2854
|
+
},
|
|
2855
|
+
"full_name": {
|
|
2856
|
+
"type": "string",
|
|
2857
|
+
"description": "The user's full name (first and last)",
|
|
2858
|
+
"x-faker": "name.findName"
|
|
2859
|
+
},
|
|
2860
|
+
"email": {
|
|
2861
|
+
"type": "string",
|
|
2862
|
+
"description": "The user's email address",
|
|
2863
|
+
"x-faker": "internet.email"
|
|
2864
|
+
},
|
|
2865
|
+
"avatar_url": {
|
|
2866
|
+
"type": "string",
|
|
2867
|
+
"description": "A URL pointing to the user's avatar",
|
|
2868
|
+
"x-faker": "internet.avatar"
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
},
|
|
2873
|
+
"description": "Environment variable model definition"
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
},
|
|
2877
|
+
"default": {
|
|
2878
|
+
"description": "error",
|
|
2879
|
+
"schema": {
|
|
2880
|
+
"type": "object",
|
|
2881
|
+
"required": [
|
|
2882
|
+
"message"
|
|
2883
|
+
],
|
|
2884
|
+
"properties": {
|
|
2885
|
+
"code": {
|
|
2886
|
+
"type": "integer",
|
|
2887
|
+
"format": "int64"
|
|
2888
|
+
},
|
|
2889
|
+
"message": {
|
|
2890
|
+
"type": "string",
|
|
2891
|
+
"x-nullable": false
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
},
|
|
2899
|
+
"/accounts/{account_id}/env/{key}": {
|
|
2900
|
+
"get": {
|
|
2901
|
+
"tags": [
|
|
2902
|
+
"environmentVariables"
|
|
2903
|
+
],
|
|
2904
|
+
"operationId": "getEnvVar",
|
|
2905
|
+
"parameters": [
|
|
2906
|
+
{
|
|
2907
|
+
"name": "account_id",
|
|
2908
|
+
"description": "Scope response to account_id",
|
|
2909
|
+
"type": "string",
|
|
2910
|
+
"required": true,
|
|
2911
|
+
"in": "path"
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
"name": "key",
|
|
2915
|
+
"description": "The environment variable key (case-sensitive)",
|
|
2916
|
+
"type": "string",
|
|
2917
|
+
"required": true,
|
|
2918
|
+
"in": "path"
|
|
2919
|
+
},
|
|
2920
|
+
{
|
|
2921
|
+
"name": "site_id",
|
|
2922
|
+
"description": "If provided, return the environment variable for a specific site (no merging is performed)",
|
|
2923
|
+
"type": "string",
|
|
2924
|
+
"required": false,
|
|
2925
|
+
"in": "query"
|
|
2926
|
+
}
|
|
2927
|
+
],
|
|
2928
|
+
"responses": {
|
|
2929
|
+
"200": {
|
|
2930
|
+
"description": "OK",
|
|
2931
|
+
"schema": {
|
|
2932
|
+
"type": "object",
|
|
2933
|
+
"properties": {
|
|
2934
|
+
"key": {
|
|
2935
|
+
"type": "string",
|
|
2936
|
+
"description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
|
|
2937
|
+
"x-faker": "commerce.productName"
|
|
2938
|
+
},
|
|
2939
|
+
"scopes": {
|
|
2940
|
+
"type": "array",
|
|
2941
|
+
"items": {
|
|
2942
|
+
"type": "string",
|
|
2943
|
+
"enum": [
|
|
2944
|
+
"builds",
|
|
2945
|
+
"functions",
|
|
2946
|
+
"runtime",
|
|
2947
|
+
"post_processing"
|
|
2948
|
+
]
|
|
2949
|
+
},
|
|
2950
|
+
"description": "The scopes that this environment variable is set to"
|
|
2951
|
+
},
|
|
2952
|
+
"values": {
|
|
2953
|
+
"type": "array",
|
|
2954
|
+
"items": {
|
|
2955
|
+
"type": "object",
|
|
2956
|
+
"properties": {
|
|
2957
|
+
"id": {
|
|
2958
|
+
"type": "string",
|
|
2959
|
+
"description": "The environment variable value's universally unique ID",
|
|
2960
|
+
"x-faker": "datatype.uuid"
|
|
2961
|
+
},
|
|
2962
|
+
"value": {
|
|
2963
|
+
"type": "string",
|
|
2964
|
+
"description": "The environment variable's unencrypted value",
|
|
2965
|
+
"x-faker": "internet.password"
|
|
2966
|
+
},
|
|
2967
|
+
"context": {
|
|
2968
|
+
"type": "string",
|
|
2969
|
+
"enum": [
|
|
2970
|
+
"all",
|
|
2971
|
+
"dev",
|
|
2972
|
+
"branch-deploy",
|
|
2973
|
+
"deploy-preview",
|
|
2974
|
+
"production"
|
|
2975
|
+
],
|
|
2976
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
2977
|
+
}
|
|
2978
|
+
},
|
|
2979
|
+
"description": "Environment variable value model definition"
|
|
2980
|
+
},
|
|
2981
|
+
"description": "An array of Value objects containing values and metadata",
|
|
2982
|
+
"x-faker": "internet.password"
|
|
2983
|
+
},
|
|
2984
|
+
"updated_at": {
|
|
2985
|
+
"type": "string",
|
|
2986
|
+
"format": "date-time",
|
|
2987
|
+
"description": "The timestamp of when the value was last updated",
|
|
2988
|
+
"x-faker": "date.past"
|
|
2989
|
+
},
|
|
2990
|
+
"updated_by": {
|
|
2991
|
+
"type": "object",
|
|
2992
|
+
"properties": {
|
|
2993
|
+
"id": {
|
|
2994
|
+
"type": "string",
|
|
2995
|
+
"description": "The user's unique identifier",
|
|
2996
|
+
"x-faker": "datatype.number"
|
|
2997
|
+
},
|
|
2998
|
+
"full_name": {
|
|
2999
|
+
"type": "string",
|
|
3000
|
+
"description": "The user's full name (first and last)",
|
|
3001
|
+
"x-faker": "name.findName"
|
|
3002
|
+
},
|
|
3003
|
+
"email": {
|
|
3004
|
+
"type": "string",
|
|
3005
|
+
"description": "The user's email address",
|
|
3006
|
+
"x-faker": "internet.email"
|
|
3007
|
+
},
|
|
3008
|
+
"avatar_url": {
|
|
3009
|
+
"type": "string",
|
|
3010
|
+
"description": "A URL pointing to the user's avatar",
|
|
3011
|
+
"x-faker": "internet.avatar"
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
}
|
|
3015
|
+
},
|
|
3016
|
+
"description": "Environment variable model definition"
|
|
3017
|
+
}
|
|
3018
|
+
},
|
|
3019
|
+
"default": {
|
|
3020
|
+
"description": "error",
|
|
3021
|
+
"schema": {
|
|
3022
|
+
"type": "object",
|
|
3023
|
+
"required": [
|
|
3024
|
+
"message"
|
|
3025
|
+
],
|
|
3026
|
+
"properties": {
|
|
3027
|
+
"code": {
|
|
3028
|
+
"type": "integer",
|
|
3029
|
+
"format": "int64"
|
|
3030
|
+
},
|
|
3031
|
+
"message": {
|
|
3032
|
+
"type": "string",
|
|
3033
|
+
"x-nullable": false
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
3037
|
+
}
|
|
3038
|
+
},
|
|
3039
|
+
"description": "[Beta] Returns an individual environment variable."
|
|
3040
|
+
},
|
|
3041
|
+
"put": {
|
|
3042
|
+
"tags": [
|
|
3043
|
+
"environmentVariables"
|
|
3044
|
+
],
|
|
3045
|
+
"operationId": "updateEnvVar",
|
|
3046
|
+
"description": "[Beta] Updates an existing environment variable and all of its values. Existing values will be replaced by values provided.",
|
|
3047
|
+
"parameters": [
|
|
3048
|
+
{
|
|
3049
|
+
"name": "account_id",
|
|
3050
|
+
"description": "Scope response to account_id",
|
|
3051
|
+
"type": "string",
|
|
3052
|
+
"required": true,
|
|
3053
|
+
"in": "path"
|
|
3054
|
+
},
|
|
3055
|
+
{
|
|
3056
|
+
"name": "key",
|
|
3057
|
+
"description": "The existing environment variable key name (case-sensitive)",
|
|
3058
|
+
"type": "string",
|
|
3059
|
+
"required": true,
|
|
3060
|
+
"in": "path"
|
|
3061
|
+
},
|
|
3062
|
+
{
|
|
3063
|
+
"in": "body",
|
|
3064
|
+
"name": "env_var",
|
|
3065
|
+
"schema": {
|
|
3066
|
+
"type": "object",
|
|
3067
|
+
"properties": {
|
|
3068
|
+
"key": {
|
|
3069
|
+
"type": "string",
|
|
3070
|
+
"description": "The existing or new name of the key, if you wish to rename it (case-sensitive)"
|
|
3071
|
+
},
|
|
3072
|
+
"scopes": {
|
|
3073
|
+
"description": "The scopes that this environment variable is set to (Pro plans and above)",
|
|
3074
|
+
"type": "array",
|
|
3075
|
+
"items": {
|
|
3076
|
+
"type": "string",
|
|
3077
|
+
"enum": [
|
|
3078
|
+
"builds",
|
|
3079
|
+
"functions",
|
|
3080
|
+
"runtime",
|
|
3081
|
+
"post_processing"
|
|
3082
|
+
]
|
|
3083
|
+
}
|
|
3084
|
+
},
|
|
3085
|
+
"values": {
|
|
3086
|
+
"type": "array",
|
|
3087
|
+
"items": {
|
|
3088
|
+
"type": "object",
|
|
3089
|
+
"properties": {
|
|
3090
|
+
"id": {
|
|
3091
|
+
"type": "string",
|
|
3092
|
+
"description": "The environment variable value's universally unique ID",
|
|
3093
|
+
"x-faker": "datatype.uuid"
|
|
3094
|
+
},
|
|
3095
|
+
"value": {
|
|
3096
|
+
"type": "string",
|
|
3097
|
+
"description": "The environment variable's unencrypted value",
|
|
3098
|
+
"x-faker": "internet.password"
|
|
3099
|
+
},
|
|
3100
|
+
"context": {
|
|
3101
|
+
"type": "string",
|
|
3102
|
+
"enum": [
|
|
3103
|
+
"all",
|
|
3104
|
+
"dev",
|
|
3105
|
+
"branch-deploy",
|
|
3106
|
+
"deploy-preview",
|
|
3107
|
+
"production"
|
|
3108
|
+
],
|
|
3109
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3110
|
+
}
|
|
3111
|
+
},
|
|
3112
|
+
"description": "Environment variable value model definition"
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
},
|
|
3118
|
+
{
|
|
3119
|
+
"name": "site_id",
|
|
3120
|
+
"description": "If provided, update an environment variable set on this site",
|
|
3121
|
+
"type": "string",
|
|
3122
|
+
"required": false,
|
|
3123
|
+
"in": "query"
|
|
3124
|
+
}
|
|
3125
|
+
],
|
|
3126
|
+
"responses": {
|
|
3127
|
+
"200": {
|
|
3128
|
+
"description": "OK",
|
|
3129
|
+
"schema": {
|
|
3130
|
+
"type": "object",
|
|
3131
|
+
"properties": {
|
|
3132
|
+
"key": {
|
|
3133
|
+
"type": "string",
|
|
3134
|
+
"description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
|
|
3135
|
+
"x-faker": "commerce.productName"
|
|
3136
|
+
},
|
|
3137
|
+
"scopes": {
|
|
3138
|
+
"type": "array",
|
|
3139
|
+
"items": {
|
|
3140
|
+
"type": "string",
|
|
3141
|
+
"enum": [
|
|
3142
|
+
"builds",
|
|
3143
|
+
"functions",
|
|
3144
|
+
"runtime",
|
|
3145
|
+
"post_processing"
|
|
3146
|
+
]
|
|
3147
|
+
},
|
|
3148
|
+
"description": "The scopes that this environment variable is set to"
|
|
3149
|
+
},
|
|
3150
|
+
"values": {
|
|
3151
|
+
"type": "array",
|
|
3152
|
+
"items": {
|
|
3153
|
+
"type": "object",
|
|
3154
|
+
"properties": {
|
|
3155
|
+
"id": {
|
|
3156
|
+
"type": "string",
|
|
3157
|
+
"description": "The environment variable value's universally unique ID",
|
|
3158
|
+
"x-faker": "datatype.uuid"
|
|
3159
|
+
},
|
|
3160
|
+
"value": {
|
|
3161
|
+
"type": "string",
|
|
3162
|
+
"description": "The environment variable's unencrypted value",
|
|
3163
|
+
"x-faker": "internet.password"
|
|
3164
|
+
},
|
|
3165
|
+
"context": {
|
|
3166
|
+
"type": "string",
|
|
3167
|
+
"enum": [
|
|
3168
|
+
"all",
|
|
3169
|
+
"dev",
|
|
3170
|
+
"branch-deploy",
|
|
3171
|
+
"deploy-preview",
|
|
3172
|
+
"production"
|
|
3173
|
+
],
|
|
3174
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
"description": "Environment variable value model definition"
|
|
3178
|
+
},
|
|
3179
|
+
"description": "An array of Value objects containing values and metadata",
|
|
3180
|
+
"x-faker": "internet.password"
|
|
3181
|
+
},
|
|
3182
|
+
"updated_at": {
|
|
3183
|
+
"type": "string",
|
|
3184
|
+
"format": "date-time",
|
|
3185
|
+
"description": "The timestamp of when the value was last updated",
|
|
3186
|
+
"x-faker": "date.past"
|
|
3187
|
+
},
|
|
3188
|
+
"updated_by": {
|
|
3189
|
+
"type": "object",
|
|
3190
|
+
"properties": {
|
|
3191
|
+
"id": {
|
|
3192
|
+
"type": "string",
|
|
3193
|
+
"description": "The user's unique identifier",
|
|
3194
|
+
"x-faker": "datatype.number"
|
|
3195
|
+
},
|
|
3196
|
+
"full_name": {
|
|
3197
|
+
"type": "string",
|
|
3198
|
+
"description": "The user's full name (first and last)",
|
|
3199
|
+
"x-faker": "name.findName"
|
|
3200
|
+
},
|
|
3201
|
+
"email": {
|
|
3202
|
+
"type": "string",
|
|
3203
|
+
"description": "The user's email address",
|
|
3204
|
+
"x-faker": "internet.email"
|
|
3205
|
+
},
|
|
3206
|
+
"avatar_url": {
|
|
3207
|
+
"type": "string",
|
|
3208
|
+
"description": "A URL pointing to the user's avatar",
|
|
3209
|
+
"x-faker": "internet.avatar"
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
},
|
|
3214
|
+
"description": "Environment variable model definition"
|
|
3215
|
+
}
|
|
3216
|
+
},
|
|
3217
|
+
"default": {
|
|
3218
|
+
"description": "error",
|
|
3219
|
+
"schema": {
|
|
3220
|
+
"type": "object",
|
|
3221
|
+
"required": [
|
|
3222
|
+
"message"
|
|
3223
|
+
],
|
|
3224
|
+
"properties": {
|
|
3225
|
+
"code": {
|
|
3226
|
+
"type": "integer",
|
|
3227
|
+
"format": "int64"
|
|
3228
|
+
},
|
|
3229
|
+
"message": {
|
|
3230
|
+
"type": "string",
|
|
3231
|
+
"x-nullable": false
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
}
|
|
3237
|
+
},
|
|
3238
|
+
"delete": {
|
|
3239
|
+
"tags": [
|
|
3240
|
+
"environmentVariables"
|
|
3241
|
+
],
|
|
3242
|
+
"operationId": "deleteEnvVar",
|
|
3243
|
+
"parameters": [
|
|
3244
|
+
{
|
|
3245
|
+
"name": "account_id",
|
|
3246
|
+
"description": "Scope response to account_id",
|
|
3247
|
+
"type": "string",
|
|
3248
|
+
"required": true,
|
|
3249
|
+
"in": "path"
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
"name": "key",
|
|
3253
|
+
"description": "The environment variable key (case-sensitive)",
|
|
3254
|
+
"type": "string",
|
|
3255
|
+
"required": true,
|
|
3256
|
+
"in": "path"
|
|
3257
|
+
},
|
|
3258
|
+
{
|
|
3259
|
+
"name": "site_id",
|
|
3260
|
+
"description": "If provided, delete the environment variable from this site",
|
|
3261
|
+
"type": "string",
|
|
3262
|
+
"required": false,
|
|
3263
|
+
"in": "query"
|
|
3264
|
+
}
|
|
3265
|
+
],
|
|
3266
|
+
"responses": {
|
|
3267
|
+
"204": {
|
|
3268
|
+
"description": "No Content (success)"
|
|
3269
|
+
},
|
|
3270
|
+
"default": {
|
|
3271
|
+
"description": "error",
|
|
3272
|
+
"schema": {
|
|
3273
|
+
"type": "object",
|
|
3274
|
+
"required": [
|
|
3275
|
+
"message"
|
|
3276
|
+
],
|
|
3277
|
+
"properties": {
|
|
3278
|
+
"code": {
|
|
3279
|
+
"type": "integer",
|
|
3280
|
+
"format": "int64"
|
|
3281
|
+
},
|
|
3282
|
+
"message": {
|
|
3283
|
+
"type": "string",
|
|
3284
|
+
"x-nullable": false
|
|
3285
|
+
}
|
|
3286
|
+
}
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
},
|
|
3290
|
+
"description": "[Beta] Deletes an environment variable."
|
|
3291
|
+
}
|
|
3292
|
+
},
|
|
3293
|
+
"/accounts/{account_id}/env/{key}/value/{id}": {
|
|
3294
|
+
"delete": {
|
|
3295
|
+
"tags": [
|
|
3296
|
+
"environmentVariables"
|
|
3297
|
+
],
|
|
3298
|
+
"operationId": "deleteEnvVarValue",
|
|
3299
|
+
"parameters": [
|
|
3300
|
+
{
|
|
3301
|
+
"name": "account_id",
|
|
3302
|
+
"description": "Scope response to account_id",
|
|
3303
|
+
"required": true,
|
|
3304
|
+
"in": "path",
|
|
3305
|
+
"type": "string"
|
|
3306
|
+
},
|
|
3307
|
+
{
|
|
3308
|
+
"name": "id",
|
|
3309
|
+
"description": "The environment variable value's ID",
|
|
3310
|
+
"type": "string",
|
|
3311
|
+
"required": true,
|
|
3312
|
+
"in": "path"
|
|
3313
|
+
},
|
|
3314
|
+
{
|
|
3315
|
+
"name": "key",
|
|
3316
|
+
"description": "The environment variable key name (case-sensitive)",
|
|
3317
|
+
"type": "string",
|
|
3318
|
+
"required": true,
|
|
3319
|
+
"in": "path"
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
"name": "site_id",
|
|
3323
|
+
"description": "If provided, delete the value from an environment variable on this site",
|
|
3324
|
+
"type": "string",
|
|
3325
|
+
"required": false,
|
|
3326
|
+
"in": "query"
|
|
3327
|
+
}
|
|
3328
|
+
],
|
|
3329
|
+
"responses": {
|
|
3330
|
+
"204": {
|
|
3331
|
+
"description": "No Content (success)"
|
|
3332
|
+
},
|
|
3333
|
+
"default": {
|
|
3334
|
+
"description": "error",
|
|
3335
|
+
"schema": {
|
|
3336
|
+
"type": "object",
|
|
3337
|
+
"required": [
|
|
3338
|
+
"message"
|
|
3339
|
+
],
|
|
3340
|
+
"properties": {
|
|
3341
|
+
"code": {
|
|
3342
|
+
"type": "integer",
|
|
3343
|
+
"format": "int64"
|
|
3344
|
+
},
|
|
3345
|
+
"message": {
|
|
3346
|
+
"type": "string",
|
|
3347
|
+
"x-nullable": false
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
"description": "[Beta] Deletes a specific environment variable value."
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
2537
3356
|
"/sites/{site_id}/forms": {
|
|
2538
3357
|
"get": {
|
|
2539
3358
|
"operationId": "listSiteForms",
|
|
@@ -13525,6 +14344,145 @@
|
|
|
13525
14344
|
}
|
|
13526
14345
|
}
|
|
13527
14346
|
},
|
|
14347
|
+
"envVar": {
|
|
14348
|
+
"type": "object",
|
|
14349
|
+
"properties": {
|
|
14350
|
+
"key": {
|
|
14351
|
+
"type": "string",
|
|
14352
|
+
"description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
|
|
14353
|
+
"x-faker": "commerce.productName"
|
|
14354
|
+
},
|
|
14355
|
+
"scopes": {
|
|
14356
|
+
"type": "array",
|
|
14357
|
+
"items": {
|
|
14358
|
+
"type": "string",
|
|
14359
|
+
"enum": [
|
|
14360
|
+
"builds",
|
|
14361
|
+
"functions",
|
|
14362
|
+
"runtime",
|
|
14363
|
+
"post_processing"
|
|
14364
|
+
]
|
|
14365
|
+
},
|
|
14366
|
+
"description": "The scopes that this environment variable is set to"
|
|
14367
|
+
},
|
|
14368
|
+
"values": {
|
|
14369
|
+
"type": "array",
|
|
14370
|
+
"items": {
|
|
14371
|
+
"type": "object",
|
|
14372
|
+
"properties": {
|
|
14373
|
+
"id": {
|
|
14374
|
+
"type": "string",
|
|
14375
|
+
"description": "The environment variable value's universally unique ID",
|
|
14376
|
+
"x-faker": "datatype.uuid"
|
|
14377
|
+
},
|
|
14378
|
+
"value": {
|
|
14379
|
+
"type": "string",
|
|
14380
|
+
"description": "The environment variable's unencrypted value",
|
|
14381
|
+
"x-faker": "internet.password"
|
|
14382
|
+
},
|
|
14383
|
+
"context": {
|
|
14384
|
+
"type": "string",
|
|
14385
|
+
"enum": [
|
|
14386
|
+
"all",
|
|
14387
|
+
"dev",
|
|
14388
|
+
"branch-deploy",
|
|
14389
|
+
"deploy-preview",
|
|
14390
|
+
"production"
|
|
14391
|
+
],
|
|
14392
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
14393
|
+
}
|
|
14394
|
+
},
|
|
14395
|
+
"description": "Environment variable value model definition"
|
|
14396
|
+
},
|
|
14397
|
+
"description": "An array of Value objects containing values and metadata",
|
|
14398
|
+
"x-faker": "internet.password"
|
|
14399
|
+
},
|
|
14400
|
+
"updated_at": {
|
|
14401
|
+
"type": "string",
|
|
14402
|
+
"format": "date-time",
|
|
14403
|
+
"description": "The timestamp of when the value was last updated",
|
|
14404
|
+
"x-faker": "date.past"
|
|
14405
|
+
},
|
|
14406
|
+
"updated_by": {
|
|
14407
|
+
"type": "object",
|
|
14408
|
+
"properties": {
|
|
14409
|
+
"id": {
|
|
14410
|
+
"type": "string",
|
|
14411
|
+
"description": "The user's unique identifier",
|
|
14412
|
+
"x-faker": "datatype.number"
|
|
14413
|
+
},
|
|
14414
|
+
"full_name": {
|
|
14415
|
+
"type": "string",
|
|
14416
|
+
"description": "The user's full name (first and last)",
|
|
14417
|
+
"x-faker": "name.findName"
|
|
14418
|
+
},
|
|
14419
|
+
"email": {
|
|
14420
|
+
"type": "string",
|
|
14421
|
+
"description": "The user's email address",
|
|
14422
|
+
"x-faker": "internet.email"
|
|
14423
|
+
},
|
|
14424
|
+
"avatar_url": {
|
|
14425
|
+
"type": "string",
|
|
14426
|
+
"description": "A URL pointing to the user's avatar",
|
|
14427
|
+
"x-faker": "internet.avatar"
|
|
14428
|
+
}
|
|
14429
|
+
}
|
|
14430
|
+
}
|
|
14431
|
+
},
|
|
14432
|
+
"description": "Environment variable model definition"
|
|
14433
|
+
},
|
|
14434
|
+
"envVarValue": {
|
|
14435
|
+
"type": "object",
|
|
14436
|
+
"properties": {
|
|
14437
|
+
"id": {
|
|
14438
|
+
"type": "string",
|
|
14439
|
+
"description": "The environment variable value's universally unique ID",
|
|
14440
|
+
"x-faker": "datatype.uuid"
|
|
14441
|
+
},
|
|
14442
|
+
"value": {
|
|
14443
|
+
"type": "string",
|
|
14444
|
+
"description": "The environment variable's unencrypted value",
|
|
14445
|
+
"x-faker": "internet.password"
|
|
14446
|
+
},
|
|
14447
|
+
"context": {
|
|
14448
|
+
"type": "string",
|
|
14449
|
+
"enum": [
|
|
14450
|
+
"all",
|
|
14451
|
+
"dev",
|
|
14452
|
+
"branch-deploy",
|
|
14453
|
+
"deploy-preview",
|
|
14454
|
+
"production"
|
|
14455
|
+
],
|
|
14456
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
14457
|
+
}
|
|
14458
|
+
},
|
|
14459
|
+
"description": "Environment variable value model definition"
|
|
14460
|
+
},
|
|
14461
|
+
"envVarUser": {
|
|
14462
|
+
"type": "object",
|
|
14463
|
+
"properties": {
|
|
14464
|
+
"id": {
|
|
14465
|
+
"type": "string",
|
|
14466
|
+
"description": "The user's unique identifier",
|
|
14467
|
+
"x-faker": "datatype.number"
|
|
14468
|
+
},
|
|
14469
|
+
"full_name": {
|
|
14470
|
+
"type": "string",
|
|
14471
|
+
"description": "The user's full name (first and last)",
|
|
14472
|
+
"x-faker": "name.findName"
|
|
14473
|
+
},
|
|
14474
|
+
"email": {
|
|
14475
|
+
"type": "string",
|
|
14476
|
+
"description": "The user's email address",
|
|
14477
|
+
"x-faker": "internet.email"
|
|
14478
|
+
},
|
|
14479
|
+
"avatar_url": {
|
|
14480
|
+
"type": "string",
|
|
14481
|
+
"description": "A URL pointing to the user's avatar",
|
|
14482
|
+
"x-faker": "internet.avatar"
|
|
14483
|
+
}
|
|
14484
|
+
}
|
|
14485
|
+
},
|
|
13528
14486
|
"form": {
|
|
13529
14487
|
"type": "object",
|
|
13530
14488
|
"properties": {
|
|
@@ -15025,6 +15983,7 @@
|
|
|
15025
15983
|
"name": "Site",
|
|
15026
15984
|
"tags": [
|
|
15027
15985
|
"site",
|
|
15986
|
+
"environmentVariables",
|
|
15028
15987
|
"file",
|
|
15029
15988
|
"metadata",
|
|
15030
15989
|
"snippet"
|
|
@@ -15131,6 +16090,10 @@
|
|
|
15131
16090
|
"name": "site",
|
|
15132
16091
|
"x-displayName": "Site"
|
|
15133
16092
|
},
|
|
16093
|
+
{
|
|
16094
|
+
"name": "environmentVariables",
|
|
16095
|
+
"x-displayName": "Environment variables"
|
|
16096
|
+
},
|
|
15134
16097
|
{
|
|
15135
16098
|
"name": "file",
|
|
15136
16099
|
"x-displayName": "File"
|