updateCollaboration method
Updates collaboration metadata and can only be called by the collaboration owner.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter collaborationIdentifier :
The identifier for the collaboration.
Parameter analyticsEngine :
The analytics engine.
Parameter description :
A description of the collaboration.
Parameter name :
A human-readable identifier provided by the collaboration owner. Display
names are not unique.
Implementation
Future<UpdateCollaborationOutput> updateCollaboration({
required String collaborationIdentifier,
AnalyticsEngine? analyticsEngine,
String? description,
String? name,
}) async {
final $payload = <String, dynamic>{
if (analyticsEngine != null) 'analyticsEngine': analyticsEngine.value,
if (description != null) 'description': description,
if (name != null) 'name': name,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/collaborations/${Uri.encodeComponent(collaborationIdentifier)}',
exceptionFnMap: _exceptionFns,
);
return UpdateCollaborationOutput.fromJson(response);
}