rename_folder
Rename a Jira/Zephyr folder by numeric ID and optionally set custom fields; update stored paths afterward because the change also affects all child folder paths.
Instructions
Rename a folder and/or set its custom fields (PUT /folder/{folderId}). name replaces the name of that ONE folder segment — it is not a path, so it cannot move the folder to another parent, and an empty or whitespace-only name, or "/" or "" in it, is rejected before any HTTP call. The rename changes the full path of this folder and of every folder below it, so paths held elsewhere (the folder argument of create_test_case / create_test_run, TQL folder filters) must be updated afterwards. The API does NOT enforce sibling-name uniqueness here (verified live): renaming a folder to the name of an existing sibling succeeds and leaves two siblings with one name — an ambiguous path — even though create_folder rejects that same path with 400 "already exists". The public Server/DC API v1 cannot LIST folders, so keep the numeric id returned by create_folder — rename_folder and delete_folder need it (otherwise it can only be found in the Jira UI, or with get_folder_tree when the internal API is enabled). Returns { id, name }, where name is the new SINGLE segment — unlike create_folder, which echoes the full path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New name of this one folder — a single segment without "/" or "\" and with at least one non-whitespace character, e.g. "Payments". Surrounding spaces are kept verbatim. | |
| folderId | Yes | Numeric folder id, as returned by create_folder (the public API cannot list folders) | |
| customFields | No | Custom field values keyed by field name; omit to leave them untouched |