updateProject method

Future<UpdateProjectResponse> updateProject({
  1. required String name,
  2. required String spaceName,
  3. String? description,
})

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);
}