curl --request PUT \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/folders/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"parentId": "<string>",
"order": 123
}
'Update an existing folder
curl --request PUT \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/folders/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"parentId": "<string>",
"order": 123
}
'{
"name": "Updated Name",
"order": 1.5
}
type cannot be changed after creation.{
"id": "folder123",
"name": "Updated Name",
"parentId": null,
"type": "content",
"order": 1.5,
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-22T10:00:00Z"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Folder not found"
}
}
{
"error": {
"code": "CIRCULAR_REFERENCE",
"message": "Cannot move folder to its own descendant",
"details": {
"folderId": "folder123",
"targetParentId": "folder456"
}
}
}
curl -X PUT "https://api.metabind.ai/v1/organizations/org123/projects/proj456/folders/folder123" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Name",
"order": 1.5
}'