Skip to main content
PUT
/
user
/
folder
/
{id}
Update folder
curl --request PUT \
  --url https://app.autocalls.ai/api/user/folder/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "color": "<string>"
}
'
{
  "message": "Folder updated successfully",
  "data": { "id": 12, "name": "Acme Inc.", "color": "pink", "assistants_count": 4 }
}
Update a folder’s name or color. Only the fields you send are changed.

Path Parameters

id
integer
required
The folder ID. Must belong to your account.

Request Body

name
string
New name (max 255 characters). Must be unique within your account.
color
string
New color. One of: gray, slate, red, orange, amber, green, teal, blue, purple, pink. Send null to clear it.

Response

message
string
Success message
data
object
{
  "message": "Folder updated successfully",
  "data": { "id": 12, "name": "Acme Inc.", "color": "pink", "assistants_count": 4 }
}