updateAttachmentPropertyById method

Future<ContentProperty> updateAttachmentPropertyById({
  1. required String attachmentId,
  2. required int propertyId,
  3. bool? serializeIdsAsStrings,
  4. 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,
    bool? serializeIdsAsStrings,
    required ContentPropertyUpdateRequest body}) async {
  return ContentProperty.fromJson(await _client.send(
    'put',
    'attachments/{attachment-id}/properties/{property-id}',
    pathParameters: {
      'attachment-id': attachmentId,
      'property-id': '$propertyId',
    },
    queryParameters: {
      if (serializeIdsAsStrings != null)
        'serialize-ids-as-strings': '$serializeIdsAsStrings',
    },
    body: body.toJson(),
  ));
}