File tree Expand file tree Collapse file tree
ground_control_client/lib/src/protocol Expand file tree Collapse file tree Original file line number Diff line number Diff 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}) =>
You can’t perform that action at this time.
0 commit comments