mirror of
https://github.com/anthropics/skills.git
synced 2026-08-02 13:05:28 +08:00
Remove non-existent purpose field from Files API examples (#1081)
The Files API upload endpoint does not accept a purpose parameter. Drop it from the managed-agents skill examples (TS and curl).
This commit is contained in:
@@ -248,8 +248,7 @@ curl -X POST https://api.anthropic.com/v1/files \
|
||||
-H "x-api-key: $ANTHROPIC_API_KEY" \
|
||||
-H "anthropic-version: 2023-06-01" \
|
||||
-H "anthropic-beta: files-api-2025-04-14" \
|
||||
-F "file=@path/to/file.txt" \
|
||||
-F "purpose=agent"
|
||||
-F "file=@path/to/file.txt"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user