Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix batch image upload endpoint from v2 to v1 #18954

Open
wants to merge 2 commits into
base: production
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/content/docs/images/upload-images/images-batch.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
pcx_content_type: reference
title: Upload via batch API

---

The Images batch API lets you make several requests in sequence while bypassing Cloudflare’s global API rate limits.
Expand All @@ -28,12 +27,12 @@ curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/images/v1/batch

After getting your token, you can use it to make requests for:

* [Upload an image](https://developers.cloudflare.com/api/resources/images/subresources/v1/methods/create/) - `POST /images/v1`
* [Delete an image](https://developers.cloudflare.com/api/resources/images/subresources/v1/methods/delete/) - `DELETE /images/v1/{identifier}`
* [Image details](https://developers.cloudflare.com/api/resources/images/subresources/v1/methods/get/) - `GET /images/v1/{identifier}`
* [Update image](https://developers.cloudflare.com/api/resources/images/subresources/v1/methods/edit/) - `PATCH /images/v1/{identifier}`
* [List images V2](https://developers.cloudflare.com/api/resources/images/subresources/v2/methods/list/) - `GET /images/v2`
* [Direct upload V2](https://developers.cloudflare.com/api/resources/images/subresources/v2/subresources/direct_uploads/methods/create/) - `POST /images/v2/direct_upload`
- [Upload an image](/api/resources/images/subresources/v1/methods/create/) - `POST /images/v1`
- [Delete an image](/api/resources/images/subresources/v1/methods/delete/) - `DELETE /images/v1/{identifier}`
- [Image details](/api/resources/images/subresources/v1/methods/get/) - `GET /images/v1/{identifier}`
- [Update image](/api/resources/images/subresources/v1/methods/edit/) - `PATCH /images/v1/{identifier}`
- [List images V2](/api/resources/images/subresources/v2/methods/list/) - `GET /images/v2`
- [Direct upload V2](/api/resources/images/subresources/v2/subresources/direct_uploads/methods/create/) - `POST /images/v2/direct_upload`

These options use a different host and a different path with the same method, request, and response bodies.

Expand All @@ -43,6 +42,6 @@ curl "https://api.cloudflare.com/client/v4/accounts/{account_id}/images/v2" \
```

```bash title="Example request using a batch token"
curl "https://batch.imagedelivery.net/images/v2" \
curl "https://batch.imagedelivery.net/images/v1" \
--header "Authorization: Bearer <BATCH_TOKEN>"
```
Loading