code: public static AuditEntryBean apiUpdated(ApiBean bean, EntityUpdatedData data,
              ISecurityContext securityContext) {
          if (data.getChanges().isEmpty()) {
              return null;
          }
          AuditEntryBean entry = newEntry(bean.getOrganization().getId(), AuditEntityType.Api, securityContext);
          entry.setEntityId(bean.getId());
          entry.setEntityVersion(null);
          entry.setWhat(AuditEntryType.Update);
          entry.setData(toJSON(data));
          return entry;
      }
docs: Creates an audit entry for the 'API updated' event.
  @param bean the bean
  @param data the updated data
  @param securityContext the security context
  @return the audit entry