Skip to content

Function: validateProjectKey() ​

ts
function validateProjectKey(
   client, 
   parameters?, 
   options?
): Promise<{
[key: string]: unknown;
  errorMessages?: string[];
  errors?: Record<string, string>;
  status?: number;
}>;

Defined in: src/cloud/api/projectKeyAndNameValidation.ts:13

Validates a project key by confirming the key is a valid string and not in use.

Permissions required: None.

Parameters ​

ParameterTypeDescription
clientClient-
parameters?{ key?: string; }-
parameters.key?stringThe project key.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; errorMessages?: string[]; errors?: Record<string, string>; status?: number; }>