Get a FileUploadToken's rules
GET/file-upload-tokens/ {fileUploadToken}/ rules/
v2
GET
file-get-file-upload-token-rules
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
https://api.mittwald.de/v2/file-upload-tokens/3fa85f64-5717-4562-b3fc-2c963f66afa6/rules
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.file.getFileUploadTokenRules({
"fileUploadToken": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\File\GetFileUploadTokenRules\GetFileUploadTokenRulesRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new GetFileUploadTokenRulesRequest(
fileUploadToken: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
));
$response = $client->file()->getFileUploadTokenRules($request);
var_dump($response->getBody();