diff --git a/src/Appwrite/Specification/Format/Swagger2.php b/src/Appwrite/Specification/Format/Swagger2.php index 21ea7ee2b6..a2a09e14e8 100644 --- a/src/Appwrite/Specification/Format/Swagger2.php +++ b/src/Appwrite/Specification/Format/Swagger2.php @@ -264,6 +264,9 @@ class Swagger2 extends Format break; case 'Utopia\Database\Validator\UID': case 'Appwrite\Utopia\Database\Validator\CustomId': + if($route->getLabel('sdk.methodType', '') === 'upload') { + $node['x-upload-id'] = true; + } $node['type'] = $validator->getType(); $node['x-example'] = '['.\strtoupper(Template::fromCamelCaseToSnake($node['name'])).']'; break;