curl --request PUT \
--url https://api.getcargo.io/v1/ai/files/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"folderUuid": "<string>"
}
'{
"file": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"userUuid": "<string>",
"name": "<string>",
"isTemporary": true,
"folderUuid": "<string>",
"s3Filename": "<string>",
"openAiFileId": "<string>",
"contentType": "<string>",
"size": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Update an AI file
curl --request PUT \
--url https://api.getcargo.io/v1/ai/files/{uuid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"folderUuid": "<string>"
}
'{
"file": {
"uuid": "<string>",
"workspaceUuid": "<string>",
"userUuid": "<string>",
"name": "<string>",
"isTemporary": true,
"folderUuid": "<string>",
"s3Filename": "<string>",
"openAiFileId": "<string>",
"contentType": "<string>",
"size": 123,
"createdAt": "<string>",
"updatedAt": "<string>",
"deletedAt": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resource UUID
Successful response
Updated file details.
Show child attributes
Was this page helpful?