validateWorkspaceSlugWithHttpInfo method
Check whether a workspace slug is available.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> validateWorkspaceSlugWithHttpInfo({ String? slug, String? organizationId, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/validate-slug/workspace';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (slug != null) {
queryParams.addAll(_queryParams('', 'slug', slug));
}
if (organizationId != null) {
queryParams.addAll(_queryParams('', 'organizationId', organizationId));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}