updateAttachmentProperties method
Future<Content>
updateAttachmentProperties({
- required String id,
- required String attachmentId,
- required AttachmentPropertiesUpdateBody body,
Updates the attachment properties, i.e. the non-binary data of an attachment like the filename, media-type, comment, and parent container.
Permissions required: Permission to update the content.
Implementation
Future<Content> updateAttachmentProperties(
{required String id,
required String attachmentId,
required AttachmentPropertiesUpdateBody body}) async {
return Content.fromJson(await _client.send(
'put',
'wiki/rest/api/content/{id}/child/attachment/{attachmentId}',
pathParameters: {
'id': id,
'attachmentId': attachmentId,
},
body: body.toJson(),
));
}