@netlify/open-api 2.8.0 → 2.11.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 +974 -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.11.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. To use this endpoint, opt in to the beta environment variable experience using 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. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.",
|
|
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. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI."
|
|
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. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI.",
|
|
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. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI."
|
|
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. To use this endpoint, opt in to the beta environment variable experience using the Netlify UI."
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
2537
3356
|
"/sites/{site_id}/forms": {
|
|
2538
3357
|
"get": {
|
|
2539
3358
|
"operationId": "listSiteForms",
|
|
@@ -6916,6 +7735,11 @@
|
|
|
6916
7735
|
"format": "binary"
|
|
6917
7736
|
},
|
|
6918
7737
|
"required": true
|
|
7738
|
+
},
|
|
7739
|
+
{
|
|
7740
|
+
"name": "X-Nf-Retry-Count",
|
|
7741
|
+
"type": "integer",
|
|
7742
|
+
"in": "header"
|
|
6919
7743
|
}
|
|
6920
7744
|
],
|
|
6921
7745
|
"responses": {
|
|
@@ -13525,6 +14349,145 @@
|
|
|
13525
14349
|
}
|
|
13526
14350
|
}
|
|
13527
14351
|
},
|
|
14352
|
+
"envVar": {
|
|
14353
|
+
"type": "object",
|
|
14354
|
+
"properties": {
|
|
14355
|
+
"key": {
|
|
14356
|
+
"type": "string",
|
|
14357
|
+
"description": "The environment variable key, like ALGOLIA_ID (case-sensitive)",
|
|
14358
|
+
"x-faker": "commerce.productName"
|
|
14359
|
+
},
|
|
14360
|
+
"scopes": {
|
|
14361
|
+
"type": "array",
|
|
14362
|
+
"items": {
|
|
14363
|
+
"type": "string",
|
|
14364
|
+
"enum": [
|
|
14365
|
+
"builds",
|
|
14366
|
+
"functions",
|
|
14367
|
+
"runtime",
|
|
14368
|
+
"post_processing"
|
|
14369
|
+
]
|
|
14370
|
+
},
|
|
14371
|
+
"description": "The scopes that this environment variable is set to"
|
|
14372
|
+
},
|
|
14373
|
+
"values": {
|
|
14374
|
+
"type": "array",
|
|
14375
|
+
"items": {
|
|
14376
|
+
"type": "object",
|
|
14377
|
+
"properties": {
|
|
14378
|
+
"id": {
|
|
14379
|
+
"type": "string",
|
|
14380
|
+
"description": "The environment variable value's universally unique ID",
|
|
14381
|
+
"x-faker": "datatype.uuid"
|
|
14382
|
+
},
|
|
14383
|
+
"value": {
|
|
14384
|
+
"type": "string",
|
|
14385
|
+
"description": "The environment variable's unencrypted value",
|
|
14386
|
+
"x-faker": "internet.password"
|
|
14387
|
+
},
|
|
14388
|
+
"context": {
|
|
14389
|
+
"type": "string",
|
|
14390
|
+
"enum": [
|
|
14391
|
+
"all",
|
|
14392
|
+
"dev",
|
|
14393
|
+
"branch-deploy",
|
|
14394
|
+
"deploy-preview",
|
|
14395
|
+
"production"
|
|
14396
|
+
],
|
|
14397
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
14398
|
+
}
|
|
14399
|
+
},
|
|
14400
|
+
"description": "Environment variable value model definition"
|
|
14401
|
+
},
|
|
14402
|
+
"description": "An array of Value objects containing values and metadata",
|
|
14403
|
+
"x-faker": "internet.password"
|
|
14404
|
+
},
|
|
14405
|
+
"updated_at": {
|
|
14406
|
+
"type": "string",
|
|
14407
|
+
"format": "date-time",
|
|
14408
|
+
"description": "The timestamp of when the value was last updated",
|
|
14409
|
+
"x-faker": "date.past"
|
|
14410
|
+
},
|
|
14411
|
+
"updated_by": {
|
|
14412
|
+
"type": "object",
|
|
14413
|
+
"properties": {
|
|
14414
|
+
"id": {
|
|
14415
|
+
"type": "string",
|
|
14416
|
+
"description": "The user's unique identifier",
|
|
14417
|
+
"x-faker": "datatype.number"
|
|
14418
|
+
},
|
|
14419
|
+
"full_name": {
|
|
14420
|
+
"type": "string",
|
|
14421
|
+
"description": "The user's full name (first and last)",
|
|
14422
|
+
"x-faker": "name.findName"
|
|
14423
|
+
},
|
|
14424
|
+
"email": {
|
|
14425
|
+
"type": "string",
|
|
14426
|
+
"description": "The user's email address",
|
|
14427
|
+
"x-faker": "internet.email"
|
|
14428
|
+
},
|
|
14429
|
+
"avatar_url": {
|
|
14430
|
+
"type": "string",
|
|
14431
|
+
"description": "A URL pointing to the user's avatar",
|
|
14432
|
+
"x-faker": "internet.avatar"
|
|
14433
|
+
}
|
|
14434
|
+
}
|
|
14435
|
+
}
|
|
14436
|
+
},
|
|
14437
|
+
"description": "Environment variable model definition"
|
|
14438
|
+
},
|
|
14439
|
+
"envVarValue": {
|
|
14440
|
+
"type": "object",
|
|
14441
|
+
"properties": {
|
|
14442
|
+
"id": {
|
|
14443
|
+
"type": "string",
|
|
14444
|
+
"description": "The environment variable value's universally unique ID",
|
|
14445
|
+
"x-faker": "datatype.uuid"
|
|
14446
|
+
},
|
|
14447
|
+
"value": {
|
|
14448
|
+
"type": "string",
|
|
14449
|
+
"description": "The environment variable's unencrypted value",
|
|
14450
|
+
"x-faker": "internet.password"
|
|
14451
|
+
},
|
|
14452
|
+
"context": {
|
|
14453
|
+
"type": "string",
|
|
14454
|
+
"enum": [
|
|
14455
|
+
"all",
|
|
14456
|
+
"dev",
|
|
14457
|
+
"branch-deploy",
|
|
14458
|
+
"deploy-preview",
|
|
14459
|
+
"production"
|
|
14460
|
+
],
|
|
14461
|
+
"description": "The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`."
|
|
14462
|
+
}
|
|
14463
|
+
},
|
|
14464
|
+
"description": "Environment variable value model definition"
|
|
14465
|
+
},
|
|
14466
|
+
"envVarUser": {
|
|
14467
|
+
"type": "object",
|
|
14468
|
+
"properties": {
|
|
14469
|
+
"id": {
|
|
14470
|
+
"type": "string",
|
|
14471
|
+
"description": "The user's unique identifier",
|
|
14472
|
+
"x-faker": "datatype.number"
|
|
14473
|
+
},
|
|
14474
|
+
"full_name": {
|
|
14475
|
+
"type": "string",
|
|
14476
|
+
"description": "The user's full name (first and last)",
|
|
14477
|
+
"x-faker": "name.findName"
|
|
14478
|
+
},
|
|
14479
|
+
"email": {
|
|
14480
|
+
"type": "string",
|
|
14481
|
+
"description": "The user's email address",
|
|
14482
|
+
"x-faker": "internet.email"
|
|
14483
|
+
},
|
|
14484
|
+
"avatar_url": {
|
|
14485
|
+
"type": "string",
|
|
14486
|
+
"description": "A URL pointing to the user's avatar",
|
|
14487
|
+
"x-faker": "internet.avatar"
|
|
14488
|
+
}
|
|
14489
|
+
}
|
|
14490
|
+
},
|
|
13528
14491
|
"form": {
|
|
13529
14492
|
"type": "object",
|
|
13530
14493
|
"properties": {
|
|
@@ -15000,6 +15963,11 @@
|
|
|
15000
15963
|
"name": "per_page",
|
|
15001
15964
|
"required": false,
|
|
15002
15965
|
"in": "query"
|
|
15966
|
+
},
|
|
15967
|
+
"retryCount": {
|
|
15968
|
+
"name": "X-Nf-Retry-Count",
|
|
15969
|
+
"type": "integer",
|
|
15970
|
+
"in": "header"
|
|
15003
15971
|
}
|
|
15004
15972
|
},
|
|
15005
15973
|
"x-tagGroups": [
|
|
@@ -15025,6 +15993,7 @@
|
|
|
15025
15993
|
"name": "Site",
|
|
15026
15994
|
"tags": [
|
|
15027
15995
|
"site",
|
|
15996
|
+
"environmentVariables",
|
|
15028
15997
|
"file",
|
|
15029
15998
|
"metadata",
|
|
15030
15999
|
"snippet"
|
|
@@ -15131,6 +16100,10 @@
|
|
|
15131
16100
|
"name": "site",
|
|
15132
16101
|
"x-displayName": "Site"
|
|
15133
16102
|
},
|
|
16103
|
+
{
|
|
16104
|
+
"name": "environmentVariables",
|
|
16105
|
+
"x-displayName": "Environment variables"
|
|
16106
|
+
},
|
|
15134
16107
|
{
|
|
15135
16108
|
"name": "file",
|
|
15136
16109
|
"x-displayName": "File"
|