---
title: "Changes to Rename Spider File"
method: POST
path: "/spiders/{id}/files/rename"
---

# Changes to Rename Spider File

`POST /spiders/{id}/files/rename`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 3 of 3 revisions.

- **2026-07-17** `c7a4715c1f13` — 1 breaking, 2 warning, 9 info
- **2025-03-03** `14e4eafea538` — 1 warning
- **2025-03-02** `526e5bdf6dee` — 2 breaking, 3 warning, 8 info

## Changes

- **2026-07-17** `c7a4715c1f13` — 1 breaking, 2 warning, 9 info
  - for the `path` request parameter `id`, the type/format was changed from `string`/`` to `string`/`objectid`
  - removed the request property `new_path`
  - removed the optional property `code` from the response with the `200` status
  - api operation id `rename_spider_file` was added
  - added the new optional request property `newPath`
  - request body became optional
  - removed the pattern `^[0-9a-fA-F]{24}$` from the `path` request parameter `id`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `500`
  - added the optional property `error` to the response with the `200` status
  - added the optional property `status` to the response with the `200` status
- **2025-03-03** `14e4eafea538` — 1 warning
  - removed the optional property `data` from the response with the `200` status
- **2025-03-02** `526e5bdf6dee` — 2 breaking, 3 warning, 8 info
  - request body became required
  - added the pattern `^[0-9a-fA-F]{24}$` to the `path` request parameter `id`
  - removed the request property `newPath`
  - removed the optional property `error` from the response with the `200` status
  - removed the optional property `status` from the response with the `200` status
  - api operation id `rename_spider_file` removed and replaced with ``
  - added the new optional request property `new_path`
  - for the `path` request parameter `id`, the type/format was generalized from `string`/`objectid` to `string`/``
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `500`
  - added the optional property `code` to the response with the `200` status
  - added the optional property `data` to the response with the `200` status

---

[Operation](https://skmtc.dev/crawlab-team/apis/crawlab-api/docs/spiders/:id/files/rename/post.md) · [API](https://skmtc.dev/crawlab-team/apis/crawlab-api.md) · [Page](https://skmtc.dev/crawlab-team/apis/crawlab-api/changes/spiders/:id/files/rename/post)
