Skip to main content
FolderUpdate Folder By ID
TestMu AI
StatusCommunityBlog
Folder

Update Folder By ID

Update Folder By ID

PUT
/api/v1/folder
Update Folder By ID (Rename)
curl --request PUT \
--url "https://test-manager-api.lambdatest.com/api/v1/folder" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"id": "folder_id",
"action": "update",
"entity_id": "project_id",
"name": "Test Folder - LambdaTest Demo"
}'
Update Folder By ID (Move)
curl --request PUT \
--url "https://test-manager-api.lambdatest.com/api/v1/folder" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"id": "folder_id",
"action": "move",
"entity_id": "project_id",
"entity_type": "project",
"name": "Test Folder - LambdaTest Demo",
"parent_id": "parent_id",
"serial_no": 1
}'
{
"message": "Folder updated successfully",
"type": "Success"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Update Folder By ID (Rename)

application/json
idstring
actionstring
entity_idstring
namestring

Update Folder By ID (Move)

application/json
idstring
actionstring
entity_idstring
entity_typestring
namestring
parent_idstring
serial_nointeger

Response

application/json

OK

messagestring
Example: "Folder updated successfully"
typestring
Example: "Success"
Update Folder By ID (Rename)
curl --request PUT \
--url "https://test-manager-api.lambdatest.com/api/v1/folder" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"id": "folder_id",
"action": "update",
"entity_id": "project_id",
"name": "Test Folder - LambdaTest Demo"
}'
Update Folder By ID (Move)
curl --request PUT \
--url "https://test-manager-api.lambdatest.com/api/v1/folder" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"id": "folder_id",
"action": "move",
"entity_id": "project_id",
"entity_type": "project",
"name": "Test Folder - LambdaTest Demo",
"parent_id": "parent_id",
"serial_no": 1
}'
{
"message": "Folder updated successfully",
"type": "Success"
}