From 77613b1037a9843b10175f8e6bbdeace46f85588 Mon Sep 17 00:00:00 2001 From: yash dixit Date: Sun, 29 Dec 2024 18:42:18 +0530 Subject: [PATCH 1/3] Fix batch image upload endpoint from v2 to v1 --- .../docs/images/upload-images/images-batch.mdx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/content/docs/images/upload-images/images-batch.mdx b/src/content/docs/images/upload-images/images-batch.mdx index 7b32144e3d84ac..abfaf570077ae8 100644 --- a/src/content/docs/images/upload-images/images-batch.mdx +++ b/src/content/docs/images/upload-images/images-batch.mdx @@ -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. @@ -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](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` These options use a different host and a different path with the same method, request, and response bodies. @@ -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 " ``` From 7555b56ff299d7ae97c75ba14004a2c4b53cdc16 Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Mon, 30 Dec 2024 10:02:02 +0000 Subject: [PATCH 2/3] Apply Hyperlint suggestions Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com> --- .../docs/images/upload-images/images-batch.mdx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/content/docs/images/upload-images/images-batch.mdx b/src/content/docs/images/upload-images/images-batch.mdx index abfaf570077ae8..50919f785f3e6d 100644 --- a/src/content/docs/images/upload-images/images-batch.mdx +++ b/src/content/docs/images/upload-images/images-batch.mdx @@ -27,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. From bf637c87f54c7e1254ecd3972536dee302aea441 Mon Sep 17 00:00:00 2001 From: Kody Jackson Date: Wed, 5 Feb 2025 06:23:29 -0600 Subject: [PATCH 3/3] retrigger ci --- src/content/docs/images/upload-images/images-batch.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/images/upload-images/images-batch.mdx b/src/content/docs/images/upload-images/images-batch.mdx index 50919f785f3e6d..a912368d8ce6e5 100644 --- a/src/content/docs/images/upload-images/images-batch.mdx +++ b/src/content/docs/images/upload-images/images-batch.mdx @@ -25,7 +25,7 @@ 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: +After getting your token, use it to make requests for: - [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}`