API ReferenceFiles
Rename File
Authorization
bearerAuth AuthorizationBearer <token>
Send a SimpleServe API key as Authorization: Bearer <key>.
In: header
Path Parameters
file_id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/files/string" \ -H "Content-Type: application/json" \ -d '{ "filename": "string" }'{ "id": "string", "object": "file", "purpose": "agent_input", "filename": "string", "media_type": "string", "size_bytes": 0, "created_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z"}