curl --request PUT \
--url https://api.shingleai.com/v1/files/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"tags": [
"<string>"
],
"agentAccessEnabled": true,
"mcpAccessEnabled": true,
"metadata": {}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"uploadedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"r2Key": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"agentAccessEnabled": true,
"mcpAccessEnabled": true,
"metadata": {},
"folderName": "<string>"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}Update an existing file metadata
curl --request PUT \
--url https://api.shingleai.com/v1/files/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"tags": [
"<string>"
],
"agentAccessEnabled": true,
"mcpAccessEnabled": true,
"metadata": {}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"uploadedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"filename": "<string>",
"contentType": "<string>",
"size": 123,
"r2Key": "<string>",
"description": "<string>",
"tags": [
"<string>"
],
"agentAccessEnabled": true,
"mcpAccessEnabled": true,
"metadata": {},
"folderName": "<string>"
},
"meta": {
"pagination": {
"limit": 123,
"offset": 123,
"hasMore": true,
"total": 123
}
}
}API key authentication via Bearer token
File UUID
"123e4567-e89b-12d3-a456-426614174000"
File updated successfully
Show child attributes