Update a folder
update an agent folder.
PATCH
https://api.centerfy.ai/webhooks/inbound/agent-folders/:id Headers
| Header | Required | Value | Description |
|---|---|---|---|
x-api-key | Yes | your sub-account API key (cfy_…) | Authenticates the request; or use Authorization: Bearer <key>. |
Content-Type | Yes | application/json | The request body is JSON. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string (uuid) | Yes | The agent folder id. |
Body parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | No | — | New folder name; if present, must be a non-empty string (empty → 400). |
color | string | No | — | New folder color as a hex value, e.g. #3b82f6; if present, must match /^#[0-9a-fA-F]{3,8}$/ (invalid → 400). |
Request body
{
"name": "Outbound Sales Agents",
"color": "#10b981"
}Example
curl -X PATCH "https://api.centerfy.ai/webhooks/inbound/agent-folders/{id}" \
-H "x-api-key: $CENTERFY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Outbound Sales Agents",
"color": "#10b981"
}' import { CenterfyClient } from "@centerfy/sdk";
const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });
const result = await centerfy.agentFolders.update("<folderId>", {
"name": "Outbound Sales Agents",
"color": "#10b981"
});
console.log(result); centerfy agentFolders update <folderId> '{"name":"Outbound Sales Agents","color":"#10b981"}' MCP tool: centerfy_agent_folders_update (see MCP server)
Response
{
"status": "success",
"folder": {
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"name": "Outbound Sales Agents",
"color": "#10b981",
"created_at": "2026-05-01T10:00:00.000Z",
"updated_at": "2026-06-12T09:15:00.000Z"
}
}Notes
Partial update — both fields are optional, but send at least one (empty body → 400 ‘request body must contain name and/or color’). Errors: 400 (invalid folder id / empty name / bad color hex), 401 (unauthenticated), 404 (folder not found), 500 (server error).