All URIs are relative to https://dashboard.quantcdn.io, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| deleteFile() | DELETE /api/v3/organizations/{organisation}/ai/files/{fileId} | Delete File |
| getFile() | GET /api/v3/organizations/{organisation}/ai/files/{fileId} | Get File |
| listFiles() | GET /api/v3/organizations/{organisation}/ai/files | List Files |
| uploadFile() | POST /api/v3/organizations/{organisation}/ai/files | Upload File to S3 |
deleteFile($organisation, $file_id): \QuantClient\Model\DeleteFile200ResponseDelete File
Deletes a file from S3 storage.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AIFileStorageApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
$file_id = 'file_id_example'; // string | The file ID
try {
$result = $apiInstance->deleteFile($organisation, $file_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AIFileStorageApi->deleteFile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| file_id | string | The file ID |
\QuantClient\Model\DeleteFile200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getFile($organisation, $file_id): \QuantClient\Model\GetFile200ResponseGet File
Retrieves file metadata and a presigned download URL (valid for 1 hour).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AIFileStorageApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
$file_id = 'file_id_example'; // string | The file ID
try {
$result = $apiInstance->getFile($organisation, $file_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AIFileStorageApi->getFile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| file_id | string | The file ID |
\QuantClient\Model\GetFile200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listFiles($organisation, $filter, $limit, $cursor): \QuantClient\Model\ListFiles200ResponseList Files
Lists files stored in S3 for this organization with optional metadata filtering and pagination.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AIFileStorageApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
$filter = {}; // string | JSON-encoded metadata filter. Supports exact match and array contains filters.
$limit = 50; // int | Maximum files to return
$cursor = 'cursor_example'; // string | Pagination cursor from previous response
try {
$result = $apiInstance->listFiles($organisation, $filter, $limit, $cursor);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AIFileStorageApi->listFiles: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| filter | string | JSON-encoded metadata filter. Supports exact match and array contains filters. | [optional] |
| limit | int | Maximum files to return | [optional] [default to 50] |
| cursor | string | Pagination cursor from previous response | [optional] |
\QuantClient\Model\ListFiles200Response
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
uploadFile($organisation, $upload_file_request): \QuantClient\Model\UploadFile201ResponseUpload File to S3
Uploads a file to S3 storage for later retrieval. * * Two Upload Modes: * * 1. Direct Upload (≤7MB): Send base64-encoded content in request body. * * 2. Presigned URL Upload (any size): Set requestUploadUrl: true to get a presigned S3 PUT URL, then upload directly to S3. * * Supported Content Types: * - Images: image/png, image/jpeg, image/gif, image/webp, image/svg+xml * - Documents: application/pdf, text/plain, text/markdown, text/html * - Code: text/javascript, application/json, text/css, text/yaml * - Archives: application/zip, application/gzip * - Video: video/mp4, video/webm (use presigned URL for large files) * * Metadata: * Attach any custom metadata for filtering. artifactType is auto-populated from contentType if not provided.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: BearerAuth
$config = QuantClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new QuantClient\Api\AIFileStorageApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$organisation = 'organisation_example'; // string | The organisation ID
$upload_file_request = new \QuantClient\Model\UploadFileRequest(); // \QuantClient\Model\UploadFileRequest
try {
$result = $apiInstance->uploadFile($organisation, $upload_file_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AIFileStorageApi->uploadFile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| organisation | string | The organisation ID | |
| upload_file_request | \QuantClient\Model\UploadFileRequest |
\QuantClient\Model\UploadFile201Response
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]