updateShare method
Update a share.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
permissionsNew permissions.passwordNew password.sendPasswordByTalkNew condition if the password should be send over Talk.publicUploadNew condition if public uploading is allowed.expireDateNew expiry date.noteNew note.labelNew label.hideDownloadNew condition if the download should be hidden.attributesNew additional attributes.idID of the share.oCSAPIRequestRequired to be true for the API request to pass. Defaults totrue.
Status codes:
- 200: Share updated successfully
- 400: Share could not be updated because the requested changes are invalid
- 403: Missing permissions to update the share
- 404: Share not found
See:
- updateShareRaw for an experimental operation that returns a DynamiteRawResponse that can be serialized.
Implementation
Future<DynamiteResponse<ShareapiUpdateShareResponseApplicationJson, void>> updateShare({
required String id,
int? permissions,
String? password,
String? sendPasswordByTalk,
String? publicUpload,
String? expireDate,
String? note,
String? label,
String? hideDownload,
String? attributes,
bool? oCSAPIRequest,
}) async {
final rawResponse = updateShareRaw(
id: id,
permissions: permissions,
password: password,
sendPasswordByTalk: sendPasswordByTalk,
publicUpload: publicUpload,
expireDate: expireDate,
note: note,
label: label,
hideDownload: hideDownload,
attributes: attributes,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}