Update Folder

Written By Team BugSmash

Last updated 10 days ago

METHOD: PATCH
URL: https://api.bugsmash.io/api/v2/folder/{folderId}

HEADERS:
  X-API-Key: YOUR_API_KEY
  Content-Type: application/json

PATH PARAMETERS:
  folderId  (uuid, required)  - The folder ID

REQUEST BODY (all optional, minimum one field required):
  name              (string)    - New folder name
  access            (string)    - "public" or "private"
  addProjectIds     (array)     - Project UUIDs to add
  removeProjectIds  (array)     - Project UUIDs to remove

CURL:
curl --location --request PATCH 'https://api.bugsmash.io/api/v2/folder/{folderId}' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
  "name": "Updated Folder Name",
  "addProjectIds": ["{projectId3}"]
}'

RESPONSE:
{
  "status": true,
  "message": "Folder updated",
  "data": {
    "id": "e5f6a7b8-c9d0-1234-efab-234567890124",
    "parent_id": null,
    "owner": "b2c3d4e5-f6a7-8901-bcde-f01234567891",
    "workspace_id": "c3d4e5f6-a7b8-9012-cdef-012345678902",
    "name": "Updated Folder Name",
    "created_at": "2026-04-06T15:34:31.000000Z",
    "updated_at": "2026-04-06T15:46:24.000000Z",
    "deleted_at": null,
    "created_by": "b2c3d4e5-f6a7-8901-bcde-f01234567891",
    "updated_by": "b2c3d4e5-f6a7-8901-bcde-f01234567891",
    "deleted_by": null,
    "share_access": "private"
  }
}