getValidProjectKey method
Validates a project key and, if the key is invalid or in use, generates a valid random string for the project key.
Permissions required: None.
Implementation
Future<String> getValidProjectKey({String? key}) async {
return await _client.send(
'get',
'rest/api/3/projectvalidate/validProjectKey',
queryParameters: {
if (key != null) 'key': key,
},
) as String;
}