Skip to content

Commit 8f97548

Browse files
author
serverpod_cloud
committed
feat: ddc60409b88a11d92eb74801e831d43221e558c3
1 parent 9b03e37 commit 8f97548

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ground_control_client/lib/src/protocol/client.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,17 @@ class EndpointProjects extends _i1.EndpointRef {
703703
@override
704704
String get name => 'projects';
705705

706+
/// Validates a project ID by checking format rules and database existence.
707+
/// Throws [InvalidValueException] for format violations.
708+
/// Throws [DuplicateEntryException] if the project ID already exists.
709+
/// Returns true if the project ID is valid and available.
710+
_i2.Future<bool> validateProjectId(String projectId) =>
711+
caller.callServerEndpoint<bool>(
712+
'projects',
713+
'validateProjectId',
714+
{'projectId': projectId},
715+
);
716+
706717
/// Creates a new project with basic setup.
707718
/// The [cloudProjectId] must be globally unique.
708719
_i2.Future<_i3.Project> createProject({required String cloudProjectId}) =>

0 commit comments

Comments
 (0)