You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Project management API
ModifyProject
Copy page
Download PDF
ModifyProject
Call the ModifyProject API to update project details.​
Usage instructions​
This API modifies the project name and description. Changing the project ID is not supported. The call frequency limit is 20 times per second. Requests exceeding this limit will return the error ExceedQPSLimit.​
tip​
Project names within the same region cannot be duplicated.​
Request instructions​
  • Method: PUT​
  • Endpoint: https://{tls-endpoint}/ModifyProject​
Request parameters​
The following table lists only the unique request parameters for this API and some common parameters For more information, see Common Parameters​
Body​
​
Parameter​
Type​
Required​
Example value​
Description​
ProjectId​
String​
Yes​
f3e901c3-b17f-42fd-aa8c-dc91a6c7****​
Project ID.​
ProjectName​
String​
No​
test-project​
The name of the log project. For naming rules, see Resource Naming Rules.​
The project name must be unique in the same region of the same account.​
Description​
String​
No​
This is a test project​
Description of the project.​
  • Does not support <>,', \, \\, and all emoji icons.​
  • Length must be between 0 and 64 characters.​
​
Return Parameters​
This API does not have unique return parameters For more information, see Return Structure​
Sample request​
​
PUT https://{tls-endpoint}/ModifyProject HTTP/1.1​
Content-Type: application/json​
{​
"ProjectName": "test2",​
"Description": "This is a test project",​
"ProjectId": "89**************"​
}​
​
Sample response​
​
HTTP/1.1 200 OK​
Content-Type: application/json; charset=utf-8​
{}​
​
Error Code​
The table below lists the error codes related to the business logic of this API For public error codes, see the Public Error Codes documentation.​
​
HTTP Status Code​
Error Code​
Error message​
Description​
400​
InvalidArgument​
Invalid argument key %s, value %s, please check argument.​
Invalid request parameters.​
404​
ProjectNotExists​
Project does not exist.​
Project does not exist.​
409​
ProjectAlreadyExists​
Project already exist.​
The project already exists. A project with the same name already exists in this region.​
500​
InternalServerError​
We encountered an unexpected server error, please try again later.​
Internal server error.​
​
Last updated: 2025.10.28 18:41:13