createProject method
Creates a project in a specified space.
Parameter displayName :
The friendly name of the project that will be displayed to users.
Parameter spaceName :
The name of the space.
Parameter description :
The description of the project. This description will be displayed to all
users of the project. We recommend providing a brief description of the
project and its intended purpose.
Implementation
Future<CreateProjectResponse> createProject({
required String displayName,
required String spaceName,
String? description,
}) async {
final $payload = <String, dynamic>{
'displayName': displayName,
if (description != null) 'description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/v1/spaces/${Uri.encodeComponent(spaceName)}/projects',
exceptionFnMap: _exceptionFns,
);
return CreateProjectResponse.fromJson(response);
}