-
Notifications
You must be signed in to change notification settings - Fork 369
Expand file tree
/
Copy path_update.md.erb
More file actions
50 lines (41 loc) · 1.08 KB
/
_update.md.erb
File metadata and controls
50 lines (41 loc) · 1.08 KB
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
### Update an app
```
Example Request
```
```shell
curl "https://api.example.org/v3/apps/[guid]" \
-X PATCH \
-H "Authorization: bearer [token]" \
-H "Content-type: application/json" \
-d '{
"name": "my_app",
"lifecycle": {
"type": "buildpack",
"data": {
"buildpacks": ["java_buildpack"]
}
}
}'
```
```
Example Response
```
```http
HTTP/1.1 200 OK
Content-Type: application/json
<%= yield_content :app_with_state, 'STARTED' %>
```
#### Definition
`PATCH /v3/apps/:guid`
#### Optional parameters
Name | Type | Description
---- | ---- | -----------
**name** | _string_ | Name of the app
**lifecycle** | [_lifecycle object_](#the-lifecycle-object) | Lifecycle to be used when updating the app; note: `data` is a required field in lifecycle if lifecycle is updated. `type` may NOT be changed from its current value.
**metadata.labels** | [_label object_](#labels) | Labels applied to the app
**metadata.annotations** | [_annotation object_](#annotations) | Annotations applied to the app
#### Permitted roles
|
--- | ---
Admin |
Space Developer |