Get a FileUploadType's rules
GET/file-upload-types/ {fileUploadType}/ rules/
v2
GET
file-get-file-upload-type-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-types/avatar/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.getFileUploadTypeRules({
"fileUploadType": "avatar"
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\File\GetFileUploadTypeRules\GetFileUploadTypeRulesRequest;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
$request = (new GetFileUploadTypeRulesRequest(
fileUploadType: "avatar"
));
$response = $client->file()->getFileUploadTypeRules($request);
var_dump($response->getBody();