Updates a project and triggers an automatic deployment if its template parameters change.
Operation description
Only the specified writable fields are updated. Unspecified fields remain unchanged.
An automatic deployment is triggered only if the template parameters (spec.templateConfig.parameters) change.
A project can no longer be updated after its default environment configuration is modified using environment-related APIs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
devs:UpdateProject |
update |
*Project
|
None | None |
Request syntax
PUT /2023-07-14/projects/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the project. |
demo-name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body | Project |
No |
The project entity to update. Only specified writable fields are updated; unspecified fields remain unchanged. |
Response elements
|
Element |
Type |
Description |
Example |
| Project |
The updated project entity. |
Examples
Success response
JSON format
{
"uid": "1455541096***548",
"kind": "Project",
"createdTime": "2021-11-19T09:34:38Z",
"name": "my-project",
"labels": {
"key": "key=value"
},
"description": "test-description",
"spec": {
"token": "9D72DE01-C732-49C0-8E85-FFD9D695436B"
},
"status": {
"services": [
{
"name": "my-service",
"type": "fc3"
}
],
"isDeleting": true
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.