Refactory on api to verify if uniqueIdentifier is passed as params.