Files
Update File
PATCH
/
file
/
{id}
curl --request PATCH \
--url https://api.vapi.ai/file/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>"
}'
{
"object": "file",
"status": "indexed",
"name": "<string>",
"originalName": "<string>",
"bytes": 123,
"purpose": "<string>",
"mimetype": "<string>",
"key": "<string>",
"path": "<string>",
"bucket": "<string>",
"url": "<string>",
"metadata": {},
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Path Parameters
Body
application/json
Response
200 - application/json
The response is of type object
.
Was this page helpful?
curl --request PATCH \
--url https://api.vapi.ai/file/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>"
}'
{
"object": "file",
"status": "indexed",
"name": "<string>",
"originalName": "<string>",
"bytes": 123,
"purpose": "<string>",
"mimetype": "<string>",
"key": "<string>",
"path": "<string>",
"bucket": "<string>",
"url": "<string>",
"metadata": {},
"id": "<string>",
"orgId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.