-
-
Notifications
You must be signed in to change notification settings - Fork 115
/
Create variable.bru
50 lines (38 loc) · 954 Bytes
/
Create variable.bru
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
meta {
name: Create variable
type: http
seq: 1
}
post {
url: {{BASE_URL}}/api/variable/:project_slug
body: json
auth: bearer
}
params:path {
project_slug: project-1-uzukc
}
auth:bearer {
token: {{JWT}}
}
body:json {
{
"name": "PORT_NUMBER",
"entries": [
{
"value": "8080",
"environmentSlug": "alpha-l7xvp"
}
]
}
}
docs {
## Description
This endpoint is used to create a variable.
### Request Body
- `name`: The name of the variable. Should be unique in the project.
- `note`: (Optional) An optional note regarding the use case of the variable.
- `entries`: (Optional) An optional array of Entries that will contain the actual values of the variable.
#### Entry Object:
- `environmentSlug`: The ID of the environment under which you would like to add the value of the secret to.
- `value`: The value of the secret.
}