UpdateProject
Updates a project and triggers an automatic deployment if the template parameters change.
Operation description
When you call an update operation, the operation updates only the writable fields you specify, leaving other fields unchanged.
The system triggers an automatic deployment if and only if the template parameters (
spec.templateConfig.parameters) change.You cannot update the project after modifying the Default environment's configuration with environment 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. The operation updates only the writable fields you specify, leaving other fields 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.