updateAttachmentPropertyById method

Future<ContentProperty> updateAttachmentPropertyById({
  1. required String attachmentId,
  2. required int propertyId,
  3. required ContentPropertyUpdateRequest body,
})

Update a content property for attachment by its id.

Permissions required: Permission to edit the attachment.

Implementation

Future<ContentProperty> updateAttachmentPropertyById(
    {required String attachmentId,
    required int propertyId,
    required ContentPropertyUpdateRequest body}) async {
  return ContentProperty.fromJson(await _client.send(
    'put',
    'attachments/{attachment-id}/properties/{property-id}',
    pathParameters: {
      'attachment-id': attachmentId,
      'property-id': '$propertyId',
    },
    body: body.toJson(),
  ));
}