updateProjectEmail method

Future updateProjectEmail({
  1. required int projectId,
  2. required ProjectEmailAddress body,
})

Sets the project's sender email address.

If emailAddress is an empty string, the default email address is restored.

Permissions required: Browse projects project permission for the project.

Implementation

Future<dynamic> updateProjectEmail(
    {required int projectId, required ProjectEmailAddress body}) async {
  return await _client.send(
    'put',
    'rest/api/3/project/{projectId}/email',
    pathParameters: {
      'projectId': '$projectId',
    },
    body: body.toJson(),
  );
}