updateProject method
Changes one or more values for a project.
Parameter name :
The name of the project.
Parameter spaceName :
The name of the space.
Parameter description :
The description of the project.
Implementation
Future<UpdateProjectResponse> updateProject({
required String name,
required String spaceName,
String? description,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'description': description,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/v1/spaces/${Uri.encodeComponent(spaceName)}/projects/${Uri.encodeComponent(name)}',
exceptionFnMap: _exceptionFns,
);
return UpdateProjectResponse.fromJson(response);
}