cURL
curl --request PUT \ --url https://app.miget.com/api/v1/buckets/{uuid}/objects/{key}/rename \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "new_key": "<string>" } '
Renames a file or folder (recursively) in the bucket.
Bearer token for authentication. Format: 'Bearer {token}'
Workspace ID (uses default workspace if not provided)
Bucket UUID
Current object key (file path)
Rename object
New object key (file path)
Object renamed successfully