fixing block level sharing for api endpoint