Skip to content

Commit f12a9e5

Browse files
authored
[AI Search] Fix broken Items API reference URLs (#30234)
1 parent a109346 commit f12a9e5

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/content/docs/ai-search/api/items/rest-api.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ The available operations are the same for both paths. For the namespace-scoped A
3333

3434
## Items
3535

36-
Upload, list, get, delete, and download items within an instance. For the full specification, refer to the [Items API reference](/api/resources/ai_search/subresources/instances/subresources/items/).
37-
38-
| Operation | Method | Description |
39-
| ------------------------------------------------------------------------------------------------ | -------- | ------------------------------ |
40-
| [Upload](/api/resources/ai_search/subresources/instances/subresources/items/methods/upload/) | `POST` | Upload a document for indexing |
41-
| [List](/api/resources/ai_search/subresources/instances/subresources/items/methods/list/) | `GET` | List all items in an instance |
42-
| [Get](/api/resources/ai_search/subresources/instances/subresources/items/methods/get/) | `GET` | Get item info by ID |
43-
| [Delete](/api/resources/ai_search/subresources/instances/subresources/items/methods/delete/) | `DELETE` | Delete an item |
44-
| [Download](/api/resources/ai_search/subresources/instances/subresources/items/methods/download/) | `GET` | Download the original file |
36+
Upload, list, get, delete, and download items within an instance. For the full specification, refer to the [Items API reference](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/).
37+
38+
| Operation | Method | Description |
39+
| -------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------ |
40+
| [Upload](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/methods/upload/) | `POST` | Upload a document for indexing |
41+
| [List](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/methods/list/) | `GET` | List all items in an instance |
42+
| [Get](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/methods/get/) | `GET` | Get item info by ID |
43+
| [Delete](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/methods/delete/) | `DELETE` | Delete an item |
44+
| [Download](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/methods/download/) | `GET` | Download the original file |
4545

4646
### Example: Upload a document
4747

src/content/docs/ai-search/get-started/api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ curl -X POST "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/ai-sear
7979

8080
## 3. Add content
8181

82-
If you did not create an instance that is connected to a data source, upload files using the [Items API](/api/resources/ai_search/subresources/items/methods/upload/). You can skip this step if you connected a website or R2 bucket.
82+
If you did not create an instance that is connected to a data source, upload files using the [Items API](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/methods/upload/). You can skip this step if you connected a website or R2 bucket.
8383

8484
```bash
8585
curl -X POST "https://api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/ai-search/instances/my-instance/items" \

src/content/docs/ai-search/get-started/wrangler.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Create a new instance.
2626
wrangler ai-search create my-instance
2727
```
2828

29-
You can upload files to the instance using the [dashboard](/ai-search/get-started/dashboard/#upload-content) or the [REST API](/api/resources/ai_search/subresources/items/methods/upload/).
29+
You can upload files to the instance using the [dashboard](/ai-search/get-started/dashboard/#upload-content) or the [REST API](/api/resources/ai_search/subresources/namespaces/subresources/instances/subresources/items/methods/upload/).
3030

3131
### Connect a data source (optional)
3232

0 commit comments

Comments
 (0)